foreman_rh_cloud 9.0.52 → 9.0.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,499 @@
1
+ locales['foreman_rh_cloud'] = locales['foreman_rh_cloud'] || {}; locales['foreman_rh_cloud']['zh_CN'] = {
2
+ "domain": "foreman_rh_cloud",
3
+ "locale_data": {
4
+ "foreman_rh_cloud": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_rh_cloud 1.0.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2023-01-20 13:26+0000",
9
+ "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023",
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_rh_cloud",
18
+ "plural_forms": "nplurals=1; plural=0;"
19
+ },
20
+ "Download latest report": [
21
+ "下载最新報告"
22
+ ],
23
+ "Set the current organization context for the request": [
24
+ "设置请求的当前机构上下文"
25
+ ],
26
+ "Start report generation": [
27
+ "开始报告生成"
28
+ ],
29
+ "Generate the report, but do not upload": [
30
+ ""
31
+ ],
32
+ "Grab hosts that are missing in RH Cloud": [
33
+ ""
34
+ ],
35
+ "Scoped search string for host removal": [
36
+ ""
37
+ ],
38
+ "Start inventory synchronization": [
39
+ "启动清单同步"
40
+ ],
41
+ "Enable cloud connector": [
42
+ "启用云连接器"
43
+ ],
44
+ "The report file %{filename} doesn't exist": [
45
+ "报告文件 %{filename} 不存在"
46
+ ],
47
+ "Nothing to sync, there are no hosts with subscription for this organization.": [
48
+ "没有同步,此机构没有带有订阅的主机。"
49
+ ],
50
+ "No task was found": [
51
+ "没有找到任务"
52
+ ],
53
+ "Recommendations": [
54
+ "建议"
55
+ ],
56
+ "Host Insights recommendations": [
57
+ "主机 Insights 建议"
58
+ ],
59
+ "Insights": [
60
+ "Insights"
61
+ ],
62
+ "Reporting": [
63
+ "报告"
64
+ ],
65
+ "Not reporting": [
66
+ "未报告"
67
+ ],
68
+ "Inventory": [
69
+ "清单"
70
+ ],
71
+ "Host was not uploaded to your RH cloud inventory": [
72
+ "主机没有上传到您的 RH 云清单"
73
+ ],
74
+ "Successfully uploaded to your RH cloud inventory": [
75
+ "成功上传到您的 RH 云清单"
76
+ ],
77
+ "Red Hat Insights": [
78
+ "Red Hat Insights"
79
+ ],
80
+ "Satellite server has %{hits_count} recommendations by Red Hat": [
81
+ "Satellite 服务器有 %{hits_count} 个红帽提供的建议"
82
+ ],
83
+ "Wait and %s": [
84
+ "等待和 %s"
85
+ ],
86
+ "Value %{value} is not a valid UUID": [
87
+ "值 %{value} 不是一个有效的 UUID"
88
+ ],
89
+ "Enable inventory upload": [
90
+ "启用清单上传"
91
+ ],
92
+ "RH Cloud": [
93
+ "RH Cloud"
94
+ ],
95
+ "Inventory Upload": [
96
+ "清单上传"
97
+ ],
98
+ "Apply Insights recommendations": [
99
+ "应用 Insights 建议"
100
+ ],
101
+ "Run remediation playbook generated by Insights": [
102
+ "运行 Insights 生成的补救 playbook"
103
+ ],
104
+ "Run RH Cloud playbook": [
105
+ "运行 RH Cloud playbook"
106
+ ],
107
+ "Run playbook genrated by Red Hat remediations app": [
108
+ "运行由红帽补救应用生成的 playbook"
109
+ ],
110
+ "Configure Cloud Connector on given hosts": [
111
+ "在给定主机上配置 Cloud Connector"
112
+ ],
113
+ "RHCloud": [
114
+ "RHCloud"
115
+ ],
116
+ "Enable automatic upload of your host inventory to the Red Hat cloud": [
117
+ "启用自动将主机清单上传到红帽云"
118
+ ],
119
+ "Automatic inventory upload": [
120
+ "自动清单上传"
121
+ ],
122
+ "Enable automatic synchronization of Insights recommendations from the Red Hat cloud": [
123
+ "启用来自红帽云的 Insights 建议自动同步"
124
+ ],
125
+ "Synchronize recommendations Automatically": [
126
+ "自动同步建议"
127
+ ],
128
+ "Enable automatic deletion of mismatched host records from the Red Hat cloud": [
129
+ ""
130
+ ],
131
+ "Automatic mismatch deletion": [
132
+ ""
133
+ ],
134
+ "Obfuscate host names sent to the Red Hat cloud": [
135
+ "发送到红帽云的模糊主机名"
136
+ ],
137
+ "Obfuscate host names": [
138
+ "模糊主机名"
139
+ ],
140
+ "Obfuscate ipv4 addresses sent to the Red Hat cloud": [
141
+ "发送到红帽云的模糊 ipv4 地址"
142
+ ],
143
+ "Obfuscate host ipv4 addresses": [
144
+ "模糊的主机 ipv4 地址"
145
+ ],
146
+ "Exclude installed packages from being uploaded to the Red Hat cloud": [
147
+ "将安装的软件包上传到红帽云"
148
+ ],
149
+ "Exclude installed Packages": [
150
+ "排除安装的软件包"
151
+ ],
152
+ "Should import include parameter tags from Foreman?": [
153
+ "应从 Foreman 导入包含参数标签?"
154
+ ],
155
+ "Include parameters in insights-client reports": [
156
+ "在 insights-client 报告中包含参数"
157
+ ],
158
+ "RHC daemon id": [
159
+ "RHC 守护进程 ID"
160
+ ],
161
+ "ID of the RHC(Yggdrasil) daemon": [
162
+ "RHC (Yggdrasil)守护进程的 ID"
163
+ ],
164
+ "Fix host": [
165
+ "修复主机"
166
+ ],
167
+ "Oops! Couldn't find organization that matches your query": [
168
+ "未找到与您的查询匹配的机构"
169
+ ],
170
+ "Fetching data about your accounts": [
171
+ "获取有关您的帐户的数据"
172
+ ],
173
+ "Loading...": [
174
+ "载入中..."
175
+ ],
176
+ "Encountered an error while trying to access the server:": [
177
+ "在尝试访问服务器时遇到错误:"
178
+ ],
179
+ "Generating": [
180
+ "生成中"
181
+ ],
182
+ "Uploading": [
183
+ "上载中"
184
+ ],
185
+ "Download Report": [
186
+ "下载报告"
187
+ ],
188
+ "Full Screen": [
189
+ "全屏"
190
+ ],
191
+ "Clear": [
192
+ "清除"
193
+ ],
194
+ "Filter..": [
195
+ "过滤器..."
196
+ ],
197
+ "Any Organization": [
198
+ "任意机构"
199
+ ],
200
+ "Enable automatic upload of your hosts inventory to the Red Hat cloud": [
201
+ "启用自动将主机清单上传到红帽云"
202
+ ],
203
+ "Settings": [
204
+ "设置"
205
+ ],
206
+ "Cloud connector setup is in progress now: ": [
207
+ "云连接器设置现在正在进行: "
208
+ ],
209
+ "Cloud connector job link": [
210
+ "云连接器作业链接"
211
+ ],
212
+ "Cloud connector setup has failed: ": [
213
+ "云连接器设置失败: "
214
+ ],
215
+ "Cloud connector setup has started: ": [
216
+ "云连接器设置已启动: "
217
+ ],
218
+ "view the job in progress": [
219
+ "查看正在进行中的任务"
220
+ ],
221
+ "Cloud Connector is in progress": [
222
+ "云连接器正在进行"
223
+ ],
224
+ "Reconfigure Cloud Connector": [
225
+ "重新配置云连接器"
226
+ ],
227
+ "Configure Cloud Connector": [
228
+ "配置云连接器"
229
+ ],
230
+ "Notice": [
231
+ "注意事項"
232
+ ],
233
+ "This action will also enable automatic reports upload": [
234
+ "此操作还会启用自动报告上传"
235
+ ],
236
+ "Organization status": [
237
+ "机构标签"
238
+ ],
239
+ "Displays manifest statuses per accessible organizations.": [
240
+ "显示每个可访问的机构的清单状态。"
241
+ ],
242
+ "%s organizations": [
243
+ "%s 机构"
244
+ ],
245
+ "The Red Hat Hybrid Cloud Console provides a set of cloud services, including Red Hat Insights and Subscriptions, that provide predictive analysis, remediation of issues, and unified subscription reporting for this Satellite instance.": [
246
+ ""
247
+ ],
248
+ "The Satellite inventory upload plugin automatically uploads Satellite host inventory data to the Inventory service of Insights, where it can also be used by the Subscriptions service for subscription reporting. If you use the Subscriptions service, enabling inventory uploads is required.": [
249
+ ""
250
+ ],
251
+ "To enable this reporting for all Satellite organizations, set {uploadButtonName} to on. The data will be reported automatically once per day.": [
252
+ ""
253
+ ],
254
+ "To manually upload the data for a specific organization, select an organization and click {restartButtonName}.": [
255
+ ""
256
+ ],
257
+ "Restart": [
258
+ "重新开始"
259
+ ],
260
+ "For more information about the Subscriptions service, see:": [
261
+ ""
262
+ ],
263
+ "About subscription watch": [
264
+ "订阅查看"
265
+ ],
266
+ "For more information about Insights and Cloud Connector, see:": [
267
+ ""
268
+ ],
269
+ "Red Hat Insights Data and Application Security": [
270
+ "Red Hat Insights 数据和应用程序安全"
271
+ ],
272
+ "Cloud Connector has been configured however the inventory auto-upload is disabled, it's recommended to enable it": [
273
+ "已配置了云连接器,但禁用了清单自动上传,建议启用它"
274
+ ],
275
+ "Cloud Connector has been configured however obfuscating host names setting is enabled, it's recommended to disable it": [
276
+ "已配置了云连接器,但启用了模糊主机名设置,建议禁用它"
277
+ ],
278
+ "Inventory sync has started:": [
279
+ "清单同步已启动:"
280
+ ],
281
+ "Inventory sync has failed: ": [
282
+ "清单同步失败: "
283
+ ],
284
+ "Hosts with subscription in organization: ": [
285
+ "机构中具有订阅的主机: "
286
+ ],
287
+ "Successfully synced hosts: ": [
288
+ "成功同步的主机:"
289
+ ],
290
+ "Disconnected hosts: ": [
291
+ "断开连接的主机:"
292
+ ],
293
+ "For more info, please visit the": [
294
+ "如需更多信息,请访问"
295
+ ],
296
+ "hosts page": [
297
+ "主机页"
298
+ ],
299
+ "Next run: ": [
300
+ "下一次运行 :"
301
+ ],
302
+ "Completed": [
303
+ "完成"
304
+ ],
305
+ "Remain": [
306
+ "保留"
307
+ ],
308
+ "Exit Code: %s": [
309
+ "退出代码:%s"
310
+ ],
311
+ "Red Hat Inventory": [
312
+ "Red Hat 清单"
313
+ ],
314
+ "Documentation": [
315
+ "文档"
316
+ ],
317
+ "Actions history": [
318
+ "操作历史记录"
319
+ ],
320
+ " Sync inventory status": [
321
+ " 同步清单状态"
322
+ ],
323
+ "Connectivity test": [
324
+ "连接测试"
325
+ ],
326
+ "Red Hat Cloud Inventory": [
327
+ "红帽云清单"
328
+ ],
329
+ "Inventory Auto Upload": [
330
+ "清单自动上传"
331
+ ],
332
+ "Advanced Inventory Settings": [
333
+ "高级清单设置"
334
+ ],
335
+ "Show Advanced Settings": [
336
+ "显示高级设置"
337
+ ],
338
+ "More details can be found in": [
339
+ "如需更多详细信息,请参阅"
340
+ ],
341
+ "Configure": [
342
+ "配置"
343
+ ],
344
+ "Obfuscate IPs": [
345
+ "模糊 IP"
346
+ ],
347
+ "Exclude packages": [
348
+ "排除软件包"
349
+ ],
350
+ "Exclude packages from being uploaded to the Red Hat cloud": [
351
+ "排除软件包上传到红帽云"
352
+ ],
353
+ "Insights synchronization process is used to provide Insights recommendations output for hosts managed here.": [
354
+ "Insights 同步过程用于为此处管理的主机提供 Insights 建议输出。"
355
+ ],
356
+ "Sync automatically": [
357
+ "自动同步"
358
+ ],
359
+ "Playbook": [
360
+ "运行 playbook"
361
+ ],
362
+ "Manual": [
363
+ "手册"
364
+ ],
365
+ "View in Red Hat Insights": [
366
+ "禁用 Red Hat Insights"
367
+ ],
368
+ "Knowledgebase article": [
369
+ "知识库文章"
370
+ ],
371
+ "Hostname": [
372
+ "主机名"
373
+ ],
374
+ "Recommendation": [
375
+ "建议"
376
+ ],
377
+ "Total risk": [
378
+ "总风险"
379
+ ],
380
+ "Remediate": [
381
+ "补救"
382
+ ],
383
+ "items": [
384
+ "项"
385
+ ],
386
+ "page": [
387
+ "page"
388
+ ],
389
+ "Items per page": [
390
+ "每页的项"
391
+ ],
392
+ "per page": [
393
+ "每页"
394
+ ],
395
+ "Go to first page": [
396
+ "前往第一页"
397
+ ],
398
+ "Go to previous page": [
399
+ "前往上一页"
400
+ ],
401
+ "Go to last page": [
402
+ "前往最后一页"
403
+ ],
404
+ "Go to next page": [
405
+ "前往下一页"
406
+ ],
407
+ "Current page": [
408
+ "当前页"
409
+ ],
410
+ "Pagination": [
411
+ "分页"
412
+ ],
413
+ "Recommendations selected: %s.": [
414
+ "选择的建议:%s。"
415
+ ],
416
+ "Select recommendations from all pages": [
417
+ "在所有页面中选择建议"
418
+ ],
419
+ "All recommendations are now selected.": [
420
+ "现在选择了所有建议。"
421
+ ],
422
+ "Clear Selection": [
423
+ "清除选择"
424
+ ],
425
+ "Remediation summary": [
426
+ "补救概述"
427
+ ],
428
+ "Cancel": [
429
+ "取消"
430
+ ],
431
+ "No": [
432
+ "否"
433
+ ],
434
+ "Resolution": [
435
+ "解决方案"
436
+ ],
437
+ "Reboot Required": [
438
+ "需要重启"
439
+ ],
440
+ "Sync recommendations": [
441
+ "同步建议"
442
+ ],
443
+ "Recommendation sync has failed: ": [
444
+ "建议同步失败: "
445
+ ],
446
+ "Recommendation sync has started: ": [
447
+ "建议同步已启动: "
448
+ ],
449
+ "Recommendations synced successfully": [
450
+ "成功同步建议"
451
+ ],
452
+ "No recommendations were found for this host!": [
453
+ "没有找到此主机的建议!"
454
+ ],
455
+ "Low": [
456
+ "低"
457
+ ],
458
+ "Moderate": [
459
+ "中等"
460
+ ],
461
+ "Important": [
462
+ "重要"
463
+ ],
464
+ "Critical": [
465
+ "关键"
466
+ ],
467
+ "Total risks": [
468
+ "总风险"
469
+ ],
470
+ "View all recommendations": [
471
+ "查看所有建议"
472
+ ],
473
+ "No results found": [
474
+ "没有找到结果"
475
+ ],
476
+ "Go to Satellite Insights page": [
477
+ "进入 Satellite Insights 页面"
478
+ ],
479
+ "Read more about it in RH cloud insights": [
480
+ "在 RH Cloud insights 中了解更多有关它的信息"
481
+ ],
482
+ "The task failed with the following error:": [
483
+ "任务失败,错误为:"
484
+ ],
485
+ "view the task page for more details": [
486
+ "查看任务页面以了解更多详细信息"
487
+ ],
488
+ "Loading": [
489
+ "加载"
490
+ ],
491
+ "The server returned the following error: %s": [
492
+ "服务器返回以下错误:%s"
493
+ ],
494
+ "Foreman plugin that process & upload data to Red Hat Cloud": [
495
+ "处理数据并将其上传到红帽云的 Foreman 插件"
496
+ ]
497
+ }
498
+ }
499
+ };
@@ -42,7 +42,8 @@ module ForemanRhCloud
42
42
 
