foreman_salt 15.2.3 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,556 @@
1
+ locales['foreman_salt'] = locales['foreman_salt'] || {}; locales['foreman_salt']['zh_CN'] = {
2
+ "domain": "foreman_salt",
3
+ "locale_data": {
4
+ "foreman_salt": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_salt 1.0.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2019-04-29 07:31+0000",
9
+ "Last-Translator": "Bryan Kearney <bryan.kearney@gmail.com>, 2022",
10
+ "Language-Team": "Chinese (China) (https://app.transifex.com/foreman/teams/114/zh_CN/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "zh_CN",
15
+ "Plural-Forms": "nplurals=1; plural=0;",
16
+ "lang": "zh_CN",
17
+ "domain": "foreman_salt",
18
+ "plural_forms": "nplurals=1; plural=0;"
19
+ },
20
+ "*Clear environment*": [
21
+ "*环境清除*"
22
+ ],
23
+ "Accept": [
24
+ "接受"
25
+ ],
26
+ "Accepted": [
27
+ "接受"
28
+ ],
29
+ "Action with sub plans": [
30
+ "有子计划的操作"
31
+ ],
32
+ "Actions": [
33
+ "操作"
34
+ ],
35
+ "Added": [
36
+ "添加"
37
+ ],
38
+ "Array of Salt state IDs": [
39
+ "Salt 状态 ID 数组"
40
+ ],
41
+ "Array of State ids": [
42
+ "State id 数组"
43
+ ],
44
+ "Autosign": [
45
+ "自动签名"
46
+ ],
47
+ "Autosign entries for %s": [
48
+ "%s 的自动签名项"
49
+ ],
50
+ "Autosign record": [
51
+ "自动签名记录"
52
+ ],
53
+ "Avoid duplicate values when merging them (only array type)?": [
54
+ "合并时是否避免重复值(只适用于阵列类型)?"
55
+ ],
56
+ "Before including these variables as Salt pillar, Foreman will validate that your variables comply with the validation.": [
57
+ "在将这些变量包括作为 Salt pillar 之前,Foreman 将验证您的变量是否符合验证要求。"
58
+ ],
59
+ "Cancel": [
60
+ "取消"
61
+ ],
62
+ "Change Salt Environment": [
63
+ "更改 Salt 环境"
64
+ ],
65
+ "Change Salt Master": [
66
+ "更改 Salt Master"
67
+ ],
68
+ "Check/Uncheck Added": [
69
+ "选择/取消选择添加"
70
+ ],
71
+ "Check/Uncheck All": [
72
+ "选择/取消删除所有"
73
+ ],
74
+ "Check/Uncheck Removed": [
75
+ "选择/取消选择删除"
76
+ ],
77
+ "Config Management": [
78
+ "配置管理"
79
+ ],
80
+ "Continue to look for matches after first find (only array/hash type)? Note: merging overrides ignores all matchers that are omitted.": [
81
+ "要在找到第一个匹配项后继续查找吗(仅阵列/散列类型)?注意:合并覆盖会忽略所有省略的映射器。"
82
+ ],
83
+ "Could not find salt environment with id %s": [
84
+ "找不到 id 为 %s 的 salt 环境"
85
+ ],
86
+ "Create Salt Variable": [
87
+ "创建 Salt 变量"
88
+ ],
89
+ "Create Salt variable": [
90
+ "创建 Salt 变量"
91
+ ],
92
+ "Create a Salt environment": [
93
+ "创建 Salt 环境"
94
+ ],
95
+ "Create a state": [
96
+ "创建一个状态"
97
+ ],
98
+ "Create an autosign record": [
99
+ "创建自动签名记录"
100
+ ],
101
+ "Default Behavior": [
102
+ "默认行为"
103
+ ],
104
+ "Default value of variable": [
105
+ "变量的默认值"
106
+ ],
107
+ "Delete %s?": [
108
+ "刪除 %s?"
109
+ ],
110
+ "Delete a Salt Key": [
111
+ "删除 Salt 密钥"
112
+ ],
113
+ "Delete an autosign record": [
114
+ "删除自动签名记录"
115
+ ],
116
+ "Deletes Salt variable": [
117
+ "删除 Salt 变量"
118
+ ],
119
+ "Description of variable": [
120
+ "变量描述"
121
+ ],
122
+ "Destroy a Salt environment": [
123
+ "销毁 salt 环境"
124
+ ],
125
+ "Destroy a state": [
126
+ "销毁一个状态"
127
+ ],
128
+ "Dryrun only": [
129
+ "仅进行 Dryrun"
130
+ ],
131
+ "Edit": [
132
+ "编辑"
133
+ ],
134
+ "Edit %s": [
135
+ "编辑 %s"
136
+ ],
137
+ "Edit Salt Environment %s": [
138
+ "编辑 Salt 环境 %s"
139
+ ],
140
+ "Edit Salt State %s": [
141
+ "编辑 Salt 状态 %s"
142
+ ],
143
+ "Edit Salt Variable": [
144
+ "编辑 Salt 变量"
145
+ ],
146
+ "Environment": [
147
+ "环境"
148
+ ],
149
+ "Environments": [
150
+ "环境"
151
+ ],
152
+ "FQDN of host that key belongs to": [
153
+ "密钥所属主机的 FQDN"
154
+ ],
155
+ "Filter %s": [
156
+ "过滤器 %s"
157
+ ],
158
+ "Fingerprint": [
159
+ "指纹"
160
+ ],
161
+ "Function": [
162
+ "功能"
163
+ ],
164
+ "Hidden Value": [
165
+ "隐藏值"
166
+ ],
167
+ "Hide all values for this parameter.": [
168
+ "隐藏这个参数的所有值。"
169
+ ],
170
+ "Host groups": [
171
+ "主机组"
172
+ ],
173
+ "Host must have an environment in order to set salt states": [
174
+ "主机必须具有环境才能设置 Salt 状态"
175
+ ],
176
+ "Hosts": [
177
+ "主机"
178
+ ],
179
+ "ID of Salt Proxy": [
180
+ "Salt Proxy ID"
181
+ ],
182
+ "ID of host group": [
183
+ "主机组 ID"
184
+ ],
185
+ "If checked, will raise an error if there is no default value and no matcher provide a value.": [
186
+ "检查后,如果没有默认值,且没有映射程序提供数值,则会创建出错信息。"
187
+ ],
188
+ "Import": [
189
+ "导入"
190
+ ],
191
+ "Import Puppet classes": [
192
+ "导入 Puppet 类"
193
+ ],
194
+ "Import facts": [
195
+ "导入事实"
196
+ ],
197
+ "Import from %s": [
198
+ "从 %s 导入"
199
+ ],
200
+ "Import states from a salt master": [
201
+ "从 salt master 中导入状态"
202
+ ],
203
+ "Include default value when merging all matching values": [
204
+ "合并所有匹配值时包括默认值"
205
+ ],
206
+ "Include default value when merging all matching values.": [
207
+ "合并所有匹配值时包括默认值。"
208
+ ],
209
+ "Invalid report": [
210
+ "无效报告"
211
+ ],
212
+ "JID": [
213
+ "JID"
214
+ ],
215
+ "Key Name": [
216
+ "密钥名称"
217
+ ],
218
+ "Keys": [
219
+ "密钥"
220
+ ],
221
+ "Limit to a specific environment": [
222
+ "限制到一个特定的环境"
223
+ ],
224
+ "Limit to a specific environments": [
225
+ "限制为一个特定的环境"
226
+ ],
227
+ "Limit to specific actions: i.e. add, remove": [
228
+ "限制为特定操作:如添加、删除"
229
+ ],
230
+ "List Salt variables": [
231
+ "列出 Salt 变量"
232
+ ],
233
+ "List all Salt Minions": [
234
+ "列出所有 Salt Minions"
235
+ ],
236
+ "List all Salt environments": [
237
+ "列出所有 Salt 环境"
238
+ ],
239
+ "List all Salt keys": [
240
+ "列出所有 Salt 键"
241
+ ],
242
+ "List all Salt states": [
243
+ "列出所有 Salt 状态"
244
+ ],
245
+ "List all autosign records": [
246
+ "列出所有 autosign 項目"
247
+ ],
248
+ "Mark the variable to be managed by Foreman. When the Salt State of this variable is assigned to a host, the default value will be added as a Salt pillar for this host. Specify matchers to set a different value for such variable.": [
249
+ "标记由 Foreman 管理的变量。当此变量的 Salt 状态分配给一个主机后,默认值将作为一个 Salt pillar 为这个主机添加。指定匹配器以为该变量设置不同的值。"
250
+ ],
251
+ "Merge all matching values (only array/hash type)": [
252
+ "合并所有匹配的值(仅用于阵列/哈希类型)"
253
+ ],
254
+ "Must specify a Smart Proxy to use": [
255
+ "必须指定要使用的智能代理"
256
+ ],
257
+ "Name": [
258
+ "名称"
259
+ ],
260
+ "Name of the Salt state": [
261
+ "Salt 状态的名称"
262
+ ],
263
+ "Name of variable": [
264
+ "变量名称"
265
+ ],
266
+ "Namespace Foreman pillars under 'foreman' key": [
267
+ "'foreman' 密钥下的 Namespace Foreman pillars"
268
+ ],
269
+ "New": [
270
+ "新"
271
+ ],
272
+ "New Autosign Entry": [
273
+ "新建自动签名"
274
+ ],
275
+ "New Salt Environment": [
276
+ "新 Salt 环境"
277
+ ],
278
+ "New Salt State": [
279
+ "新 Salt 状态"
280
+ ],
281
+ "New Salt Variable": [
282
+ "新 Salt 变量"
283
+ ],
284
+ "No changes found": [
285
+ "没有找到修改"
286
+ ],
287
+ "No salt environment selected!": [
288
+ "没有选择 salt 环境!"
289
+ ],
290
+ "Operation": [
291
+ "操作"
292
+ ],
293
+ "Optional Input Validator": [
294
+ "可选的输入验证程序"
295
+ ],
296
+ "Order": [
297
+ "顺序"
298
+ ],
299
+ "Override the default value of the Salt variable.": [
300
+ "覆盖 Salt 变量的默认值。"
301
+ ],
302
+ "Overriden": [
303
+ "覆盖"
304
+ ],
305
+ "Please select a Salt environment first": [
306
+ "请先选择一个 Salt 环境"
307
+ ],
308
+ "Prioritize Attribute Order": [
309
+ "排列属性优先顺序"
310
+ ],
311
+ "Record deleted.": [
312
+ "删除记录。"
313
+ ],
314
+ "Reject": [
315
+ "拒绝"
316
+ ],
317
+ "Rejected": [
318
+ "拒绝"
319
+ ],
320
+ "Remote action:": [
321
+ "远程操作:"
322
+ ],
323
+ "Remove duplicate values (only array type)": [
324
+ "删除重复值(仅用于阵列类型)"
325
+ ],
326
+ "Removed": [
327
+ "删除"
328
+ ],
329
+ "Result": [
330
+ "结果"
331
+ ],
332
+ "Run Salt": [
333
+ "运行 Salt"
334
+ ],
335
+ "Run Salt state.highstate": [
336
+ "运行 Salt state.highstate"
337
+ ],
338
+ "Salt Autosign": [
339
+ "Salt 自动签名"
340
+ ],
341
+ "Salt ENC": [
342
+ "Salt ENC"
343
+ ],
344
+ "Salt Environment": [
345
+ "Salt 环境"
346
+ ],
347
+ "Salt Environments": [
348
+ "Salt 环境"
349
+ ],
350
+ "Salt Keys": [
351
+ "Salt 密钥"
352
+ ],
353
+ "Salt Keys on %s": [
354
+ "%s 的 Salt 密钥"
355
+ ],
356
+ "Salt Master": [
357
+ "Salt Master"
358
+ ],
359
+ "Salt Smart Proxy ID": [
360
+ "Salt Smart Proxy ID"
361
+ ],
362
+ "Salt State": [
363
+ "Salt 状态"
364
+ ],
365
+ "Salt States": [
366
+ "Salt 状态"
367
+ ],
368
+ "Salt Variable Details": [
369
+ "Salt 变量详请"
370
+ ],
371
+ "Salt Variables": [
372
+ "Salt 变量"
373
+ ],
374
+ "Salt environment": [
375
+ "Salt 环境"
376
+ ],
377
+ "Salt environment ID": [
378
+ "Salt 环境 ID"
379
+ ],
380
+ "Salt external nodes YAML dump": [
381
+ "Salt 外部节点 YAML 转储"
382
+ ],
383
+ "Salt master/smart proxy ID": [
384
+ "salt master/smart 代理 ID"
385
+ ],
386
+ "Salt namespace pillars": [
387
+ "Salt 命名空间 pillars"
388
+ ],
389
+ "Salt state": [
390
+ "Salt 状态"
391
+ ],
392
+ "Salt states must be in the environment of the host": [
393
+ "Salt 状态必须位于主机的环境中"
394
+ ],
395
+ "SaltEnvironment|Name": [
396
+ "SaltEnvironment|Name"
397
+ ],
398
+ "SaltModule|Name": [
399
+ "SaltModule|Name"
400
+ ],
401
+ "Save": [
402
+ "保存"
403
+ ],
404
+ "Select salt environment": [
405
+ "选择 Salt 环境"
406
+ ],
407
+ "Select the changes you want to realize in Foreman": [
408
+ "選擇您希望在 Foreman 中套用的變更"
409
+ ],
410
+ "Set the order in which values are resolved.": [
411
+ "设定用来解析值的顺序。"
412
+ ],
413
+ "Set the salt_status as \\\\'successful authentication\\\\' and remove the corresponding autosign key from the Smart Proxy": [
414
+ "将 salt_status 设置为 \\\\'successful authentication\\\\',并从智能代理中删除对应的自动签名密钥"
415
+ ],
416
+ "Show a Salt environment": [
417
+ "显示 salt 环境"
418
+ ],
419
+ "Show a minion": [
420
+ "显示 minion"
421
+ ],
422
+ "Show a state": [
423
+ "显示状态"
424
+ ],
425
+ "Show the Salt parameters of a host group": [
426
+ "显示主机组的 Salt 参数"
427
+ ],
428
+ "Show variable": [
429
+ "显示变量"
430
+ ],
431
+ "Specify Matchers": [
432
+ "指定匹配器"
433
+ ],
434
+ "State": [
435
+ "状态"
436
+ ],
437
+ "State ID": [
438
+ "状态 ID"
439
+ ],
440
+ "State can be \\\"accepted\\\" or \\\"rejected\\\"": [
441
+ "可以\\\"被接受\\\"或\\\"被拒绝\\\"的状态"
442
+ ],
443
+ "States": [
444
+ "状态"
445
+ ],
446
+ "Successfully imported": [
447
+ "成功导入"
448
+ ],
449
+ "The order in which matchers keys are processed, first match wins.<br> You may use multiple attributes as a matcher key, for example, an order of <code>host group, environment</code> would expect a matcher such as <code>hostgroup = \\\"web servers\\\", environment = production</code>": [
450
+ "处理匹配器键的顺序,第一个会生效。<br>您可以使用多个属性作为匹配器健,例如:<code>host group, environment</code> 会期望一个匹配器,如 <code>hostgroup = \\\"web servers\\\", environment = production</code>"
451
+ ],
452
+ "The order in which values are resolved": [
453
+ "值解析的順序"
454
+ ],
455
+ "Toggle": [
456
+ "切換"
457
+ ],
458
+ "Type": [
459
+ "类型"
460
+ ],
461
+ "Types of validation values": [
462
+ "验证值类型"
463
+ ],
464
+ "Types of variable values": [
465
+ "变量值类型"
466
+ ],
467
+ "Unable to accept Salt key for %s": [
468
+ "无法接受 %s 的 Salt 密钥"
469
+ ],
470
+ "Unable to create Salt autosign key %s": [
471
+ "无法创建 Salt 自动签名密钥 %s"
472
+ ],
473
+ "Unable to delete Salt autosign hostname for %s": [
474
+ "无法为 %s 删除 Salt 自动签名主机名"
475
+ ],
476
+ "Unable to delete Salt autosign key %s": [
477
+ "无法删除 Salt 自动签名密钥 %s"
478
+ ],
479
+ "Unable to delete Salt key for %s": [
480
+ "无法删除 %s 的 Salt 密钥"
481
+ ],
482
+ "Unable to fetch Salt environments list": [
483
+ "无法获取 Salt 环境列表"
484
+ ],
485
+ "Unable to fetch Salt key list": [
486
+ "无法获取 Salt 键列表"
487
+ ],
488
+ "Unable to fetch Salt states list": [
489
+ "无法获取 Salt 状态列表"
490
+ ],
491
+ "Unable to fetch autosign list": [
492
+ "无法获取自动签名列表"
493
+ ],
494
+ "Unable to generate output, Check log files": [
495
+ "无法生成输出结果,检查日志文件"
496
+ ],
497
+ "Unable to reject Salt key for %s": [
498
+ "无法拒绝 %s 的 Salt 密钥"
499
+ ],
500
+ "Unable to run Salt state.highstate for %s": [
501
+ "无法为 %s 运行 Salt state.highstate"
502
+ ],
503
+ "Unable to set Salt autosign hostname for %s": [
504
+ "无法为 %s 设置 Salt 自动签名主机名"
505
+ ],
506
+ "Unaccepted": [
507
+ "未接受"
508
+ ],
509
+ "Update": [
510
+ "更新"
511
+ ],
512
+ "Update a Salt Key": [
513
+ "更新 Salt 密钥"
514
+ ],
515
+ "Update a minion": [
516
+ "更新 minion"
517
+ ],
518
+ "Update the Salt parameters of a host group": [
519
+ "更新主机组的 Salt 参数"
520
+ ],
521
+ "Updated hosts: changed salt environment": [
522
+ "更新主机:更改的 salt 环境"
523
+ ],
524
+ "Updates Salt variable": [
525
+ "更新 Salt 变量"
526
+ ],
527
+ "Upload a Job": [
528
+ "上传作业"
529
+ ],
530
+ "Used to enforce certain values for the parameter values": [
531
+ "用来在参数中强制使用某些值"
532
+ ],
533
+ "Value to use when there is no match.": [
534
+ "未发现匹配时使用的值。"
535
+ ],
536
+ "Variables": [
537
+ "变量"
538
+ ],
539
+ "Variable|Name": [
540
+ "Variable|Name"
541
+ ],
542
+ "Variable|State": [
543
+ "变量|状态"
544
+ ],
545
+ "When enabled the parameter is hidden in the UI": [
546
+ "何时将启用的参数隐藏到 UI 中"
547
+ ],
548
+ "is alphanumeric and cannot contain spaces": [
549
+ "字母数字,不能包含空格"
550
+ ],
551
+ "must be alphanumeric, can contain periods, dashes, underscores and must not contain spaces": [
552
+ "必须是字母数字,可以包含句点、破折号和下划线,且不得包含空格"
553
+ ]
554
+ }
555
+ }
556
+ };
@@ -18,14 +18,6 @@ module ForemanSalt
18
18
  ForemanTasks.dynflow.require!
