hammer_cli 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/bin/hammer +1 -1
  3. data/doc/release_notes.md +12 -0
  4. data/lib/hammer_cli/defaults.rb +1 -1
  5. data/lib/hammer_cli/defaults_commands.rb +2 -2
  6. data/lib/hammer_cli/i18n.rb +48 -59
  7. data/lib/hammer_cli/options/option_definition.rb +25 -0
  8. data/lib/hammer_cli/output/adapter/table.rb +1 -1
  9. data/lib/hammer_cli/settings.rb +8 -4
  10. data/lib/hammer_cli/version.rb +1 -1
  11. data/locale/ca/LC_MESSAGES/hammer-cli.mo +0 -0
  12. data/locale/ca/hammer-cli.edit.po +54 -31
  13. data/locale/ca/hammer-cli.po +15 -8
  14. data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
  15. data/locale/de/hammer-cli.edit.po +72 -49
  16. data/locale/de/hammer-cli.po +15 -8
  17. data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
  18. data/locale/en/hammer-cli.edit.po +20 -8
  19. data/locale/en/hammer-cli.po +15 -8
  20. data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
  21. data/locale/en_GB/hammer-cli.edit.po +53 -30
  22. data/locale/en_GB/hammer-cli.po +15 -8
  23. data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
  24. data/locale/es/hammer-cli.edit.po +83 -60
  25. data/locale/es/hammer-cli.po +15 -8
  26. data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
  27. data/locale/fr/hammer-cli.edit.po +53 -30
  28. data/locale/fr/hammer-cli.po +15 -8
  29. data/locale/hammer-cli.pot +23 -13
  30. data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
  31. data/locale/it/hammer-cli.edit.po +53 -30
  32. data/locale/it/hammer-cli.po +15 -8
  33. data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
  34. data/locale/ja/hammer-cli.edit.po +74 -51
  35. data/locale/ja/hammer-cli.po +15 -8
  36. data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
  37. data/locale/ko/hammer-cli.edit.po +77 -54
  38. data/locale/ko/hammer-cli.po +15 -8
  39. data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
  40. data/locale/pt_BR/hammer-cli.edit.po +73 -50
  41. data/locale/pt_BR/hammer-cli.po +15 -8
  42. data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
  43. data/locale/ru/hammer-cli.edit.po +54 -31
  44. data/locale/ru/hammer-cli.po +15 -8
  45. data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
  46. data/locale/zh_CN/hammer-cli.edit.po +76 -53
  47. data/locale/zh_CN/hammer-cli.po +15 -8
  48. data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
  49. data/locale/zh_TW/hammer-cli.edit.po +75 -52
  50. data/locale/zh_TW/hammer-cli.po +15 -8
  51. data/man/hammer.1.gz +0 -0
  52. data/test/functional/defaults_test.rb +1 -1
  53. data/test/unit/apipie/option_builder_test.rb +0 -4
  54. data/test/unit/exception_handler_test.rb +1 -1
  55. data/test/unit/i18n_test.rb +58 -12
  56. data/test/unit/options/option_definition_test.rb +18 -0
  57. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b39b8afbf9c00645ca1591288ec35f790efba222
4
- data.tar.gz: b1b69c66682a9a1b38d2799f15c11da797990ca5
3
+ metadata.gz: 2dc560a54a8356574b61f94171e0f2f3eaba55be
4
+ data.tar.gz: baecee7550c67ddd53dd4fb41a75e8b917b7f430
5
5
  SHA512:
6
- metadata.gz: 403d600bba083967627d060ac6a6ae9620418fce83ac27ad0bd4b44821f42928fcdb0021e45166000b78f28988a7d1dca04344a1ad0d33216300b8475cba57ec
7
- data.tar.gz: a572704192a70b48c30df2d2d6e2496a992034c3053300d772bd9a1ea51a5c3e40ba4dfba814f5ce20e03df40185f79166df3746db52b860429b8211e2f16722
6
+ metadata.gz: a442abbc69a621586676c5a12999856bd1a470e15832f03cc5b5d59e1b7e9e12dd714b1e91faff6534222e68babd344ff340d392fbe4f01879431d1bd13fce4c
7
+ data.tar.gz: 812bc9348b53072052e49e5384dcbcacb46ce9553cf3bfd71dfa19a1aaeb276f9d3bed21d337f5bbdcb33951b14822664643ae9e2eabf6340289fad88336d283
data/bin/hammer CHANGED
@@ -79,7 +79,7 @@ HammerCLI::Settings.load({
79
79
  :reload_cache => preparser.reload_cache?
80
80
  }})
