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
@@ -8,7 +8,7 @@
8
8
  # ypoyarko <ypoyarko@redhat.com>, 2015. #zanata
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: hammer-cli 0.7.0\n"
11
+ "Project-Id-Version: hammer-cli 0.8.0\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
13
  "PO-Revision-Date: 2015-04-28 04:41+0000\n"
14
14
  "Last-Translator: ypoyarko <ypoyarko@redhat.com>\n"
@@ -49,7 +49,7 @@ msgstr "Подкоманда «%<name>s» не существует"
49
49
  msgid "no value provided"
50
50
  msgstr "значение не определено"
51
51
 
52
- msgid "Couldn't create %s please create the path before defaults are enabled."
52
+ msgid "Couldn't create %s. Please create the directory before setting defaults."
53
53
  msgstr ""
54
54
 
55
55
  msgid "Defaults management"
@@ -105,8 +105,8 @@ msgid "Added %{key_val} default-option with value %{val_val}."
105
105
  msgstr ""
106
106
 
107
107
  msgid ""
108
- "\"Provider #{namespace} was not found. See `hammer defaults providers` for avai"
109
- "lable providers.\""
108
+ "Provider %{name} was not found. See `hammer defaults providers` for available "
109
+ "providers."
110
110
  msgstr ""
111
111
 
112
112
  msgid ""
@@ -117,7 +117,7 @@ msgstr ""
117
117
  msgid "%{param} was deleted successfully."
118
118
  msgstr ""
119
119
 
120
- msgid "You must specify value or a provider name, cant specify both."
120
+ msgid "You must specify value or a provider name, can't specify both."
121
121
  msgstr ""
122
122
 
123
123
  msgid "Couldn't find the requested param in %s."
@@ -262,6 +262,12 @@ msgstr "значение должно содержать комбинацию «
262
262
  msgid "Warning: Option %{option} is deprecated. %{message}"
263
263
  msgstr ""
264
264
 
265
+ msgid "Deprecated: %{deprecated_msg}"
266
+ msgstr ""
267
+
268
+ msgid "%{flag} is deprecated: %{deprecated_msg}"
269
+ msgstr ""
270
+
265
271
  msgid "Can be specified multiple times. "
266
272
  msgstr "Может быть указан повторно."
267
273
 
@@ -280,9 +286,7 @@ msgstr "ID"
280
286
  msgid "Name"
281
287
  msgstr "Имя"
282
288
 
283
- msgid ""
284
- "\"Page #{collection.meta.page} of #{pages} (use --page and --per-page for navig"
285
- "ation)\""
289
+ msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
286
290
  msgstr ""
287
291
 
288
292
  msgid "no"
@@ -298,6 +302,9 @@ msgstr ""
298
302
  "Предупреждение. hammer.modules.d устарел. Скопируйте конфигурацию модулей в cl"
299
303
  "i.modules.d"
300
304
 
305
+ msgid "Warning: Couldn't load configuration file %{path}: %{message}"
306
+ msgstr ""
307
+
301
308
  msgid "Print help for commands"
302
309
  msgstr "Справка по командам"
303
310
 
Binary file
@@ -8,8 +8,8 @@ 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: 2016-03-08 16:59+0000\n"
11
+ "POT-Creation-Date: 2016-06-14 23:26+0200\n"
12
+ "PO-Revision-Date: 2016-08-22 15:05+0000\n"
13
13
  "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
14
14
  "Language-Team: Chinese (China) (http://www.transifex.com/foreman/foreman/language/zh_CN/)\n"
15
15
  "MIME-Version: 1.0\n"
@@ -54,25 +54,25 @@ msgstr "没有子命令 '%<name>s'"
54
54
  msgid "no value provided"
55
55
  msgstr "未提供数值"
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
- msgstr ""
59
+ msgstr "无法创建 %s,请在启用默认选项前创建路径。"
60
60
 
61
- #: ../lib/hammer_cli/defaults.rb:82
61
+ #: ../lib/hammer_cli/defaults.rb:101
62
62
  msgid "Defaults management"
63
- msgstr ""
63
+ msgstr "默认管理"
64
64
 
65
65
  #: ../lib/hammer_cli/defaults_commands.rb:25
66
66
  msgid "List all the providers"
67
- msgstr ""
67
+ msgstr "列出所有提供者"
68
68
 
69
69
  #: ../lib/hammer_cli/defaults_commands.rb:37
70
70
  msgid "Provider"
71
- msgstr "提供商"
71
+ msgstr "提供者"
72
72
 
73
73
  #: ../lib/hammer_cli/defaults_commands.rb:38
74
74
  msgid "Supported defaults"
75
- msgstr ""
75
+ msgstr "支持的默认"
76
76
 
77
77
  #: ../lib/hammer_cli/defaults_commands.rb:39
78
78
  msgid "Description"