19
19
  end
20
20
 
21
- initializer 'foreman_salt.register_gettext',
22
- after: :load_config_initializers do
23
- locale_dir = File.join(File.expand_path('../..', __dir__), 'locale')
24
- locale_domain = 'foreman_salt'
25
-
26
- Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
27
- end
28
-
29
21
  initializer 'foreman_salt.load_app_instance_data' do |app|
30
22
  ForemanSalt::Engine.paths['db/migrate'].existent.each do |path|
31
23
  app.config.paths['db/migrate'] << path
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Foreman::Plugin.register :foreman_salt do
4
- requires_foreman '>= 1.24'
4
+ requires_foreman '>= 3.7'
5
+ register_gettext
5
6
 
6
7
  settings do
7
8
  category(:cfgmgmt, N_('Config Management')) do
@@ -1,3 +1,3 @@
1
1
  module ForemanSalt
2
- VERSION = '15.2.3'.freeze
2
+ VERSION = '16.0.0'.freeze
3
3
  end
data/locale/Makefile CHANGED
@@ -14,6 +14,7 @@ POFILES = $(shell find . -name '$(DOMAIN).po')
14
14
  MOFILES = $(patsubst %.po,%.mo,$(POFILES))
15
15
  POXFILES = $(patsubst %.po,%.pox,$(POFILES))
