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.
- checksums.yaml +4 -4
- data/bin/hammer +1 -1
- data/doc/release_notes.md +12 -0
- data/lib/hammer_cli/defaults.rb +1 -1
- data/lib/hammer_cli/defaults_commands.rb +2 -2
- data/lib/hammer_cli/i18n.rb +48 -59
- data/lib/hammer_cli/options/option_definition.rb +25 -0
- data/lib/hammer_cli/output/adapter/table.rb +1 -1
- data/lib/hammer_cli/settings.rb +8 -4
- data/lib/hammer_cli/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ca/hammer-cli.edit.po +54 -31
- data/locale/ca/hammer-cli.po +15 -8
- data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/de/hammer-cli.edit.po +72 -49
- data/locale/de/hammer-cli.po +15 -8
- data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en/hammer-cli.edit.po +20 -8
- data/locale/en/hammer-cli.po +15 -8
- data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en_GB/hammer-cli.edit.po +53 -30
- data/locale/en_GB/hammer-cli.po +15 -8
- data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/es/hammer-cli.edit.po +83 -60
- data/locale/es/hammer-cli.po +15 -8
- data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/fr/hammer-cli.edit.po +53 -30
- data/locale/fr/hammer-cli.po +15 -8
- data/locale/hammer-cli.pot +23 -13
- data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/it/hammer-cli.edit.po +53 -30
- data/locale/it/hammer-cli.po +15 -8
- data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ja/hammer-cli.edit.po +74 -51
- data/locale/ja/hammer-cli.po +15 -8
- data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ko/hammer-cli.edit.po +77 -54
- data/locale/ko/hammer-cli.po +15 -8
- data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/pt_BR/hammer-cli.edit.po +73 -50
- data/locale/pt_BR/hammer-cli.po +15 -8
- data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ru/hammer-cli.edit.po +54 -31
- data/locale/ru/hammer-cli.po +15 -8
- data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_CN/hammer-cli.edit.po +76 -53
- data/locale/zh_CN/hammer-cli.po +15 -8
- data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_TW/hammer-cli.edit.po +75 -52
- data/locale/zh_TW/hammer-cli.po +15 -8
- data/man/hammer.1.gz +0 -0
- data/test/functional/defaults_test.rb +1 -1
- data/test/unit/apipie/option_builder_test.rb +0 -4
- data/test/unit/exception_handler_test.rb +1 -1
- data/test/unit/i18n_test.rb +58 -12
- data/test/unit/options/option_definition_test.rb +18 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dc560a54a8356574b61f94171e0f2f3eaba55be
|
4
|
+
data.tar.gz: baecee7550c67ddd53dd4fb41a75e8b917b7f430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a442abbc69a621586676c5a12999856bd1a470e15832f03cc5b5d59e1b7e9e12dd714b1e91faff6534222e68babd344ff340d392fbe4f01879431d1bd13fce4c
|
7
|
+
data.tar.gz: 812bc9348b53072052e49e5384dcbcacb46ce9553cf3bfd71dfa19a1aaeb276f9d3bed21d337f5bbdcb33951b14822664643ae9e2eabf6340289fad88336d283
|
data/bin/hammer
CHANGED
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))
|
data/lib/hammer_cli/defaults.rb
CHANGED
@@ -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
|
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
|
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,
|
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
|
data/lib/hammer_cli/i18n.rb
CHANGED
@@ -4,68 +4,40 @@ require 'locale'
|
|
4
4
|
module HammerCLI
|
5
5
|
module I18n
|
6
6
|
|
7
|
-
|
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
|
14
|
+
# slightly modified copy of fast_gettext _ method
|
31
15
|
def _(key)
|
32
|
-
FastGettext.
|
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
|
19
|
+
# slightly modified copy of fast_gettext n_ method
|
40
20
|
def n_(*keys)
|
41
|
-
FastGettext.
|
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
|
49
|
-
def s_(key, separator=nil)
|
50
|
-
FastGettext.
|
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
|
58
|
-
def ns_(*
|
59
|
-
FastGettext.
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
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
|
-
|
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.
|
142
|
-
FastGettext.translation_repositories
|
143
|
-
domains.clear
|
112
|
+
def self.translation_repository
|
113
|
+
FastGettext.translation_repositories[HammerCLI::I18n::TEXT_DOMAIN]
|
144
114
|
end
|
145
115
|
|
146
|
-
|
147
|
-
|
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
|
-
|
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
|
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
|
|
data/lib/hammer_cli/settings.rb
CHANGED
@@ -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
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
data/lib/hammer_cli/version.rb
CHANGED
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
|
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:
|
12
|
-
"PO-Revision-Date:
|
13
|
-
"Last-Translator:
|
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:
|
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:
|
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:
|
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:
|
274
|
-
msgid "
|
275
|
-
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
350
|
+
#: ../lib/hammer_cli/output/adapter/csv.rb:188
|
350
351
|
msgid "Name"
|
351
352
|
msgstr "Nom"
|
352
353
|
|
353
|
-
#: ../lib/hammer_cli/output/
|
354
|
-
msgid "
|
355
|
-
|
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:
|
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:
|
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:
|
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 ""
|
data/locale/ca/hammer-cli.po
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
msgid ""
|
3
3
|
msgstr ""
|
4
|
-
"Project-Id-Version: hammer-cli 0.
|
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
|
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
|
-
"
|
100
|
-
"
|
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,
|
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
|