43
43
  initializer 'foreman_rh_cloud.register_plugin', :before => :finisher_hook do |_app|
44
44
  Foreman::Plugin.register :foreman_rh_cloud do
45
- requires_foreman '>= 3.4'
45
+ requires_foreman '>= 3.7'
46
+ register_gettext
46
47
 
47
48
  apipie_documented_controllers ["#{ForemanRhCloud::Engine.root}/app/controllers/api/v2/**/*.rb"]
48
49
 
@@ -150,12 +151,6 @@ module ForemanRhCloud
150
151
  end
151
152
  end
152
153
 
153
- initializer 'foreman_rh_cloud.register_gettext', after: :load_config_initializers do |_app|
154
- locale_dir = File.join(File.expand_path('../..', __dir__), 'locale')
155
- locale_domain = 'foreman_rh_cloud'
156
- Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
157
- end
158
-
159
154
  initializer 'foreman_rh_cloud.register_rex_features', :before => :finisher_hook do |_app|
160
155
  # skip database manipulations while tables do not exist, like in migrations
161
156
  if ActiveRecord::Base.connection.data_source_exists?(ForemanTasks::Task.table_name)
@@ -1,3 +1,3 @@
1
1
  module ForemanRhCloud
2
- VERSION = '9.0.52'.freeze
2
+ VERSION = '9.0.54'.freeze
3
3
  end