81
81
 
82
- if HammerCLI::Settings.get(:mark_translated)
82
+ if HammerCLI::Settings.get(:ui, :mark_translated)
83
83
  include HammerCLI::I18n::Debug
84
84
  end
85
85
 
data/doc/release_notes.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Release notes
2
2
  =============
3
3
 
4
+ ### 0.8.0 (2016-09-01)
5
+ * Fix tests with rest-client >= 2.0.0 ([#16404](http://projects.theforeman.org/issues/16404))
6
+ * Add missing apostrophe in error message ([#16316](http://projects.theforeman.org/issues/16316))
7
+ * Improve error for missing ~/.hammer directory ([#16312](http://projects.theforeman.org/issues/16312))
8
+ * Option deprecation indication in help ([PR #212](https://github.com/theforeman/hammer-cli/pull/212)) ([#16161](http://projects.theforeman.org/issues/16161))
9
+ * Preserve original exception message ([#14436](http://projects.theforeman.org/issues/14436))
10
+ * Added exception handling while parsing configuration file. ([#14436](http://projects.theforeman.org/issues/14436))
11
+ * Gettext speed improvements ([PR #198](https://github.com/theforeman/hammer-cli/pull/198)) ([#14092](http://projects.theforeman.org/issues/14092))
12
+ * Explicitly list man page in gemspec files ([PR #210](https://github.com/theforeman/hammer-cli/pull/210)) ([#7453](http://projects.theforeman.org/issues/7453))
13
+ * Adds man page to hammer ([PR #163](https://github.com/theforeman/hammer-cli/pull/163)) ([#7453](http://projects.theforeman.org/issues/7453))
14
+ * I18n - fix extraction of variables in strings ([PR #209](https://github.com/theforeman/hammer-cli/pull/209))
15
+
4
16
  ### 0.7.0 (2016-06-14)
5
17
  * Let print adapters decide whether to paginate ([#15257](http://projects.theforeman.org/issues/15257))
6
18
  * Add support for testing values in option validation ([#13832](http://projects.theforeman.org/issues/13832))
@@ -74,7 +74,7 @@ module HammerCLI
74
74
  new_file.write ":defaults:"
75
75
  new_file.close
76
76
  else
77
- raise DefaultsPathError.new(_("Couldn't create %s please create the path before defaults are enabled.") % path)
77
+ raise DefaultsPathError.new(_("Couldn't create %s. Please create the directory before setting defaults.") % path)
78
78
  end
79
79
  end
80
80
 
@@ -136,7 +136,7 @@ module HammerCLI
136
136
  end
137
137
 
138
138
  def provider_prob_message(namespace)
139
- print_message(_("Provider #{namespace} was not found. See `hammer defaults providers` for available providers."))
139
+ print_message(_("Provider %{name} was not found. See `hammer defaults providers` for available providers.") % {:name => namespace})
140
140
  end
141
141
 
142
142
  def defaults_not_supported_by_provider
@@ -148,7 +148,7 @@ module HammerCLI
148
148
  end
149
149
 
150
150
  def bad_input
151
- print_message(_("You must specify value or a provider name, cant specify both."))
151
+ print_message(_("You must specify value or a provider name, can't specify both."))
152
152
  end
153
153
 
154
154
  def variable_not_found
@@ -4,68 +4,40 @@ require 'locale'
4
4
  module HammerCLI
5
5
  module I18n
6
6
 
7
- module AllDomains
8
- def _(key)
9
- FastGettext::TranslationMultidomain.D_(key)
10
- end
11
-
12
- def n_(*keys)
13
- FastGettext::TranslationMultidomain.Dn_(*keys)
14
- end
15
-
16
- def s_(key, separator=nil)
17
- FastGettext::TranslationMultidomain.Ds_(key, separator)
18
- end
19
-
20
- def ns_(*keys)
21
- FastGettext::TranslationMultidomain.Dns_(*keys)
22
- end
23
- end
7
+ TEXT_DOMAIN = 'hammer-cli'
24
8
 
25
9
  # include this module to see translations highlighted
26
10
  module Debug
27
11
  DL = '>'
28
12
  DR = '<'
29
13
 
30
- # slightly modified copy of fast_gettext D_* method
14
+ # slightly modified copy of fast_gettext _ method
31
15
  def _(key)
32
- FastGettext.translation_repositories.each_key do |domain|
33
- result = FastGettext::TranslationMultidomain.d_(domain, key) {nil}
34
- return DL + result + DR unless result.nil?
35
- end
36
- DL + key + DR
16
+ _wrap { FastGettext::Translation._(key) }
37
17
  end
38
18
 
39
- # slightly modified copy of fast_gettext D_* method
19
+ # slightly modified copy of fast_gettext n_ method
40
20
  def n_(*keys)
41
- FastGettext.translation_repositories.each_key do |domain|
42
- result = FastGettext::TranslationMultidomain.dn_(domain, *keys) {nil}
43
- return DL + result + DR unless result.nil?
44
- end
45
- DL + keys[-3].split(keys[-2]||FastGettext::NAMESPACE_SEPARATOR).last + DR
21
+ _wrap { FastGettext::Translation.n_(*keys) }
46
22
  end
47
23
 
48
- # slightly modified copy of fast_gettext D_* method
49
- def s_(key, separator=nil)
50
- FastGettext.translation_repositories.each_key do |domain|
51
- result = FastGettext::TranslationMultidomain.ds_(domain, key, separator) {nil}
52
- return DL + result + DR unless result.nil?
53
- end
54
- DL + key.split(separator||FastGettext::NAMESPACE_SEPARATOR).last + DR
24
+ # slightly modified copy of fast_gettext s_ method
25
+ def s_(key, separator=nil, &block)
26
+ _wrap { FastGettext::Translation.s_(key, separator, &block) }
55
27
  end
56
28
 
57
- # slightly modified copy of fast_gettext D_* method
58
- def ns_(*keys)
59
- FastGettext.translation_repositories.each_key do |domain|
60
- result = FastGettext::TranslationMultidomain.dns_(domain, *keys) {nil}
61
- return DL + result + DR unless result.nil?
62
- end
63
- DL + keys[-2].split(FastGettext::NAMESPACE_SEPARATOR).last + DR
29
+ # slightly modified copy of fast_gettext ns_ method
30
+ def ns_(*args, &block)
31
+ _wrap { FastGettext::Translation.ns_(*args, &block) }
32
+ end
33
+
34
+ def _wrap(&block)
35
+ result = yield
36
+ DL + result + DR unless result.nil?
64
37
  end
65
38
  end
66
39
 
67
40
  class AbstractLocaleDomain
68
-
69
41
  def available_locales
70
42
  Dir.glob(locale_dir+'/*').select { |f| File.directory? f }.map { |f| File.basename(f) }
71
43
  end
@@ -87,7 +59,6 @@ module HammerCLI
87
59
 
88
60
 
89
61
  class LocaleDomain < AbstractLocaleDomain
90
-
91
62
  def translated_files
92
63
  Dir.glob(File.join(File.dirname(__FILE__), '../**/*.rb'))
93
64
  end
@@ -99,18 +70,14 @@ module HammerCLI
99
70
  def domain_name
100
71
  'hammer-cli'
101
72
  end
102
-
103
73
  end
104
74
 
105
75
  class SystemLocaleDomain < LocaleDomain
106
-
107
76
  def locale_dir
108
77
  '/usr/share/locale'
109
78
  end
110
-
111
79
  end
112
80
 
113
-
114
81
  def self.locale
115
82
  lang_variant = Locale.current.to_simple.to_str
116
83
  lang = lang_variant.gsub(/_.*/, "")
@@ -123,34 +90,56 @@ module HammerCLI
123
90
  end
124
91
  end
125
92
 
126
-
127
93
  def self.domains
128
94
  @domains ||= []
129
- @domains
130
95
  end
131
96
 
132
-
133
97
  def self.add_domain(domain)
134
98
  if domain.available?
135
99
  domains << domain
136
- FastGettext.add_text_domain(domain.domain_name, :path => domain.locale_dir, :type => domain.type, :report_warning => false)
100
+ if base_repo_type == :merge
101
+ translation_repository.add_repo(build_repository(domain))
102
+ else
103
+ translation_repository.chain << build_repository(domain)
104
+ end
137
105
  end
138
106
  end
139
107
 
108
+ def self.build_repository(domain)
109
+ FastGettext::TranslationRepository.build(domain.domain_name, :path => domain.locale_dir, :type => domain.type, :report_warning => false)
110
+ end
140
111
 
141
- def self.clear
142
- FastGettext.translation_repositories.clear
143
- domains.clear
112
+ def self.translation_repository
113
+ FastGettext.translation_repositories[HammerCLI::I18n::TEXT_DOMAIN]
144
114
  end
145
115
 
146
- Encoding.default_external='UTF-8' if defined? Encoding
147
- FastGettext.locale = locale
116
+ def self.base_repo_type
117
+ (fast_gettext_version >= '1.2.0') ? :merge : :chain
118
+ end
148
119
 
120
+ def self.fast_gettext_version
121
+ FastGettext::VERSION
122
+ end
123
+
124
+ def self.init(default_domains = [])
125
+ Encoding.default_external='UTF-8' if defined? Encoding
126
+ FastGettext.locale = locale
127
+ FastGettext.text_domain = HammerCLI::I18n::TEXT_DOMAIN
128
+ FastGettext.translation_repositories[HammerCLI::I18n::TEXT_DOMAIN] = FastGettext::TranslationRepository.build(HammerCLI::I18n::TEXT_DOMAIN, :type => base_repo_type, :chain => [])
129
+
130
+ @domains = []
131
+ default_domains.each do |domain|
132
+ add_domain(domain)
133
+ end
134
+ end
135
+
136
+ init
149
137
  end
150
138
  end
151
139
 
152
140
  include FastGettext::Translation
153
- include HammerCLI::I18n::AllDomains
141
+
154
142
 
155
143
  domain = [HammerCLI::I18n::LocaleDomain.new, HammerCLI::I18n::SystemLocaleDomain.new].find { |d| d.available? }
156
144
  HammerCLI::I18n.add_domain(domain) if domain
145
+
@@ -62,6 +62,27 @@ module HammerCLI
62
62
  super(switch)
63
63
  end
64
64
 
65
+ def deprecation_message(switch)
66
+ if deprecated_switches.class <= String && switches.include?(switch)
67
+ deprecated_switches
68
+ elsif deprecated_switches.class <= Hash && deprecated_switches.keys.include?(switch)
69
+ deprecated_switches[switch]
70
+ end
71
+ end
72
+
73
+ def description
74
+ if deprecated_switches.class <= String
75
+ format_deprecation_msg(super, _('Deprecated: %{deprecated_msg}') % { deprecated_msg: deprecated_switches })
76
+ elsif deprecated_switches.class <= Hash
77
+ full_msg = deprecated_switches.map do |flag, msg|
78
+ _('%{flag} is deprecated: %{deprecated_msg}') % { flag: flag, deprecated_msg: msg }
79
+ end.join(', ')
80
+ format_deprecation_msg(super, full_msg)
81
+ else
82
+ super
83
+ end
84
+ end
85
+
65
86
  def format_description
66
87
  if value_formatter.nil?
67
88
  ""
@@ -104,6 +125,10 @@ module HammerCLI
104
125
 
105
126
  private
106
127
 
128
+ def format_deprecation_msg(option_desc, deprecation_msg)
129
+ "#{option_desc} (#{deprecation_msg})"
130
+ end
131
+
107
132
  def infer_attribute_name
108
133
  HammerCLI.option_accessor_name(super)
109
134
  end
@@ -60,7 +60,7 @@ module HammerCLI::Output::Adapter
60
60
 
61
61
  if collection.meta.pagination_set? && collection.count < collection.meta.subtotal
62
62
  pages = (collection.meta.subtotal.to_f/collection.meta.per_page).ceil
63
- puts _("Page #{collection.meta.page} of #{pages} (use --page and --per-page for navigation)")
63
+ puts _("Page %{page} of %{total} (use --page and --per-page for navigation)") % {:page => collection.meta.page, :total => pages}
64
64
  end
65
65
  end
66
66
 
@@ -34,10 +34,14 @@ module HammerCLI
34
34
 
35
35
  def self.load_from_file(file_path)
36
36
  if File.file? file_path
37
- config = YAML::load(File.open(file_path))
38
- if config
39
- load(config)
40
- path_history << file_path
37
+ begin
38
+ config = YAML::load(File.open(file_path))
39
+ if config
40
+ load(config)
41
+ path_history << file_path
42
+ end
43
+ rescue Exception => e
44
+ warn _("Warning: Couldn't load configuration file %{path}: %{message}") % { path: file_path, message: e.message }
41
45
  end
42
46
  end
43
47
  end
@@ -1,5 +1,5 @@
1
1
  module HammerCLI
2
2
  def self.version
3
- @version ||= Gem::Version.new '0.7.0'
3
+ @version ||= Gem::Version.new '0.8.0'
4
4
  end
5
5
  end
Binary file
@@ -3,14 +3,14 @@
3
3
  # This file is distributed under the same license as the hammer-cli package.
4
4
  #
5
5
  # Translators:
6
- # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2015
6
+ # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2015
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Foreman\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2015-12-08 08:56+0000\n"
12
- "PO-Revision-Date: 2015-12-11 09:44+0000\n"
13
- "Last-Translator: Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>\n"
11
+ "POT-Creation-Date: 2016-06-14 23:26+0200\n"
12
+ "PO-Revision-Date: 2016-06-15 08:49+0000\n"
13
+ "Last-Translator: Lukáš Zapletal\n"
14
14
  "Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -54,11 +54,11 @@ msgstr "No hi ha la suborde '%<name>s'"
54
54
  msgid "no value provided"
55
55
  msgstr "no s'ha proporcionat cap valor"
56
56
 
57
- #: ../lib/hammer_cli/defaults.rb:72
57
+ #: ../lib/hammer_cli/defaults.rb:77
58
58
  msgid "Couldn't create %s please create the path before defaults are enabled."
59
59
  msgstr "No s'ha pogut crear %s, si us plau, creeu el camí abans que s'habilitin els per defecte."
60
60
 
61
- #: ../lib/hammer_cli/defaults.rb:82
61
+ #: ../lib/hammer_cli/defaults.rb:101
62
62
  msgid "Defaults management"
63
63
  msgstr "Gestió dels per defecte"
64
64
 
@@ -266,59 +266,60 @@ msgstr "Advertència: S'ha produït un error mentre es carregava el mòdul %s"
266
266
  msgid "Error: Some of the required modules are disabled in configuration: %s "
267
267
  msgstr "Error: Alguns dels mòduls requerits estan inhabilitats en la configuració: %s "
268
268
 
269
- #: ../lib/hammer_cli/options/normalizers.rb:26
269
+ #: ../lib/hammer_cli/options/normalizers.rb:29
270
270
  msgid "Comma-separated list of key=value."
271
271
  msgstr "Llista separada per comes de clau=valor."
272
272
 
273
- #: ../lib/hammer_cli/options/normalizers.rb:39
274
- msgid "value must be defined as a comma-separated list of key=value"
275
- msgstr "El valor ha d'estar definit com a una llista separada per comes de clau=valor"
273
+ #: ../lib/hammer_cli/options/normalizers.rb:43
274
+ msgid ""
275
+ "value must be defined as a comma-separated list of key=value or valid JSON"
276
+ msgstr ""
276
277
 
277
- #: ../lib/hammer_cli/options/normalizers.rb:73
278
+ #: ../lib/hammer_cli/options/normalizers.rb:85
278
279
  msgid "Comma separated list of values."
279
280
  msgstr "Llista separada per comes dels valors."
280
281
 
281
- #: ../lib/hammer_cli/options/normalizers.rb:88
282
+ #: ../lib/hammer_cli/options/normalizers.rb:100
282
283
  msgid "numeric value is required"
283
284
  msgstr "es requereix un valor numèric"
284
285
 
285
- #: ../lib/hammer_cli/options/normalizers.rb:102
286
+ #: ../lib/hammer_cli/options/normalizers.rb:114
286
287
  msgid "One of true/false, yes/no, 1/0."
287
288
  msgstr "Un de true/false, yes/no, 1/0."
288
289
 
289
- #: ../lib/hammer_cli/options/normalizers.rb:112
290
+ #: ../lib/hammer_cli/options/normalizers.rb:124
290
291
  msgid "value must be one of true/false, yes/no, 1/0"
291
292
  msgstr "el valor ha de ser un de true/false, yes/no, 1/0"
292
293
 
293
- #: ../lib/hammer_cli/options/normalizers.rb:151
294
+ #: ../lib/hammer_cli/options/normalizers.rb:163
294
295
  msgid "Unable to parse JSON input"
295
296
  msgstr "No es pot analitzar sintàcticament l'entrada de JSON"
296
297
 
297
- #: ../lib/hammer_cli/options/normalizers.rb:165
298
+ #: ../lib/hammer_cli/options/normalizers.rb:177
298
299
  msgid "Possible value(s): %s"
299
300
  msgstr "Valors possibles: %s"
300
301
 
301
- #: ../lib/hammer_cli/options/normalizers.rb:173
302
+ #: ../lib/hammer_cli/options/normalizers.rb:185
302
303
  msgid "value must be %s"
303
304
  msgstr "el valor ha de ser %s"
304
305
 
305
- #: ../lib/hammer_cli/options/normalizers.rb:175
306
+ #: ../lib/hammer_cli/options/normalizers.rb:187
306
307
  msgid "value must be one of %s"
307
308
  msgstr "el valor ha de ser un de %s"
308
309
 
309
- #: ../lib/hammer_cli/options/normalizers.rb:196
310
+ #: ../lib/hammer_cli/options/normalizers.rb:208
310
311
  msgid "Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format"
311
312
  msgstr "Data i hora en format YYYY-MM-DD HH:MM:SS o ISO 8601"
312
313
 
313
- #: ../lib/hammer_cli/options/normalizers.rb:203
314
+ #: ../lib/hammer_cli/options/normalizers.rb:215
314
315
  msgid "'%s' is not a valid date"
315
316
  msgstr "'%s' no és una data vàlida"
316
317
 
317
- #: ../lib/hammer_cli/options/normalizers.rb:214
318
+ #: ../lib/hammer_cli/options/normalizers.rb:226
318
319
  msgid "Any combination (comma separated list) of '%s'"
319
320
  msgstr "Qualsevol combinació (llista separada per comes) de '%s'"
320
321
 
321
- #: ../lib/hammer_cli/options/normalizers.rb:234
322
+ #: ../lib/hammer_cli/options/normalizers.rb:246
322
323
  msgid "value must be a combination of '%s'"
323
324
  msgstr "el valor ha de ser una combinació de '%s'"
324
325
 
@@ -338,26 +339,32 @@ msgstr "Per defecte:"
338
339
  msgid ", or "
339
340
  msgstr ", o "
340
341
 
341
- #: ../lib/hammer_cli/output/adapter/csv.rb:174
342
+ #: ../lib/hammer_cli/output/adapter/csv.rb:179
342
343
  msgid "Message"
343
344
  msgstr "Missatge"
344
345
 
345
- #: ../lib/hammer_cli/output/adapter/csv.rb:178
346
+ #: ../lib/hammer_cli/output/adapter/csv.rb:183
346
347
  msgid "Id"
347
348
  msgstr "ID"
348
349
 
349
- #: ../lib/hammer_cli/output/adapter/csv.rb:183
350
+ #: ../lib/hammer_cli/output/adapter/csv.rb:188
350
351
  msgid "Name"
351
352
  msgstr "Nom"
352
353
 
353
- #: ../lib/hammer_cli/output/formatters.rb:154
354
- msgid "yes"
355
- msgstr "si"
354
+ #: ../lib/hammer_cli/output/adapter/table.rb:63
355
+ msgid ""
356
+ "\"Page #{collection.meta.page} of #{pages} (use --page and --per-page for "
357
+ "navigation)\""
358
+ msgstr ""
356
359
 
357
- #: ../lib/hammer_cli/output/formatters.rb:154
360
+ #: ../lib/hammer_cli/output/formatters.rb:160
358
361
  msgid "no"
359
362
  msgstr "no"
360
363
 
364
+ #: ../lib/hammer_cli/output/formatters.rb:160
365
+ msgid "yes"
366
+ msgstr "si"
367
+
361
368
  #: ../lib/hammer_cli/settings.rb:27
362
369
  msgid ""
363
370
  "Warning: location hammer.modules.d is deprecated, move your module "
@@ -402,10 +409,26 @@ msgstr "No podeu establir totes les opcions %s alhora"
402
409
  msgid "Options %s are required"
403
410
  msgstr "Es requereixen %s opcions"
404
411
 
405
- #: ../lib/hammer_cli/validator.rb:79
412
+ #: ../lib/hammer_cli/validator.rb:77
413
+ msgid "You can't set option %s"
414
+ msgstr ""
415
+
416
+ #: ../lib/hammer_cli/validator.rb:78
417
+ msgid "Option %s is required"
418
+ msgstr ""
419
+
420
+ #: ../lib/hammer_cli/validator.rb:90
406
421
  msgid "You can't set any of options %s"
407
422
  msgstr "No podeu establir cap de les opcions %s"
408
423
 
409
- #: ../lib/hammer_cli/validator.rb:80
424
+ #: ../lib/hammer_cli/validator.rb:91
410
425
  msgid "At least one of options %s is required"
411
426
  msgstr "Com a mínim es requereix una de les opcions %s"
427
+
428
+ #: ../lib/hammer_cli/validator.rb:116
429
+ msgid "One of options %s is required"
430
+ msgstr ""
431
+
432
+ #: ../lib/hammer_cli/validator.rb:120
433
+ msgid "Only one of options %s can be set"
434
+ msgstr ""
@@ -1,7 +1,7 @@
1
1
  #
2
2
  msgid ""
3
3
  msgstr ""
4
- "Project-Id-Version: hammer-cli 0.7.0\n"
4
+ "Project-Id-Version: hammer-cli 0.8.0\n"
5
5
  "Report-Msgid-Bugs-To: \n"
6
6
  "MIME-Version: 1.0\n"
7
7
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -40,7 +40,7 @@ msgstr "No hi ha la suborde '%<name>s'"
40
40
  msgid "no value provided"
41
41
  msgstr "no s'ha proporcionat cap valor"
42
42
 
43
- msgid "Couldn't create %s please create the path before defaults are enabled."
43
+ msgid "Couldn't create %s. Please create the directory before setting defaults."
44
44
  msgstr ""
45
45
 
46
46
  msgid "Defaults management"
@@ -96,8 +96,8 @@ msgid "Added %{key_val} default-option with value %{val_val}."
96
96
  msgstr ""
97
97
 
98
98
  msgid ""
99
- "\"Provider #{namespace} was not found. See `hammer defaults providers` for avai"
100
- "lable providers.\""
99
+ "Provider %{name} was not found. See `hammer defaults providers` for available "
100
+ "providers."
101
101
  msgstr ""
102
102
 
103
103
  msgid ""
@@ -108,7 +108,7 @@ msgstr ""
108
108
  msgid "%{param} was deleted successfully."
109
109
  msgstr ""
110
110
 
111
- msgid "You must specify value or a provider name, cant specify both."
111
+ msgid "You must specify value or a provider name, can't specify both."
112
112
  msgstr ""
113
113
 
114
114
  msgid "Couldn't find the requested param in %s."
@@ -251,6 +251,12 @@ msgstr "el valor ha de ser una combinació de '%s'"
251
251
  msgid "Warning: Option %{option} is deprecated. %{message}"
252
252
  msgstr ""
253
253
 
254
+ msgid "Deprecated: %{deprecated_msg}"
255
+ msgstr ""
256
+
257
+ msgid "%{flag} is deprecated: %{deprecated_msg}"
258
+ msgstr ""
259
+
254
260
  msgid "Can be specified multiple times. "
255
261
  msgstr "Es pot especificar múltiples vegades."
256
262
 
@@ -269,9 +275,7 @@ msgstr "ID"
269
275
  msgid "Name"
270
276
  msgstr "Nom"
271
277
 
272
- msgid ""
273
- "\"Page #{collection.meta.page} of #{pages} (use --page and --per-page for navig"
274
- "ation)\""
278
+ msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
275
279
  msgstr ""
276
280
 
277
281
  msgid "no"
@@ -287,6 +291,9 @@ msgstr ""
287
291
  "Advertència: la ubicació hammer.modules.d està en desús, moveu les configuraci"
288
292
  "ons dels vostres mòduls a cli.modules.d"
289
293
 
294
+ msgid "Warning: Couldn't load configuration file %{path}: %{message}"
295
+ msgstr ""
296
+
290
297
  msgid "Print help for commands"
291
298
  msgstr "Imprimeix l'ajuda per a les ordres"
292
299
 
Binary file