hammer_cli 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/config/cli_config.template.yml +2 -2
  3. data/doc/release_notes.md +15 -0
  4. data/lib/hammer_cli/abstract.rb +22 -31
  5. data/lib/hammer_cli/apipie.rb +1 -0
  6. data/lib/hammer_cli/apipie/api_connection.rb +27 -0
  7. data/lib/hammer_cli/apipie/option_builder.rb +3 -3
  8. data/lib/hammer_cli/apipie/resource.rb +1 -26
  9. data/lib/hammer_cli/connection.rb +12 -11
  10. data/lib/hammer_cli/context.rb +4 -2
  11. data/lib/hammer_cli/exception_handler.rb +1 -1
  12. data/lib/hammer_cli/help/builder.rb +58 -0
  13. data/lib/hammer_cli/help/text_builder.rb +79 -0
  14. data/lib/hammer_cli/logger.rb +24 -21
  15. data/lib/hammer_cli/options/normalizers.rb +13 -2
  16. data/lib/hammer_cli/output/adapter/table.rb +2 -0
  17. data/lib/hammer_cli/output/formatters.rb +1 -1
  18. data/lib/hammer_cli/output/utils.rb +43 -0
  19. data/lib/hammer_cli/table_print/column.rb +19 -0
  20. data/lib/hammer_cli/table_print/formatter.rb +18 -0
  21. data/lib/hammer_cli/utils.rb +5 -1
  22. data/lib/hammer_cli/validator.rb +12 -2
  23. data/lib/hammer_cli/version.rb +1 -1
  24. data/locale/ca/LC_MESSAGES/hammer-cli.mo +0 -0
  25. data/locale/ca/hammer-cli.edit.po +26 -15
  26. data/locale/ca/hammer-cli.po +22 -6
  27. data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
  28. data/locale/de/hammer-cli.edit.po +32 -20
  29. data/locale/de/hammer-cli.po +22 -6
  30. data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
  31. data/locale/en/hammer-cli.edit.po +47 -29
  32. data/locale/en/hammer-cli.po +21 -5
  33. data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
  34. data/locale/en_GB/hammer-cli.edit.po +28 -17
  35. data/locale/en_GB/hammer-cli.po +22 -6
  36. data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
  37. data/locale/es/hammer-cli.edit.po +28 -17
  38. data/locale/es/hammer-cli.po +22 -6
  39. data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
  40. data/locale/fr/hammer-cli.edit.po +28 -17
  41. data/locale/fr/hammer-cli.po +22 -6
  42. data/locale/hammer-cli.pot +49 -31
  43. data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
  44. data/locale/it/hammer-cli.edit.po +23 -12
  45. data/locale/it/hammer-cli.po +22 -6
  46. data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
  47. data/locale/ja/hammer-cli.edit.po +28 -17
  48. data/locale/ja/hammer-cli.po +22 -6
  49. data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
  50. data/locale/ko/hammer-cli.edit.po +27 -16
  51. data/locale/ko/hammer-cli.po +22 -6
  52. data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
  53. data/locale/pt_BR/hammer-cli.edit.po +30 -19
  54. data/locale/pt_BR/hammer-cli.po +22 -6
  55. data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
  56. data/locale/ru/hammer-cli.edit.po +28 -17
  57. data/locale/ru/hammer-cli.po +22 -6
  58. data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
  59. data/locale/zh_CN/hammer-cli.edit.po +28 -17
  60. data/locale/zh_CN/hammer-cli.po +22 -6
  61. data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
  62. data/locale/zh_TW/hammer-cli.edit.po +27 -16
  63. data/locale/zh_TW/hammer-cli.po +22 -6
  64. data/man/hammer.1.gz +0 -0
  65. data/test/functional/help_test.rb +87 -0
  66. data/test/test_helper.rb +6 -0
  67. data/test/unit/abstract_test.rb +9 -0
  68. data/test/unit/apipie/api_connection_test.rb +38 -0
  69. data/test/unit/apipie/command_test.rb +6 -46
  70. data/test/unit/connection_test.rb +45 -54
  71. data/test/unit/exception_handler_test.rb +1 -1
  72. data/test/unit/fixtures/apipie/documented.json +1 -1
  73. data/test/unit/help/builder_test.rb +57 -0
  74. data/test/unit/help/text_builder_test.rb +140 -0
  75. data/test/unit/logger_test.rb +19 -0
  76. data/test/unit/options/normalizers_test.rb +12 -0
  77. data/test/unit/output/adapter/table_test.rb +101 -13
  78. data/test/unit/output/formatters_test.rb +6 -3
  79. data/test/unit/validator_test.rb +31 -2
  80. metadata +207 -179