@@ -80,7 +80,7 @@ msgstr "描述"
80
80
 
81
81
  #: ../lib/hammer_cli/defaults_commands.rb:56
82
82
  msgid "List all the default parameters"
83
- msgstr ""
83
+ msgstr "列出所有默认参数"
84
84
 
85
85
  #: ../lib/hammer_cli/defaults_commands.rb:67
86
86
  msgid "Parameter"
@@ -92,63 +92,63 @@ msgstr "选项值"
92
92
 
93
93
  #: ../lib/hammer_cli/defaults_commands.rb:86
94
94
  msgid "Delete a default param"
95
- msgstr ""
95
+ msgstr "删除默认参数"
96
96
 
97
97
  #: ../lib/hammer_cli/defaults_commands.rb:87
98
98
  msgid "The name of the default option"
99
- msgstr ""
99
+ msgstr "默认选项名称"
100
100
 
101
101
  #: ../lib/hammer_cli/defaults_commands.rb:103
102
102
  msgid "Add a default parameter to config"
103
- msgstr ""
103
+ msgstr "在配置中添加默认参数"
104
104
 
105
105
  #: ../lib/hammer_cli/defaults_commands.rb:104
106
106
  msgid "The name of the default option (e.g. organization_id)."
107
- msgstr ""
107
+ msgstr "默认选项名称(例如:organization_id)"
108
108
 
109
109
  #: ../lib/hammer_cli/defaults_commands.rb:105
110
110
  msgid "The value for the default option"
111
- msgstr ""
111
+ msgstr "默认选项值"
112
112
 
113
113
  #: ../lib/hammer_cli/defaults_commands.rb:106
114
114
  msgid ""
115
115
  "The name of the provider providing the value. For list available providers "
116
116
  "see `hammer defaults providers`."
117
- msgstr ""
117
+ msgstr "提供该值的提供者名称。有关可用提供者列表,请参看 `hammer defaults providers`。"
118
118
 
119
119
  #: ../lib/hammer_cli/defaults_commands.rb:134
120
120
  msgid ""
121
121
  "Added %{key_val} default-option with value that will be generated from the "
122
122
  "server."
123
- msgstr ""
123
+ msgstr "添加使用该服务器生成值的 %{key_val} 默认选项。"
124
124
 
125
125
  #: ../lib/hammer_cli/defaults_commands.rb:135
126
126
  msgid "Added %{key_val} default-option with value %{val_val}."
127
- msgstr ""
127
+ msgstr "添加使用值 %{val_val} 的 %{key_val} 默认选项。"
128
128
 
129
129
  #: ../lib/hammer_cli/defaults_commands.rb:139
130
130
  msgid ""
131
131
  "\"Provider #{namespace} was not found. See `hammer defaults providers` for "
132
132
  "available providers.\""
133
- msgstr ""
133
+ msgstr "\"未找到提供者 #{namespace}。有关可用提供者列表,请查看 `hammer defaults providers` 。\""
134
134
 
135
135
  #: ../lib/hammer_cli/defaults_commands.rb:143
136
136
  msgid ""
137
137
  "The param name is not supported by provider. See `hammer defaults providers`"
138
138
  " for supported params."
139
- msgstr ""
139
+ msgstr "提供者不支持该参数名称。有关支持的参数,请查看 `hammer defaults providers`。"
140
140
 
141
141
  #: ../lib/hammer_cli/defaults_commands.rb:147
142
142
  msgid "%{param} was deleted successfully."
143
- msgstr ""
143
+ msgstr "成功删除 %{param}。"
144
144
 
145
145
  #: ../lib/hammer_cli/defaults_commands.rb:151
146
146
  msgid "You must specify value or a provider name, cant specify both."
147
- msgstr ""
147
+ msgstr "必须指定值或提供者名称,但不能二者同时指定。"
148
148
 
149
149
  #: ../lib/hammer_cli/defaults_commands.rb:155
150
150
  msgid "Couldn't find the requested param in %s."
151
- msgstr ""
151
+ msgstr "无法在 %s 中找到请求的参数。"
152
152
 
153
153
  #: ../lib/hammer_cli/exception_handler.rb:62
154
154
  msgid "Error: %s"
@@ -266,65 +266,66 @@ msgstr "警告:载入模块 %s 时出错"
266
266
  msgid "Error: Some of the required modules are disabled in configuration: %s "
267
267
  msgstr "错误:在配置中禁用了一些要求的模块:%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 "用逗号分开的 key=value 列表。"
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 "必须使用以逗号分开的 key=value 列表定义数值"
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 "必须使用以逗号分开的 key=value 列表或有效的 JSON 来定义数值"
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 "逗号分开的数值列表。"
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
- msgstr ""
284
+ msgstr "需要数字值"
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 "从 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 "数值必须是 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 "无法解析 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
- msgstr ""
300
+ msgstr "可能值为:%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
- msgstr "数值必须是 '%s' 中的一个"
304
+ msgstr "值必须是 %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
- msgstr "数值必须是 '%s' 中的一个"
308
+ msgstr "数值必须是 %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 "日期和时间格式为 YYYY-MM-DD HH:MM:SS 或者 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' 不是有效日期"
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 "'%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 "数值必须为 '%s' 之一"
324
325
 