@@ -12,7 +12,7 @@ namespace :rh_cloud_inventory do
12
12
 
13
13
  User.as_anonymous_admin do
14
14
  organizations.each do |organization|
15
- ForemanTasks.async_task(ForemanInventoryUpload::Async::GenerateReportJob, ForemanInventoryUpload.generated_reports_folder, organization.id)
15
+ ForemanTasks.async_task(ForemanInventoryUpload::Async::GenerateReportJob, ForemanInventoryUpload.generated_reports_folder, organization.id, false)
16
16
  puts "Generated and uploaded inventory report for organization '#{organization.name}'"
17
17
  end
18
18
  end
data/locale/Makefile CHANGED
@@ -6,14 +6,15 @@
6
6
  # make tx-update - download and merge translations from Transifex
7
7
  # make clean - clean everything
8
8
  #
9
- DOMAIN = foreman_rh_cloud
10
- VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load(Dir.glob("../*.gemspec")[0]);puts spec.version')
9
+ DOMAIN = $(shell ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("../*.gemspec")[0]).name')
10
+ VERSION = $(shell ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("../*.gemspec")[0]).version')
11
11
  POTFILE = $(DOMAIN).pot
12
12
  MOFILE = $(DOMAIN).mo
13
13
  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
@@ -42,18 +43,20 @@ uniq-po:
42
43
  done
43
44
 
44
45
  tx-pull: $(EDITFILES)
45
- tx pull -f
46
+ cd .. && tx pull -f --all
46
47
  for f in $(EDITFILES) ; do \
47
48
  sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
48
49
  done
49
50
 
50
51
  tx-update: tx-pull
51
52
  @echo
52
- @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
53
56
  @echo
54
57
 
55
58
  mo-files: $(MOFILES)
56
- git add $(POFILES) $(POTFILE) ../locale/*/LC_MESSAGES
59
+ git add $(POFILES) $(POTFILE) $(JSFILES) ../locale/*/LC_MESSAGES
57
60
  git commit -m "i18n - pulling from tx"
58
61
  @echo
59
62
  @echo Changes commited!