@@ -9,7 +9,7 @@
9
9
  # gcintra <gcintra@redhat.com>, 2015. #zanata
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: hammer-cli 0.8.0\n"
12
+ "Project-Id-Version: hammer-cli 0.9.0\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "PO-Revision-Date: 2015-04-27 10:34+0000\n"
15
15
  "Last-Translator: gcintra <gcintra@redhat.com>\n"
@@ -132,9 +132,6 @@ msgstr "Erro: %{message}"
132
132
  msgid "See: '%{path} --help'"
133
133
  msgstr "Veja: '%{path} --help'"
134
134
 
135
- msgid "Invalid username or password"
136
- msgstr "nome de usuário ou senha inválidos"
137
-
138
135
  msgid "Could not load the API description from the server"
139
136
  msgstr "Não foi possível carregar a descrição do API do servidor"
140
137
 
@@ -221,8 +218,27 @@ msgstr "Lista da chave=valor separada por vírgulas."
221
218
  msgid "value must be defined as a comma-separated list of key=value or valid JSON"
222
219
  msgstr ""
223
220
 
224
- msgid "Comma separated list of values."
225
- msgstr "Lista de valores separada por vírgulas."
221
+ msgid "Missing or stray quote."
222
+ msgstr ""
223
+
224
+ msgid ""
225
+ "Unquoted fields do not allow
226
226
  or \n"
227
+ "."
228
+ msgstr ""
229
+
230
+ msgid "Illegal quoting."
231
+ msgstr ""
232
+
233
+ msgid "Unclosed quoted field."
234
+ msgstr ""
235
+
236
+ msgid "Field size exceeded."
237
+ msgstr ""
238
+
239
+ msgid ""
240
+ "Comma separated list of values. Values containing comma should be double quote"
241
+ "d"
242
+ msgstr ""
227
243
 
228
244
  msgid "numeric value is required"
229
245
  msgstr ""
Binary file
@@ -11,9 +11,9 @@ msgid ""
11
11
  msgstr ""
12
12
  "Project-Id-Version: Foreman\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
- "POT-Creation-Date: 2016-06-14 23:26+0200\n"
15
- "PO-Revision-Date: 2016-08-22 15:09+0000\n"
16
- "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
14
+ "POT-Creation-Date: 2016-09-01 12:28+0200\n"
15
+ "PO-Revision-Date: 2016-09-02 10:08+0000\n"
16
+ "Last-Translator: Lukáš Zapletal\n"
17
17
  "Language-Team: Russian (http://www.transifex.com/foreman/foreman/language/ru/)\n"
18
18
  "MIME-Version: 1.0\n"
19
19
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -58,8 +58,9 @@ msgid "no value provided"
58
58
  msgstr "значение не определено"
59
59
 
60
60
  #: ../lib/hammer_cli/defaults.rb:77
61
- msgid "Couldn't create %s please create the path before defaults are enabled."
62
- msgstr "Не удалось создать %s. Прежде чем можно будет применить стандартные параметры, необходимо настроить путь."
61
+ msgid ""
62
+ "Couldn't create %s. Please create the directory before setting defaults."
63
+ msgstr ""
63
64
 
64
65
  #: ../lib/hammer_cli/defaults.rb:101
65
66
  msgid "Defaults management"
@@ -131,9 +132,9 @@ msgstr "Добавлен стандартный параметр %{key_val} со
131
132
 
132
133
  #: ../lib/hammer_cli/defaults_commands.rb:139
133
134
  msgid ""
134
- "\"Provider #{namespace} was not found. See `hammer defaults providers` for "
135
- "available providers.\""
136
- msgstr "\"#{namespace} не найден. Для просмотра списка поставщиков выполните команду `hammer defaults providers`.\""
135
+ "Provider %{name} was not found. See `hammer defaults providers` for "
136
+ "available providers."
137
+ msgstr ""
137
138
 
138
139
  #: ../lib/hammer_cli/defaults_commands.rb:143
139
140
  msgid ""
@@ -146,8 +147,8 @@ msgid "%{param} was deleted successfully."
146
147
  msgstr "%{param} успешно удален."