16
16
  EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES))
17
+ JSFILES = $(shell find ../app/assets/javascripts/*/locale -name '$(DOMAIN).js')
17
18
 
18
19
  %.mo: %.po
19
20
  mkdir -p $(shell dirname $@)/LC_MESSAGES
@@ -41,23 +42,21 @@ uniq-po:
41
42
  msguniq $$f -o $$f ; \
42
43
  done
43
44
 
44
- tx-new:
45
- tx pull --minimum-perc 50 --all
46
-
47
- tx-pull: tx-new $(EDITFILES)
48
- tx pull -f
45
+ tx-pull: $(EDITFILES)
46
+ cd .. && tx pull -f --all
49
47
  for f in $(EDITFILES) ; do \
50
48
  sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
51
49
  done
52
50
 
53
51
  tx-update: tx-pull
54
52
  @echo
55
- @echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation, then make -C locale mo-files to finish
53
+ @echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation
54
+ @echo then run rake plugin:po_to_json[$(DOMAIN)] from the Foreman installation
55
+ @echo then run make -C locale mo-files to finish
56
56
  @echo
57
57
 
58
58
  mo-files: $(MOFILES)
59
- git add $(POFILES) $(POTFILE) ../locale/*/LC_MESSAGES
60
- [[ ! -f locale/action_names.rb ]] || git add locale/action_names.rb
59
+ git add $(POFILES) $(POTFILE) $(JSFILES) ../locale/*/LC_MESSAGES
61
60
  git commit -m "i18n - pulling from tx"
62
61
  @echo
63
62
  @echo Changes commited!
Binary file
Binary file