325
326
  #: ../lib/hammer_cli/options/option_definition.rb:56
326
327
  msgid "Warning: Option %{option} is deprecated. %{message}"
327
- msgstr ""
328
+ msgstr "警告:%{option} 选项已过时。%{message}"
328
329
 
329
330
  #: ../lib/hammer_cli/options/option_definition.rb:80
330
331
  msgid "Can be specified multiple times. "
@@ -338,26 +339,32 @@ msgstr "默认:"
338
339
  msgid ", or "
339
340
  msgstr ",或者"
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 "信息"
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 "名称"
352
353
 
353
- #: ../lib/hammer_cli/output/formatters.rb:154
354
- msgid "yes"
355
- msgstr "是"
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 "\"Page #{collection.meta.page} of #{pages} (use --page and --per-page for navigation)\""
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 "否"
360
363
 
364
+ #: ../lib/hammer_cli/output/formatters.rb:160
365
+ msgid "yes"
366
+ msgstr "是"
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 "无法一次设置所有选项 %s"
402
409
  msgid "Options %s are required"
403
410
  msgstr "需要选项 %s"
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 "无法设置任意选项 %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 "至少需要选项 %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 ""
@@ -3,7 +3,7 @@
3
3
  # Leah Liu <lliu@redhat.com>, 2015. #zanata
4
4
  msgid ""
5
5
  msgstr ""
6
- "Project-Id-Version: hammer-cli 0.7.0\n"
6
+ "Project-Id-Version: hammer-cli 0.8.0\n"
7
7
  "Report-Msgid-Bugs-To: \n"
8
8
  "PO-Revision-Date: 2015-04-27 01:22+0000\n"
9
9
  "Last-Translator: Leah Liu <lliu@redhat.com>\n"
@@ -42,7 +42,7 @@ msgstr "没有子命令 '%<name>s'"
42
42
  msgid "no value provided"
43
43
  msgstr "未提供数值"
44
44
 
45
- msgid "Couldn't create %s please create the path before defaults are enabled."
45
+ msgid "Couldn't create %s. Please create the directory before setting defaults."
46
46
  msgstr ""
47
47
 
48
48
  msgid "Defaults management"
@@ -98,8 +98,8 @@ msgid "Added %{key_val} default-option with value %{val_val}."
98
98
  msgstr ""
99
99
 
100
100
  msgid ""
101
- "\"Provider #{namespace} was not found. See `hammer defaults providers` for avai"
102
- "lable providers.\""
101
+ "Provider %{name} was not found. See `hammer defaults providers` for available "
102
+ "providers."
103
103
  msgstr ""
104
104
 
105
105
  msgid ""
@@ -110,7 +110,7 @@ msgstr ""
110
110
  msgid "%{param} was deleted successfully."
111
111
  msgstr ""
112
112
 
113
- msgid "You must specify value or a provider name, cant specify both."
113
+ msgid "You must specify value or a provider name, can't specify both."
114
114
  msgstr ""
115
115
 
116
116
  msgid "Couldn't find the requested param in %s."
@@ -253,6 +253,12 @@ msgstr "数值必须为 '%s' 之一"
253
253
  msgid "Warning: Option %{option} is deprecated. %{message}"
254
254
  msgstr ""
255
255
 
256
+ msgid "Deprecated: %{deprecated_msg}"
257
+ msgstr ""
258
+
259
+ msgid "%{flag} is deprecated: %{deprecated_msg}"
260
+ msgstr ""
261
+
256
262
  msgid "Can be specified multiple times. "
257
263
  msgstr "无法多次指定。"
258
264
 
@@ -275,9 +281,7 @@ msgstr "Id"
275
281
  msgid "Name"
276
282
  msgstr "名称"
277
283
 
278
- msgid ""
279
- "\"Page #{collection.meta.page} of #{pages} (use --page and --per-page for navig"
280
- "ation)\""
284
+ msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
281
285
  msgstr ""
282
286
 
283
287
  # translation auto-copied from project firstboot, version 19.6, document firstboot, author Leah Liu
@@ -293,6 +297,9 @@ msgid ""
293
297
  "ons to cli.modules.d"
294
298
  msgstr "警告:位置 hammer.modules.d 已启用,请将您的模块配置移至 cli.modules.d。"
295
299
 
300
+ msgid "Warning: Couldn't load configuration file %{path}: %{message}"
301
+ msgstr ""
302
+
296
303
  msgid "Print help for commands"
297
304
  msgstr "输出命令帮助信息"
298
305
 
Binary file