foreman_openscap 10.0.0 → 10.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_openscap/locale/cs_CZ/foreman_openscap.js +115 -118
- data/app/assets/javascripts/foreman_openscap/locale/de/foreman_openscap.js +12 -15
- data/app/assets/javascripts/foreman_openscap/locale/en/foreman_openscap.js +1 -4
- data/app/assets/javascripts/foreman_openscap/locale/en_GB/foreman_openscap.js +3 -6
- data/app/assets/javascripts/foreman_openscap/locale/es/foreman_openscap.js +12 -15
- data/app/assets/javascripts/foreman_openscap/locale/fr/foreman_openscap.js +83 -86
- data/app/assets/javascripts/foreman_openscap/locale/gl/foreman_openscap.js +4 -7
- data/app/assets/javascripts/foreman_openscap/locale/it/foreman_openscap.js +10 -13
- data/app/assets/javascripts/foreman_openscap/locale/ja/foreman_openscap.js +68 -71
- data/app/assets/javascripts/foreman_openscap/locale/ka/foreman_openscap.js +28 -31
- data/app/assets/javascripts/foreman_openscap/locale/ko/foreman_openscap.js +12 -15
- data/app/assets/javascripts/foreman_openscap/locale/pt_BR/foreman_openscap.js +9 -12
- data/app/assets/javascripts/foreman_openscap/locale/ru/foreman_openscap.js +8 -11
- data/app/assets/javascripts/foreman_openscap/locale/sv_SE/foreman_openscap.js +6 -9
- data/app/assets/javascripts/foreman_openscap/locale/zh_CN/foreman_openscap.js +67 -70
- data/app/assets/javascripts/foreman_openscap/locale/zh_TW/foreman_openscap.js +9 -12
- data/app/services/foreman_openscap/lookup_key_overrider.rb +6 -5
- data/app/views/job_templates/run_openscap_remediation_-_ansible_default.erb +2 -0
- data/config/routes.rb +9 -16
- data/lib/foreman_openscap/version.rb +1 -1
- data/locale/Makefile +12 -2
- data/locale/cs_CZ/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/cs_CZ/foreman_openscap.po +120 -121
- data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/de/foreman_openscap.po +13 -16
- data/locale/en/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/en/foreman_openscap.po +1 -4
- data/locale/en_GB/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/en_GB/foreman_openscap.po +3 -6
- data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/es/foreman_openscap.po +12 -15
- data/locale/foreman_openscap.pot +2 -6
- data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/fr/foreman_openscap.po +83 -86
- data/locale/gl/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/gl/foreman_openscap.po +4 -7
- data/locale/it/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/it/foreman_openscap.po +10 -13
- data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ja/foreman_openscap.po +68 -71
- data/locale/ka/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ka/foreman_openscap.po +28 -31
- data/locale/ko/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ko/foreman_openscap.po +12 -15
- data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/pt_BR/foreman_openscap.po +9 -12
- data/locale/ru/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ru/foreman_openscap.po +8 -11
- data/locale/sv_SE/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/sv_SE/foreman_openscap.po +6 -9
- data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/zh_CN/foreman_openscap.po +67 -70
- data/locale/zh_TW/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/zh_TW/foreman_openscap.po +9 -12
- data/test/functional/openscap_proxies_controller_test.rb +0 -1
- metadata +3 -39
- data/locale/action_names.rb +0 -2
- data/locale/cs_CZ/foreman_openscap.edit.po +0 -1443
- data/locale/cs_CZ/foreman_openscap.po.time_stamp +0 -0
- data/locale/de/foreman_openscap.edit.po +0 -1468
- data/locale/de/foreman_openscap.po.time_stamp +0 -0
- data/locale/en/foreman_openscap.edit.po +0 -1443
- data/locale/en/foreman_openscap.po.time_stamp +0 -0
- data/locale/en_GB/foreman_openscap.edit.po +0 -1443
- data/locale/en_GB/foreman_openscap.po.time_stamp +0 -0
- data/locale/es/foreman_openscap.edit.po +0 -1463
- data/locale/es/foreman_openscap.po.time_stamp +0 -0
- data/locale/fr/foreman_openscap.edit.po +0 -1469
- data/locale/fr/foreman_openscap.po.time_stamp +0 -0
- data/locale/gl/foreman_openscap.edit.po +0 -1443
- data/locale/gl/foreman_openscap.po.time_stamp +0 -0
- data/locale/it/foreman_openscap.edit.po +0 -1445
- data/locale/it/foreman_openscap.po.time_stamp +0 -0
- data/locale/ja/foreman_openscap.edit.po +0 -1460
- data/locale/ja/foreman_openscap.po.time_stamp +0 -0
- data/locale/ka/foreman_openscap.edit.po +0 -1449
- data/locale/ka/foreman_openscap.po.time_stamp +0 -0
- data/locale/ko/foreman_openscap.edit.po +0 -1443
- data/locale/ko/foreman_openscap.po.time_stamp +0 -0
- data/locale/pt_BR/foreman_openscap.edit.po +0 -1468
- data/locale/pt_BR/foreman_openscap.po.time_stamp +0 -0
- data/locale/ru/foreman_openscap.edit.po +0 -1447
- data/locale/ru/foreman_openscap.po.time_stamp +0 -0
- data/locale/sv_SE/foreman_openscap.edit.po +0 -1443
- data/locale/sv_SE/foreman_openscap.po.time_stamp +0 -0
- data/locale/zh_CN/foreman_openscap.edit.po +0 -1459
- data/locale/zh_CN/foreman_openscap.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_openscap.edit.po +0 -1444
- data/locale/zh_TW/foreman_openscap.po.time_stamp +0 -0
- data/webpack/components/EditableInput.js +0 -166
- data/webpack/components/EditableInput.scss +0 -3
- data/webpack/helpers/formFieldsHelper.js +0 -114
@@ -3,11 +3,11 @@
|
|
3
3
|
"locale_data": {
|
4
4
|
"foreman_openscap": {
|
5
5
|
"": {
|
6
|
-
"Project-Id-Version": "
|
6
|
+
"Project-Id-Version": "foreman_openscap 10.0.1",
|
7
7
|
"Report-Msgid-Bugs-To": "",
|
8
8
|
"PO-Revision-Date": "2016-04-14 07:48+0000",
|
9
9
|
"Last-Translator": "FIRST AUTHOR <EMAIL@ADDRESS>, 2016",
|
10
|
-
"Language-Team": "Chinese (China) (http://
|
10
|
+
"Language-Team": "Chinese (China) (http://app.transifex.com/foreman/foreman/language/zh_CN/)",
|
11
11
|
"MIME-Version": "1.0",
|
12
12
|
"Content-Type": "text/plain; charset=UTF-8",
|
13
13
|
"Content-Transfer-Encoding": "8bit",
|
@@ -30,13 +30,13 @@
|
|
30
30
|
"根据策略的 %s 合规报告"
|
31
31
|
],
|
32
32
|
"%s content": [
|
33
|
-
""
|
33
|
+
"%s 内容"
|
34
34
|
],
|
35
35
|
"%s does not exist, skipping.": [
|
36
|
-
""
|
36
|
+
"%s 不存在,跳过。"
|
37
37
|
],
|
38
38
|
"%s is a directory, expecting file.": [
|
39
|
-
""
|
39
|
+
"%s 是一个目录,预期为文件。"
|
40
40
|
],
|
41
41
|
"%s latest report": [
|
42
42
|
"%s 最新报告"
|
@@ -54,10 +54,10 @@
|
|
54
54
|
"<b>Foreman</b> OpenSCAP 摘要"
|
55
55
|
],
|
56
56
|
"A reboot is required after applying remediation.": [
|
57
|
-
""
|
57
|
+
"在应用补救后需要重启。"
|
58
58
|
],
|
59
59
|
"A reboot might be required after applying remediation.": [
|
60
|
-
""
|
60
|
+
"在应用补救后可能需要重启。"
|
61
61
|
],
|
62
62
|
"A summary of reports for OpenSCAP policies": [
|
63
63
|
"OpenSCAP 策略报告摘要"
|
@@ -81,7 +81,7 @@
|
|
81
81
|
"对主机应用策略"
|
82
82
|
],
|
83
83
|
"Are you sure you want to delete %s?": [
|
84
|
-
""
|
84
|
+
"您确定要删除 %s 吗?"
|
85
85
|
],
|
86
86
|
"Assign Compliance Policy": [
|
87
87
|
"分配合规政策"
|
@@ -90,10 +90,10 @@
|
|
90
90
|
"返回"
|
91
91
|
],
|
92
92
|
"By default, remediation is applied to the current host. Optionally, remediate any additional hosts that fail the rule.": [
|
93
|
-
""
|
93
|
+
"默认情况下,补救会应用到当前主机。(可选)修复任何规则失败的额外主机。"
|
94
94
|
],
|
95
95
|
"Can't find scap-security-guide RPM, are you sure it is installed on your server?": [
|
96
|
-
""
|
96
|
+
"无法找到 scap-security-guide RPM,您确定是否已安装在服务器上?"
|
97
97
|
],
|
98
98
|
"Cancel": [
|
99
99
|
"取消"
|
@@ -132,7 +132,7 @@
|
|
132
132
|
"选择星期几"
|
133
133
|
],
|
134
134
|
"Close": [
|
135
|
-
""
|
135
|
+
"关闭"
|
136
136
|
],
|
137
137
|
"Compliance": [
|
138
138
|
"合规"
|
@@ -162,13 +162,13 @@
|
|
162
162
|
"与策略合规"
|
163
163
|
],
|
164
164
|
"Confirm": [
|
165
|
-
""
|
165
|
+
"确认"
|
166
166
|
],
|
167
167
|
"Content": [
|
168
|
-
""
|
168
|
+
"内容"
|
169
169
|
],
|
170
170
|
"Copy to clipboard": [
|
171
|
-
""
|
171
|
+
"复制到剪贴板"
|
172
172
|
],
|
173
173
|
"Could not find host identified by: %s": [
|
174
174
|
"无法找到由 %s 标识的主机"
|
@@ -177,7 +177,7 @@
|
|
177
177
|
"无法验证 %s。请确保您具备合适的代理服务器版本,以便使用此功能"
|
178
178
|
],
|
179
179
|
"Could not validate %{file_type}. Error %{error}": [
|
180
|
-
"
|
180
|
+
"无法验证%%{file_type} 。错误 %{error}"
|
181
181
|
],
|
182
182
|
"Create SCAP content": [
|
183
183
|
"建立 SCAP 內容"
|
@@ -189,7 +189,7 @@
|
|
189
189
|
"创建定制文件"
|
190
190
|
],
|
191
191
|
"Created at": [
|
192
|
-
""
|
192
|
+
"建立于"
|
193
193
|
],
|
194
194
|
"Dashboard": [
|
195
195
|
"仪表板"
|
@@ -249,13 +249,13 @@
|
|
249
249
|
"当使用 “directory” 上载类型时要上传的目录"
|
250
250
|
],
|
251
251
|
"Do not implement any of the recommended remedial actions or scripts without first testing them in a non-production environment.": [
|
252
|
-
""
|
252
|
+
"在非生产环境中测试之前,不要实施任何推荐的补救操作或脚本。"
|
253
253
|
],
|
254
254
|
"Documentation": [
|
255
255
|
"文档"
|
256
256
|
],
|
257
257
|
"Done": [
|
258
|
-
""
|
258
|
+
"完成"
|
259
259
|
],
|
260
260
|
"Download": [
|
261
261
|
"下載"
|
@@ -288,10 +288,10 @@
|
|
288
288
|
"错误!"
|
289
289
|
],
|
290
290
|
"Every puppet run ensures the foreman_scap_client is configured according to the policy.": [
|
291
|
-
""
|
291
|
+
"每个 puppet 运行确保了 foreman_scap_client 会根据策略配置。"
|
292
292
|
],
|
293
293
|
"Expected an array of files to upload, got: %s.": [
|
294
|
-
""
|
294
|
+
"预期上传一个文件数组,实际为:%s。"
|
295
295
|
],
|
296
296
|
"Failed": [
|
297
297
|
"失败"
|
@@ -303,13 +303,13 @@
|
|
303
303
|
"只有失敗"
|
304
304
|
],
|
305
305
|
"Failed saving %s:": [
|
306
|
-
""
|
306
|
+
"保存失败 %s:"
|
307
307
|
],
|
308
308
|
"Failed to delete %s compliance reports": [
|
309
309
|
"刪除 %s 合规报告失败"
|
310
310
|
],
|
311
311
|
"Failed to delete ARF Report for host %{host_name} reported at %{reported_at}": [
|
312
|
-
"无法删除主机
|
312
|
+
"无法删除主机 %%{host_name} 在 %%{reported_at} 报告的 ARF 报告"
|
313
313
|
],
|
314
314
|
"Failed to downloaded ARF report as bzip: %s": [
|
315
315
|
"无法将 ARF 报告下载为 bzip:%s"
|
@@ -321,7 +321,7 @@
|
|
321
321
|
"从代理获取 spool 状态失败"
|
322
322
|
],
|
323
323
|
"Failed to save when overriding parameters for %{config_tool}, cause: %{errors}": [
|
324
|
-
"
|
324
|
+
"覆盖%%{config_tool} 的参数时无法保存,原因是:%{errors}"
|
325
325
|
],
|
326
326
|
"Failed to upload Arf Report, OpenSCAP proxy name or url not found in params when uploading for %s and host is missing openscap_proxy": [
|
327
327
|
"上传 Arf Report 失败,在为 %s 上传时没有在参数中找到 OpenSCAP 代理名或 url,主机缺少 openscap_proxy"
|
@@ -333,7 +333,7 @@
|
|
333
333
|
"上传文件"
|
334
334
|
],
|
335
335
|
"File name": [
|
336
|
-
""
|
336
|
+
"文件名"
|
337
337
|
],
|
338
338
|
"File paths to upload when using \\\"files\\\" upload type": [
|
339
339
|
"当使用 “files” 上传类型时要上传的文件路径"
|
@@ -423,7 +423,7 @@
|
|
423
423
|
"有些可能需要根据您的具体需求调整安全策略。"
|
424
424
|
],
|
425
425
|
"Job details": [
|
426
|
-
""
|
426
|
+
"作业详情"
|
427
427
|
],
|
428
428
|
"Latest Compliance Reports": [
|
429
429
|
"最新合规报告"
|
@@ -453,13 +453,13 @@
|
|
453
453
|
"位置"
|
454
454
|
],
|
455
455
|
"Manual": [
|
456
|
-
""
|
456
|
+
"手册"
|
457
457
|
],
|
458
458
|
"Message": [
|
459
459
|
"信息"
|
460
460
|
],
|
461
461
|
"Method": [
|
462
|
-
""
|
462
|
+
"方法"
|
463
463
|
],
|
464
464
|
"More details": [
|
465
465
|
"更多细节"
|
@@ -516,7 +516,7 @@
|
|
516
516
|
"未选择主机"
|
517
517
|
],
|
518
518
|
"No hosts were found with that id, name or query filter": [
|
519
|
-
""
|
519
|
+
"未找到符合此 id、名称或者查询过滤器的主机"
|
520
520
|
],
|
521
521
|
"No proxy found for %{name} or %{url}": [
|
522
522
|
"找不到 %{name} 或 %{url} 的代理服务器"
|
@@ -537,7 +537,7 @@
|
|
537
537
|
"无可用报告"
|
538
538
|
],
|
539
539
|
"No such directory: %s. Please check the path you have provided.": [
|
540
|
-
""
|
540
|
+
"没有这个目录:%s。请检查您所提供的路径。"
|
541
541
|
],
|
542
542
|
"No valid policy ID provided": [
|
543
543
|
"未提供有效的策略 ID"
|
@@ -548,9 +548,6 @@
|
|
548
548
|
"None found": [
|
549
549
|
"未找到"
|
550
550
|
],
|
551
|
-
"None provided": [
|
552
|
-
""
|
553
|
-
],
|
554
551
|
"None!": [
|
555
552
|
"无!"
|
556
553
|
],
|
@@ -570,7 +567,7 @@
|
|
570
567
|
"月份中的日子,請注意並不是所有月份都有同樣的天數"
|
571
568
|
],
|
572
569
|
"OS": [
|
573
|
-
""
|
570
|
+
"OS"
|
574
571
|
],
|
575
572
|
"Once SCAP content is present, you can create a policy, assign select host groups and schedule to run.": [
|
576
573
|
"存在 SCAP 内容时,您可以创建策略、分配选定主机组,并调度运行时间。"
|
@@ -594,7 +591,7 @@
|
|
594
591
|
"其他"
|
595
592
|
],
|
596
593
|
"Other hosts failing this rule": [
|
597
|
-
""
|
594
|
+
"其他这个规则失败的主机"
|
598
595
|
],
|
599
596
|
"Othered": [
|
600
597
|
"其它"
|
@@ -609,7 +606,7 @@
|
|
609
606
|
"Passed|P"
|
610
607
|
],
|
611
608
|
"Permission denied": [
|
612
|
-
""
|
609
|
+
"没有权限"
|
613
610
|
],
|
614
611
|
"Please Confirm": [
|
615
612
|
"请确认"
|
@@ -669,7 +666,7 @@
|
|
669
666
|
"没有找到带有 id %s 的策略。"
|
670
667
|
],
|
671
668
|
"Profile": [
|
672
|
-
""
|
669
|
+
"配置集"
|
673
670
|
],
|
674
671
|
"Proxy failed to send a report from spool to Foreman. This indicates a corrupted report format. Report has been moved to directory for storing corrupted files on proxy for later inspection.": [
|
675
672
|
"代理服务器未能从 spool 发送报告至 Foreman。这表示报告格式损坏。报告已被移动至目录,以便将破坏文件存储到代理服务器上供以后检查。"
|
@@ -681,25 +678,25 @@
|
|
681
678
|
"理由"
|
682
679
|
],
|
683
680
|
"Reboot the system(s)": [
|
684
|
-
""
|
681
|
+
"重启系统"
|
685
682
|
],
|
686
683
|
"Red Hat %s default content": [
|
687
|
-
""
|
684
|
+
"Red Hat %s 默认内容"
|
688
685
|
],
|
689
686
|
"References": [
|
690
687
|
"参考"
|
691
688
|
],
|
692
689
|
"Remediate %s rule": [
|
693
|
-
""
|
690
|
+
"补救 %s 规则"
|
694
691
|
],
|
695
692
|
"Remediation": [
|
696
|
-
""
|
693
|
+
"补救"
|
697
694
|
],
|
698
695
|
"Remediation might render the system non-functional.": [
|
699
|
-
""
|
696
|
+
"补救可能会导致系统无法正常工作。"
|
700
697
|
],
|
701
698
|
"Remote job": [
|
702
|
-
""
|
699
|
+
"远程作业"
|
703
700
|
],
|
704
701
|
"Report Metrics": [
|
705
702
|
"报告指标"
|
@@ -717,19 +714,19 @@
|
|
717
714
|
"报表"
|
718
715
|
],
|
719
716
|
"Request the following permissions from administrator: %s.": [
|
720
|
-
""
|
717
|
+
"连续管理员来获得以下权限:%s。"
|
721
718
|
],
|
722
719
|
"Request timed out. Please try increasing Settings -> proxy_request_timeout": [
|
723
720
|
"请求超时。请尝试增加 Settings -> proxy_request_timeout"
|
724
721
|
],
|
725
722
|
"Required %{msg_name} %{class} was not found, please ensure it is imported first.": [
|
726
|
-
"
|
723
|
+
"没有找到所需的%%{msg_name}%%{class},请确认它已被导入。"
|
727
724
|
],
|
728
725
|
"Requires %s Puppet class. This will assign the class to the hosts or selected hostgroups.": [
|
729
|
-
""
|
726
|
+
"需要 %s Puppet 类。这会将类分配给主机或所选主机组。"
|
730
727
|
],
|
731
728
|
"Requires Ansible plugin, %s Ansible role and variables. This will assign the role to the hosts or selected hostgroups.": [
|
732
|
-
""
|
729
|
+
"需要 Ansible 插件,%s Ansible 角色和变量。这将为主机或选定的主机组分配角色。"
|
733
730
|
],
|
734
731
|
"Resource": [
|
735
732
|
"资源"
|
@@ -738,28 +735,28 @@
|
|
738
735
|
"结果"
|
739
736
|
],
|
740
737
|
"Review hosts": [
|
741
|
-
""
|
738
|
+
"审阅主机"
|
742
739
|
],
|
743
740
|
"Review remediation": [
|
744
|
-
""
|
741
|
+
"审阅补救"
|
745
742
|
],
|
746
743
|
"Review the remediation snippet and apply it to the host manually.": [
|
747
|
-
""
|
744
|
+
"检查补救片段,并手动应用到主机。"
|
748
745
|
],
|
749
746
|
"Review the remediation snippet that will be applied to selected host(s).": [
|
750
|
-
""
|
747
|
+
"检查将应用到所选主机的补救片段。"
|
751
748
|
],
|
752
749
|
"Rule Results": [
|
753
750
|
"规则结果"
|
754
751
|
],
|
755
752
|
"Run": [
|
756
|
-
""
|
753
|
+
"运行"
|
757
754
|
],
|
758
755
|
"Run OpenSCAP remediation with Ansible": [
|
759
|
-
""
|
756
|
+
"使用 Ansible 运行 OpenSCAP 补救"
|
760
757
|
],
|
761
758
|
"Run OpenSCAP remediation with Shell": [
|
762
|
-
""
|
759
|
+
"使用 Shell 运行 OpenSCAP 补救"
|
763
760
|
],
|
764
761
|
"Run OpenSCAP scan": [
|
765
762
|
"运行 OpenSCAP 扫描"
|
@@ -801,10 +798,10 @@
|
|
801
798
|
"选择这个页中的所有项"
|
802
799
|
],
|
803
800
|
"Select remediation method": [
|
804
|
-
""
|
801
|
+
"选择补救方法"
|
805
802
|
],
|
806
803
|
"Select snippet": [
|
807
|
-
""
|
804
|
+
"选择片断"
|
808
805
|
],
|
809
806
|
"Severity": [
|
810
807
|
"严重性"
|
@@ -840,7 +837,7 @@
|
|
840
837
|
"智能类参数"
|
841
838
|
],
|
842
839
|
"Snippet": [
|
843
|
-
""
|
840
|
+
"程序代码片段"
|
844
841
|
],
|
845
842
|
"Something went wrong while selecting compliance reports - %s": [
|
846
843
|
"在选择合规报告时出错 - %s"
|
@@ -861,7 +858,7 @@
|
|
861
858
|
"提交"
|
862
859
|
],
|
863
860
|
"Successfully copied to clipboard!": [
|
864
|
-
""
|
861
|
+
"成功复制到剪贴板!"
|
865
862
|
],
|
866
863
|
"Successfully deleted %s compliance reports": [
|
867
864
|
"刪除 %s 合规报告成功"
|
@@ -894,43 +891,43 @@
|
|
894
891
|
"定制文件配置文件 ID"
|
895
892
|
],
|
896
893
|
"The %s proxy does not have Openscap feature enabled. Either set correct OpenSCAP Proxy or unset it.": [
|
897
|
-
""
|
894
|
+
"%s 代理没有启用 Openscap 功能。设置正确的 OpenSCAP 代理或取消设置它。"
|
898
895
|
],
|
899
896
|
"The Security Content Automation Protocol (SCAP), combines a number of open standards that are used to enumerate software flaws and\\n configuration issues related to security. ": [
|
900
897
|
"安全内容自动化协议(SCAP)是由一系列用来枚举与安全性有关的软件漏洞和\\n 配置问题的开源标准。"
|
901
898
|
],
|
902
899
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
903
|
-
"
|
900
|
+
"%%{item_name} 缺少以下 %%{key_name}:%%{key_names}。在继续操作之前,请确保已将其导入。"
|
904
901
|
],
|
905
902
|
"The identifier of the host": [
|
906
903
|
"主机 ID"
|
907
904
|
],
|
908
905
|
"The job has started on selected host(s), you can check the status on the job details page.": [
|
909
|
-
""
|
906
|
+
"作业已在所选主机上启动,您可以在详情页中检查作业的状态。"
|
910
907
|
],
|
911
908
|
"There are significant differences in deployment options.": [
|
912
909
|
"部署选项之间存在重大差异。"
|
913
910
|
],
|
914
911
|
"There is no job to remediate with. Please remediate manually.": [
|
915
|
-
""
|
912
|
+
"没有可以修复的作业。请手动修复。"
|
916
913
|
],
|
917
914
|
"There was a following error when deleting %(name)s: %(error)s": [
|
918
|
-
""
|
915
|
+
"删除 %(name)s 时出现以下错误:%(error)s"
|
919
916
|
],
|
920
917
|
"There's no available report for this host": [
|
921
|
-
""
|
918
|
+
"此主机没有可用的报告"
|
922
919
|
],
|
923
920
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
924
|
-
""
|
921
|
+
"这会使用户只保留 foreman_scap_client 的设置。策略仍然需要定义才能来链接传入的 ARF 报告。"
|
925
922
|
],
|
926
923
|
"This profile will be used to override the one from scap content": [
|
927
924
|
"这个配置文件将用于覆盖 scap 内容中的配置文件"
|
928
925
|
],
|
929
926
|
"Title": [
|
930
|
-
""
|
927
|
+
"提示"
|
931
928
|
],
|
932
929
|
"To deploy foreman_scap_client, ansible roles run needs to be triggered manually. Manual run is also required after any change to this policy.": [
|
933
|
-
""
|
930
|
+
"要部署 foreman_scap_client,需要手动触发 ansible 角色运行。在更改此策略后,还需要手动运行。"
|
934
931
|
],
|
935
932
|
"Total": [
|
936
933
|
"总计"
|
@@ -1002,7 +999,7 @@
|
|
1002
999
|
"查看完整报告"
|
1003
1000
|
],
|
1004
1001
|
"View selected hosts": [
|
1005
|
-
""
|
1002
|
+
"查看所选主机"
|
1006
1003
|
],
|
1007
1004
|
"XCCDF Profile": [
|
1008
1005
|
"XCCDF 配置集"
|
@@ -1020,10 +1017,10 @@
|
|
1020
1017
|
"是"
|
1021
1018
|
],
|
1022
1019
|
"You are not authorized to view the page. ": [
|
1023
|
-
""
|
1020
|
+
"您没有权利查看该页面。 "
|
1024
1021
|
],
|
1025
1022
|
"You can remediate by running a remote job or you can display a snippet for manual remediation.": [
|
1026
|
-
""
|
1023
|
+
"您可以通过运行远程作业来修复,也可以显示用于手动修复的代码片段。"
|
1027
1024
|
],
|
1028
1025
|
"You can specify custom cron line, e.g. \\\"0 3 * * *\\\", separate each of 5 values by space": [
|
1029
1026
|
"您可以设置定制的 cron 行,如 \\\"0 3 * * *\\\",其中的 5 个值由空格分隔"
|
@@ -1032,7 +1029,7 @@
|
|
1032
1029
|
"您似乎没有 ARF 报告。ARF 报告是针对给定的合规策略对特定主机执行单次扫描的摘要。"
|
1033
1030
|
],
|
1034
1031
|
"cannot assign to %s, all assigned policies must be deployed in the same way, check 'deploy by' for each assigned policy": [
|
1035
|
-
"无法分配给 %s,必须以相同的方式部署所有分配的策略,请为每个分配的策略选择 'deploy by'
|
1032
|
+
"无法分配给 %s,必须以相同的方式部署所有分配的策略,请为每个分配的策略选择 'deploy by'"
|
1036
1033
|
],
|
1037
1034
|
"documentation": [
|
1038
1035
|
"文档"
|
@@ -3,11 +3,11 @@
|
|
3
3
|
"locale_data": {
|
4
4
|
"foreman_openscap": {
|
5
5
|
"": {
|
6
|
-
"Project-Id-Version": "
|
6
|
+
"Project-Id-Version": "foreman_openscap 10.0.1",
|
7
7
|
"Report-Msgid-Bugs-To": "",
|
8
8
|
"PO-Revision-Date": "2016-04-14 07:48+0000",
|
9
9
|
"Last-Translator": "FIRST AUTHOR <EMAIL@ADDRESS>, 2016",
|
10
|
-
"Language-Team": "Chinese (Taiwan) (http://
|
10
|
+
"Language-Team": "Chinese (Taiwan) (http://app.transifex.com/foreman/foreman/language/zh_TW/)",
|
11
11
|
"MIME-Version": "1.0",
|
12
12
|
"Content-Type": "text/plain; charset=UTF-8",
|
13
13
|
"Content-Transfer-Encoding": "8bit",
|
@@ -133,7 +133,7 @@
|
|
133
133
|
"選擇星期幾"
|
134
134
|
],
|
135
135
|
"Close": [
|
136
|
-
""
|
136
|
+
"關閉"
|
137
137
|
],
|
138
138
|
"Compliance": [
|
139
139
|
"合規"
|
@@ -190,7 +190,7 @@
|
|
190
190
|
""
|
191
191
|
],
|
192
192
|
"Created at": [
|
193
|
-
""
|
193
|
+
"建立於"
|
194
194
|
],
|
195
195
|
"Dashboard": [
|
196
196
|
"控制面板"
|
@@ -454,7 +454,7 @@
|
|
454
454
|
"位置"
|
455
455
|
],
|
456
456
|
"Manual": [
|
457
|
-
""
|
457
|
+
"手動式"
|
458
458
|
],
|
459
459
|
"Message": [
|
460
460
|
"訊息"
|
@@ -549,9 +549,6 @@
|
|
549
549
|
"None found": [
|
550
550
|
"未找到"
|
551
551
|
],
|
552
|
-
"None provided": [
|
553
|
-
""
|
554
|
-
],
|
555
552
|
"None!": [
|
556
553
|
"無!"
|
557
554
|
],
|
@@ -610,7 +607,7 @@
|
|
610
607
|
"Passed|P"
|
611
608
|
],
|
612
609
|
"Permission denied": [
|
613
|
-
""
|
610
|
+
"使用權限被拒"
|
614
611
|
],
|
615
612
|
"Please Confirm": [
|
616
613
|
"請確認"
|
@@ -754,7 +751,7 @@
|
|
754
751
|
""
|
755
752
|
],
|
756
753
|
"Run": [
|
757
|
-
""
|
754
|
+
"執行"
|
758
755
|
],
|
759
756
|
"Run OpenSCAP remediation with Ansible": [
|
760
757
|
""
|
@@ -841,7 +838,7 @@
|
|
841
838
|
""
|
842
839
|
],
|
843
840
|
"Snippet": [
|
844
|
-
""
|
841
|
+
"程式碼片段"
|
845
842
|
],
|
846
843
|
"Something went wrong while selecting compliance reports - %s": [
|
847
844
|
"選擇合規報告時發生了錯誤 - %s"
|
@@ -928,7 +925,7 @@
|
|
928
925
|
""
|
929
926
|
],
|
930
927
|
"Title": [
|
931
|
-
""
|
928
|
+
"標題"
|
932
929
|
],
|
933
930
|
"To deploy foreman_scap_client, ansible roles run needs to be triggered manually. Manual run is also required after any change to this policy.": [
|
934
931
|
""
|
@@ -15,9 +15,10 @@ module ForemanOpenscap
|
|
15
15
|
|
16
16
|
def handle_config_not_available(config)
|
17
17
|
return true if config.available?
|
18
|
-
@policy.errors
|
18
|
+
@policy.errors.add(:deploy_by,
|
19
19
|
_("%{type} was selected to deploy policy to clients, but %{type} is not available. Are you missing a plugin?") %
|
20
20
|
{ :type => config.type.to_s.camelize }
|
21
|
+
)
|
21
22
|
false
|
22
23
|
end
|
23
24
|
|
@@ -25,7 +26,7 @@ module ForemanOpenscap
|
|
25
26
|
return true if item
|
26
27
|
err = _("Required %{msg_name} %{class} was not found, please ensure it is imported first.") %
|
27
28
|
{ :class => config.config_item_name, :msg_name => config.msg_name }
|
28
|
-
@policy.errors
|
29
|
+
@policy.errors.add(:base, err)
|
29
30
|
false
|
30
31
|
end
|
31
32
|
|
@@ -34,7 +35,7 @@ module ForemanOpenscap
|
|
34
35
|
err = _("The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.") %
|
35
36
|
{ :key_name => config.lookup_key_plural_name, :key_names => key_names, :item_name => config.config_item_name }
|
36
37
|
|
37
|
-
@policy.errors
|
38
|
+
@policy.errors.add(:base, err)
|
38
39
|
false
|
39
40
|
end
|
40
41
|
|
@@ -52,9 +53,9 @@ module ForemanOpenscap
|
|
52
53
|
|
53
54
|
def handle_param_override(config, param)
|
54
55
|
if param.changed? && !param.save
|
55
|
-
@policy.errors
|
56
|
+
@policy.errors.add(:base,
|
56
57
|
_('Failed to save when overriding parameters for %{config_tool}, cause: %{errors}') %
|
57
|
-
{ :config_tool => config.type, :errors => param.errors.full_messages.join(', ') }
|
58
|
+
{ :config_tool => config.type, :errors => param.errors.full_messages.join(', ') })
|
58
59
|
return false
|
59
60
|
end
|
60
61
|
true
|
data/config/routes.rb
CHANGED
@@ -62,7 +62,7 @@ Rails.application.routes.draw do
|
|
62
62
|
|
63
63
|
namespace :api, :defaults => { :format => 'json' } do
|
64
64
|
scope "(:apiv)", :module => :v2, :defaults => { :apiv => 'v2' },
|
65
|
-
:apiv => /
|
65
|
+
:apiv => /v2/, :constraints => ApiConstraints.new(:version => 2, :default => true) do
|
66
66
|
namespace :compliance do
|
67
67
|
resources :scap_contents, :except => %i[new edit] do
|
68
68
|
member do
|
@@ -95,6 +95,14 @@ Rails.application.routes.draw do
|
|
95
95
|
post 'arf_reports/:cname/:policy_id/:date', \
|
96
96
|
:constraints => { :cname => /[^\/]+/ }, :to => 'arf_reports#create'
|
97
97
|
end
|
98
|
+
|
99
|
+
constraints(:id => %r{[^\/]+}) do
|
100
|
+
resources :hosts, :except => [:new, :edit] do
|
101
|
+
member do
|
102
|
+
get :policies_enc
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
98
106
|
end
|
99
107
|
end
|
100
108
|
end
|
@@ -113,19 +121,4 @@ Foreman::Application.routes.draw do
|
|
113
121
|
post 'openscap_proxy_changed'
|
114
122
|
end
|
115
123
|
end
|
116
|
-
|
117
|
-
namespace :api do
|
118
|
-
scope "(:api_version)", :module => :v2,
|
119
|
-
:defaults => { :api_version => 'v2' },
|
120
|
-
:api_version => /v2/,
|
121
|
-
:constraints => ApiConstraints.new(:version => 2, :default => true) do
|
122
|
-
constraints(:id => %r{[^\/]+}) do
|
123
|
-
resources :hosts, :only => [] do
|
124
|
-
member do
|
125
|
-
get :policies_enc
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
130
|
-
end
|
131
124
|
end
|
data/locale/Makefile
CHANGED
@@ -31,9 +31,16 @@ all-mo: $(MOFILES)
|
|
31
31
|
cat $@
|
32
32
|
! grep -q msgid $@
|
33
33
|
|
34
|
-
%.edit.po:
|
34
|
+
%.edit.po: %.po.time_stamp
|
35
35
|
touch $@
|
36
36
|
|
37
|
+
# gettext will trash the .edit.po file if the time stamp doesn't exist or is older than the po file
|
38
|
+
%.po.time_stamp: %.po
|
39
|
+
touch --reference $< $@
|
40
|
+
|
41
|
+
# Prevent make from treating this as an intermediate file to be cleaned up
|
42
|
+
.PRECIOUS: %.po.time_stamp
|
43
|
+
|
37
44
|
check: $(POXFILES)
|
38
45
|
|
39
46
|
# Unify duplicate translations
|
@@ -43,7 +50,10 @@ uniq-po:
|
|
43
50
|
done
|
44
51
|
|
45
52
|
tx-pull: $(EDITFILES)
|
46
|
-
|
53
|
+
# Initialize new languages
|
54
|
+
cd .. && tx pull -f --all --minimum-perc 50
|
55
|
+
# Force update all existing languages
|
56
|
+
cd .. && tx pull -f --minimum-perc 0
|
47
57
|
for f in $(EDITFILES) ; do \
|
48
58
|
sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
|
49
59
|
done
|
Binary file
|