147
148
 
148
149
  #: ../lib/hammer_cli/defaults_commands.rb:151
149
- msgid "You must specify value or a provider name, cant specify both."
150
- msgstr "Значение и имя провайдера не могут использоваться одновременно. Укажите только одно из двух."
150
+ msgid "You must specify value or a provider name, can't specify both."
151
+ msgstr ""
151
152
 
152
153
  #: ../lib/hammer_cli/defaults_commands.rb:155
153
154
  msgid "Couldn't find the requested param in %s."
@@ -330,15 +331,23 @@ msgstr "значение должно содержать комбинацию «
330
331
  msgid "Warning: Option %{option} is deprecated. %{message}"
331
332
  msgstr "Параметр %{option} является устаревшим. %{message}"
332
333
 
333
- #: ../lib/hammer_cli/options/option_definition.rb:80
334
+ #: ../lib/hammer_cli/options/option_definition.rb:75
335
+ msgid "Deprecated: %{deprecated_msg}"
336
+ msgstr ""
337
+
338
+ #: ../lib/hammer_cli/options/option_definition.rb:78
339
+ msgid "%{flag} is deprecated: %{deprecated_msg}"
340
+ msgstr ""
341
+
342
+ #: ../lib/hammer_cli/options/option_definition.rb:101
334
343
  msgid "Can be specified multiple times. "
335
344
  msgstr "Может быть указан повторно."
336
345
 
337
- #: ../lib/hammer_cli/options/option_definition.rb:81
346
+ #: ../lib/hammer_cli/options/option_definition.rb:102
338
347
  msgid "Default: "
339
348
  msgstr "По умолчанию:"
340
349
 
341
- #: ../lib/hammer_cli/options/option_definition.rb:81
350
+ #: ../lib/hammer_cli/options/option_definition.rb:102
342
351
  msgid ", or "
343
352
  msgstr ", или "
344
353
 
@@ -355,10 +364,8 @@ msgid "Name"
355
364
  msgstr "Имя"
356
365
 
357
366
  #: ../lib/hammer_cli/output/adapter/table.rb:63
358
- msgid ""
359
- "\"Page #{collection.meta.page} of #{pages} (use --page and --per-page for "
360
- "navigation)\""
361
- msgstr "\"Страница #{collection.meta.page} из #{pages} (используйте --page и --per-page для навигации)\""
367
+ msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
368
+ msgstr ""
362
369
 
363
370
  #: ../lib/hammer_cli/output/formatters.rb:160
364
371
  msgid "no"
@@ -374,6 +381,10 @@ msgid ""
374
381
  "configurations to cli.modules.d"
375
382
  msgstr "Предупреждение. hammer.modules.d устарел. Скопируйте конфигурацию модулей в cli.modules.d"
376
383
 
384
+ #: ../lib/hammer_cli/settings.rb:44
385
+ msgid "Warning: Couldn't load configuration file %{path}: %{message}"
386
+ msgstr ""
387
+
377
388
  #: ../lib/hammer_cli/shell.rb:10
378
389
  msgid "Print help for commands"
379
390
  msgstr "Справка по командам"
@@ -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.8.0\n"
11
+ "Project-Id-Version: hammer-cli 0.9.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"
@@ -132,9 +132,6 @@ msgstr "Ошибка: %{message}"
132
132
  msgid "See: '%{path} --help'"
133
133
  msgstr "См. '%{path} --help'"
134
134
 
135
- msgid "Invalid username or password"
136
- msgstr "Неверное имя пользователя или пароль"
137
-
138
135
  msgid "Could not load the API description from the server"
139
136
  msgstr "Не удалось загрузить описание API с сервера"
140
137
 
@@ -221,8 +218,27 @@ msgstr "Список пар «ключ=значение» через запят
221
218
  msgid "value must be defined as a comma-separated list of key=value or valid JSON"
222
219
  msgstr ""
223
220
 
224
- msgid "Comma separated list of values."
225
- msgstr "Список значений через запятую"
221
+ msgid "Missing or stray quote."
222
+ msgstr ""
223
+
224
+ msgid ""
225
+ "Unquoted fields do not allow
226
226
  or \n"
227
+ "."
228
+ msgstr ""
229
+
230
+ msgid "Illegal quoting."
231
+ msgstr ""
232
+
233
+ msgid "Unclosed quoted field."
234
+ msgstr ""
235
+
236
+ msgid "Field size exceeded."
237
+ msgstr ""
238
+
239
+ msgid ""
240
+ "Comma separated list of values. Values containing comma should be double quote"
241
+ "d"
242
+ msgstr ""
227
243
 
228
244
  msgid "numeric value is required"
229
245
  msgstr ""
Binary file
@@ -8,9 +8,9 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Foreman\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2016-06-14 23:26+0200\n"
12
- "PO-Revision-Date: 2016-08-22 15:05+0000\n"
13
- "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
11
+ "POT-Creation-Date: 2016-09-01 12:28+0200\n"
12
+ "PO-Revision-Date: 2016-09-02 10:08+0000\n"
13
+ "Last-Translator: Lukáš Zapletal\n"
14
14
  "Language-Team: Chinese (China) (http://www.transifex.com/foreman/foreman/language/zh_CN/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -55,8 +55,9 @@ msgid "no value provided"
55
55
  msgstr "未提供数值"
56
56
 
57
57
  #: ../lib/hammer_cli/defaults.rb:77
58
- msgid "Couldn't create %s please create the path before defaults are enabled."
59
- msgstr "无法创建 %s,请在启用默认选项前创建路径。"
58
+ msgid ""
59
+ "Couldn't create %s. Please create the directory before setting defaults."
60
+ msgstr ""
60
61
 
61
62
  #: ../lib/hammer_cli/defaults.rb:101
62
63
  msgid "Defaults management"
@@ -128,9 +129,9 @@ msgstr "添加使用值 %{val_val} 的 %{key_val} 默认选项。"
128
129
 
129
130
  #: ../lib/hammer_cli/defaults_commands.rb:139
130
131
  msgid ""
131
- "\"Provider #{namespace} was not found. See `hammer defaults providers` for "
132
- "available providers.\""
133
- msgstr "\"未找到提供者 #{namespace}。有关可用提供者列表,请查看 `hammer defaults providers` 。\""
132
+ "Provider %{name} was not found. See `hammer defaults providers` for "
133
+ "available providers."
134
+ msgstr ""
134
135
 
135
136
  #: ../lib/hammer_cli/defaults_commands.rb:143
136
137
  msgid ""
@@ -143,8 +144,8 @@ msgid "%{param} was deleted successfully."
143
144
  msgstr "成功删除 %{param}。"
144
145
 
145
146
  #: ../lib/hammer_cli/defaults_commands.rb:151
146
- msgid "You must specify value or a provider name, cant specify both."
147
- msgstr "必须指定值或提供者名称,但不能二者同时指定。"
147
+ msgid "You must specify value or a provider name, can't specify both."
148
+ msgstr ""
148
149
 
149
150
  #: ../lib/hammer_cli/defaults_commands.rb:155
150
151
  msgid "Couldn't find the requested param in %s."
@@ -327,15 +328,23 @@ msgstr "数值必须为 '%s' 之一"
327
328
  msgid "Warning: Option %{option} is deprecated. %{message}"
328
329
  msgstr "警告:%{option} 选项已过时。%{message}"
329
330
 
330
- #: ../lib/hammer_cli/options/option_definition.rb:80
331
+ #: ../lib/hammer_cli/options/option_definition.rb:75
332
+ msgid "Deprecated: %{deprecated_msg}"
333
+ msgstr ""
334
+
335
+ #: ../lib/hammer_cli/options/option_definition.rb:78
336
+ msgid "%{flag} is deprecated: %{deprecated_msg}"
337
+ msgstr ""
338
+
339
+ #: ../lib/hammer_cli/options/option_definition.rb:101
331
340
  msgid "Can be specified multiple times. "
332
341
  msgstr "无法多次指定。"
333
342
 
334
- #: ../lib/hammer_cli/options/option_definition.rb:81
343
+ #: ../lib/hammer_cli/options/option_definition.rb:102
335
344
  msgid "Default: "
336
345
  msgstr "默认:"
337
346
 
338
- #: ../lib/hammer_cli/options/option_definition.rb:81
347
+ #: ../lib/hammer_cli/options/option_definition.rb:102
339
348
  msgid ", or "
340
349
  msgstr ",或者"
341
350
 
@@ -352,10 +361,8 @@ msgid "Name"
352
361
  msgstr "名称"
353
362
 
354
363
  #: ../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)\""
364
+ msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
365
+ msgstr ""
359
366
 
360
367
  #: ../lib/hammer_cli/output/formatters.rb:160
361
368
  msgid "no"
@@ -371,6 +378,10 @@ msgid ""
371
378
  "configurations to cli.modules.d"
372
379
  msgstr "警告:位置 hammer.modules.d 已启用,请将您的模块配置移至 cli.modules.d。"
373
380
 
381
+ #: ../lib/hammer_cli/settings.rb:44
382
+ msgid "Warning: Couldn't load configuration file %{path}: %{message}"
383
+ msgstr ""
384
+
374
385
  #: ../lib/hammer_cli/shell.rb:10
375
386
  msgid "Print help for commands"
376
387
  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.8.0\n"
6
+ "Project-Id-Version: hammer-cli 0.9.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"
@@ -126,9 +126,6 @@ msgstr "错误:%{message}"
126
126
  msgid "See: '%{path} --help'"
127
127
  msgstr "请查看: '%{path} --help'"
128
128
 
129
- msgid "Invalid username or password"
130
- msgstr "无效用户名或密码"
131
-
132
129
  msgid "Could not load the API description from the server"
133
130
  msgstr "无法从服务器载入 API 描述"
134
131
 
@@ -212,8 +209,27 @@ msgstr "用逗号分开的 key=value 列表。"
212
209
  msgid "value must be defined as a comma-separated list of key=value or valid JSON"
213
210
  msgstr ""
214
211
 
215
- msgid "Comma separated list of values."
216
- msgstr "逗号分开的数值列表。"
212
+ msgid "Missing or stray quote."
213
+ msgstr ""
214
+
215
+ msgid ""
216
+ "Unquoted fields do not allow
217
217
  or \n"
218
+ "."
219
+ msgstr ""
220
+
221
+ msgid "Illegal quoting."
222
+ msgstr ""
223
+
224
+ msgid "Unclosed quoted field."
225
+ msgstr ""
226
+
227
+ msgid "Field size exceeded."
228
+ msgstr ""
229
+
230
+ msgid ""
231
+ "Comma separated list of values. Values containing comma should be double quote"
232
+ "d"
233
+ msgstr ""
218
234
 
219
235
  msgid "numeric value is required"
220
236
  msgstr ""
Binary file
@@ -8,9 +8,9 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Foreman\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2016-06-14 23:26+0200\n"
12
- "PO-Revision-Date: 2016-08-12 16:30+0000\n"
13
- "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
11
+ "POT-Creation-Date: 2016-09-01 12:28+0200\n"
12
+ "PO-Revision-Date: 2016-09-02 10:08+0000\n"
13
+ "Last-Translator: Lukáš Zapletal\n"
14
14
  "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/language/zh_TW/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -55,8 +55,9 @@ msgid "no value provided"
55
55
  msgstr "未提供值"
56
56
 
57
57
  #: ../lib/hammer_cli/defaults.rb:77
58
- msgid "Couldn't create %s please create the path before defaults are enabled."
59
- msgstr "無法建立 %s,請在啟用預設值前建立路徑。"
58
+ msgid ""
59
+ "Couldn't create %s. Please create the directory before setting defaults."
60
+ msgstr ""
60
61
 
61
62
  #: ../lib/hammer_cli/defaults.rb:101
62
63
  msgid "Defaults management"
@@ -128,9 +129,9 @@ msgstr "已新增 %{key_val} 預設選項,數值為 %{val_val}。"
128
129
 
129
130
  #: ../lib/hammer_cli/defaults_commands.rb:139
130
131
  msgid ""
131
- "\"Provider #{namespace} was not found. See `hammer defaults providers` for "
132
- "available providers.\""
133
- msgstr "\"找不到供應者 #{namespace}。欲知可用的供應者,請參見 `hammer defaults providers`。\""
132
+ "Provider %{name} was not found. See `hammer defaults providers` for "
133
+ "available providers."
134
+ msgstr ""
134
135
 
135
136
  #: ../lib/hammer_cli/defaults_commands.rb:143
136
137
  msgid ""
@@ -143,8 +144,8 @@ msgid "%{param} was deleted successfully."
143
144
  msgstr "已成功刪除 %{param}。"
144
145
 
145
146
  #: ../lib/hammer_cli/defaults_commands.rb:151
146
- msgid "You must specify value or a provider name, cant specify both."
147
- msgstr "您必須指定值或供應者名稱,但不能同時指定兩者。"
147
+ msgid "You must specify value or a provider name, can't specify both."
148
+ msgstr ""
148
149
 
149
150
  #: ../lib/hammer_cli/defaults_commands.rb:155
150
151
  msgid "Couldn't find the requested param in %s."
@@ -327,15 +328,23 @@ msgstr "值必須是「%s」的組合"
327
328
  msgid "Warning: Option %{option} is deprecated. %{message}"
328
329
  msgstr "警告:選項 %{option} 已淘汰。%{message}"
329
330
 
330
- #: ../lib/hammer_cli/options/option_definition.rb:80
331
+ #: ../lib/hammer_cli/options/option_definition.rb:75
332
+ msgid "Deprecated: %{deprecated_msg}"
333
+ msgstr ""
334
+
335
+ #: ../lib/hammer_cli/options/option_definition.rb:78
336
+ msgid "%{flag} is deprecated: %{deprecated_msg}"
337
+ msgstr ""
338
+
339
+ #: ../lib/hammer_cli/options/option_definition.rb:101
331
340
  msgid "Can be specified multiple times. "
332
341
  msgstr "可指定多次。"
333
342
 
334
- #: ../lib/hammer_cli/options/option_definition.rb:81
343
+ #: ../lib/hammer_cli/options/option_definition.rb:102
335
344
  msgid "Default: "
336
345
  msgstr "預設值:"
337
346
 
338
- #: ../lib/hammer_cli/options/option_definition.rb:81
347
+ #: ../lib/hammer_cli/options/option_definition.rb:102
339
348
  msgid ", or "
340
349
  msgstr ",或是"
341
350
 
@@ -352,9 +361,7 @@ msgid "Name"
352
361
  msgstr "名稱"
353
362
 
354
363
  #: ../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)\""
364
+ msgid "Page %{page} of %{total} (use --page and --per-page for navigation)"
358
365
  msgstr ""
359
366
 
360
367
  #: ../lib/hammer_cli/output/formatters.rb:160
@@ -371,6 +378,10 @@ msgid ""
371
378
  "configurations to cli.modules.d"
372
379
  msgstr "警告:hammer.modules.d 這個位置已淘汰使用,請將您的模組配置移至 cli.modules.d"
373
380
 
381
+ #: ../lib/hammer_cli/settings.rb:44
382
+ msgid "Warning: Couldn't load configuration file %{path}: %{message}"
383
+ msgstr ""
384
+
374
385
  #: ../lib/hammer_cli/shell.rb:10
375
386
  msgid "Print help for commands"
376
387
  msgstr "印出指令的說明"
@@ -7,7 +7,7 @@
7
7
  # tchuang <tchuang@redhat.com>, 2015. #zanata
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: hammer-cli 0.8.0\n"
10
+ "Project-Id-Version: hammer-cli 0.9.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "PO-Revision-Date: 2015-04-28 05:21+0000\n"
13
13
  "Last-Translator: tchuang <tchuang@redhat.com>\n"
@@ -130,9 +130,6 @@ msgstr "錯誤:%{message}"
130
130
  msgid "See: '%{path} --help'"
131
131
  msgstr "請參閱:'%{path} --help'"
132
132
 
133
- msgid "Invalid username or password"
134
- msgstr "無效的使用者名稱或密碼"
135
-
136
133
  msgid "Could not load the API description from the server"
137
134
  msgstr "無法從伺服器載入 API 描述"
138
135
 
@@ -215,8 +212,27 @@ msgstr "逗號區隔開的一列 key=value。"
215
212
  msgid "value must be defined as a comma-separated list of key=value or valid JSON"
216
213
  msgstr ""
217
214
 
218
- msgid "Comma separated list of values."
219
- msgstr "逗號區隔開的值。"
215
+ msgid "Missing or stray quote."
216
+ msgstr ""
217
+
218
+ msgid ""
219
+ "Unquoted fields do not allow
220
220
  or \n"
221
+ "."
222
+ msgstr ""
223
+
224
+ msgid "Illegal quoting."
225
+ msgstr ""
226
+
227
+ msgid "Unclosed quoted field."
228
+ msgstr ""
229
+
230
+ msgid "Field size exceeded."
231
+ msgstr ""
232
+
233
+ msgid ""
234
+ "Comma separated list of values. Values containing comma should be double quote"
235
+ "d"
236
+ msgstr ""
221
237
 
222
238
  msgid "numeric value is required"
223
239
  msgstr ""