foreman_puppet 5.1.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_puppet/locale/ca/foreman_puppet.js +861 -0
  3. data/app/assets/javascripts/foreman_puppet/locale/cs_CZ/foreman_puppet.js +861 -0
  4. data/app/assets/javascripts/foreman_puppet/locale/de/foreman_puppet.js +861 -0
  5. data/app/assets/javascripts/foreman_puppet/locale/en/foreman_puppet.js +861 -0
  6. data/app/assets/javascripts/foreman_puppet/locale/en_GB/foreman_puppet.js +861 -0
  7. data/app/assets/javascripts/foreman_puppet/locale/es/foreman_puppet.js +861 -0
  8. data/app/assets/javascripts/foreman_puppet/locale/fr/foreman_puppet.js +863 -0
  9. data/app/assets/javascripts/foreman_puppet/locale/gl/foreman_puppet.js +861 -0
  10. data/app/assets/javascripts/foreman_puppet/locale/it/foreman_puppet.js +861 -0
  11. data/app/assets/javascripts/foreman_puppet/locale/ja/foreman_puppet.js +859 -0
  12. data/app/assets/javascripts/foreman_puppet/locale/ka/foreman_puppet.js +861 -0
  13. data/app/assets/javascripts/foreman_puppet/locale/ko/foreman_puppet.js +861 -0
  14. data/app/assets/javascripts/foreman_puppet/locale/nl_NL/foreman_puppet.js +861 -0
  15. data/app/assets/javascripts/foreman_puppet/locale/pl/foreman_puppet.js +861 -0
  16. data/app/assets/javascripts/foreman_puppet/locale/pt_BR/foreman_puppet.js +861 -0
  17. data/app/assets/javascripts/foreman_puppet/locale/ru/foreman_puppet.js +861 -0
  18. data/app/assets/javascripts/foreman_puppet/locale/sv_SE/foreman_puppet.js +861 -0
  19. data/app/assets/javascripts/foreman_puppet/locale/zh_CN/foreman_puppet.js +859 -0
  20. data/app/assets/javascripts/foreman_puppet/locale/zh_TW/foreman_puppet.js +861 -0
  21. data/app/views/foreman_puppet/common/_puppetclasses_or_envs_changed.html.erb +5 -0
  22. data/app/views/foreman_puppet/environments/welcome.html.erb +3 -3
  23. data/app/views/smart_proxies/plugins/_puppet.html.erb +1 -2
  24. data/lib/foreman_puppet/engine.rb +0 -6
  25. data/lib/foreman_puppet/register.rb +3 -1
  26. data/lib/foreman_puppet/version.rb +1 -1
  27. data/locale/Makefile +6 -3
  28. data/locale/ca/foreman_puppet.edit.po +180 -251
  29. data/locale/ca/foreman_puppet.po +6 -0
  30. data/locale/cs_CZ/foreman_puppet.edit.po +175 -228
  31. data/locale/cs_CZ/foreman_puppet.po +6 -0
  32. data/locale/de/foreman_puppet.edit.po +220 -343
  33. data/locale/de/foreman_puppet.po +6 -0
  34. data/locale/en/foreman_puppet.edit.po +234 -86
  35. data/locale/en/foreman_puppet.po +6 -0
  36. data/locale/en_GB/foreman_puppet.edit.po +169 -214
  37. data/locale/en_GB/foreman_puppet.po +6 -0
  38. data/locale/es/foreman_puppet.edit.po +223 -337
  39. data/locale/es/foreman_puppet.po +6 -0
  40. data/locale/foreman_puppet.pot +31 -22
  41. data/locale/fr/foreman_puppet.edit.po +223 -343
  42. data/locale/fr/foreman_puppet.po +6 -0
  43. data/locale/gl/foreman_puppet.edit.po +171 -224
  44. data/locale/gl/foreman_puppet.po +6 -0
  45. data/locale/it/foreman_puppet.edit.po +188 -266
  46. data/locale/it/foreman_puppet.po +6 -0
  47. data/locale/ja/foreman_puppet.edit.po +190 -251
  48. data/locale/ja/foreman_puppet.po +6 -0
  49. data/locale/ka/foreman_puppet.edit.po +1160 -0
  50. data/locale/ka/foreman_puppet.po +6 -0
  51. data/locale/ko/foreman_puppet.edit.po +171 -217
  52. data/locale/ko/foreman_puppet.po +6 -0
  53. data/locale/nl_NL/foreman_puppet.edit.po +184 -257
  54. data/locale/nl_NL/foreman_puppet.po +6 -0
  55. data/locale/pl/foreman_puppet.edit.po +191 -275
  56. data/locale/pl/foreman_puppet.po +6 -0
  57. data/locale/pt_BR/foreman_puppet.edit.po +227 -349
  58. data/locale/pt_BR/foreman_puppet.po +6 -0
  59. data/locale/ru/foreman_puppet.edit.po +191 -272
  60. data/locale/ru/foreman_puppet.po +6 -0
  61. data/locale/sv_SE/foreman_puppet.edit.po +172 -223
  62. data/locale/sv_SE/foreman_puppet.po +6 -0
  63. data/locale/zh_CN/foreman_puppet.edit.po +192 -241
  64. data/locale/zh_CN/foreman_puppet.po +6 -0
  65. data/locale/zh_TW/foreman_puppet.edit.po +173 -217
  66. data/locale/zh_TW/foreman_puppet.po +6 -0
  67. data/webpack/src/Components/Environments/Welcome.js +1 -1
  68. data/webpack/src/Extends/Host/PuppetTab/SubTabs/ENCPreview/ENCTab.js +4 -1
  69. data/webpack/src/Extends/Host/PuppetTab/index.js +1 -0
  70. metadata +78 -66
  71. data/app/views/provisioning_templates/temp/autoyast_orcharhino_finish.erb +0 -31
  72. data/app/views/provisioning_templates/temp/preseed_orcharhino_finish.erb +0 -90
  73. data/app/views/provisioning_templates/temp/provision/autoyast_orcharhino_default.erb +0 -336
  74. data/app/views/provisioning_templates/temp/snippet/_or_al_client.erb +0 -32
  75. data/app/views/provisioning_templates/temp/snippet/_or_deb_client.erb +0 -175
  76. data/app/views/provisioning_templates/temp/snippet/_or_ol_client.erb +0 -37
  77. data/app/views/provisioning_templates/temp/snippet/_or_sles_client.erb +0 -85
  78. data/locale/messages.mo +0 -0
  79. /data/locale/{en/foreman_puppet.pox → ka/foreman_puppet.po.time_stamp} +0 -0
@@ -1,4 +1,9 @@
1
1
  <% title _("Changed environments") %>
2
+ <%= breadcrumbs(switchable: false,
3
+ items: [
4
+ { caption: _('Puppet Environments'), url: environments_path },
5
+ { caption: _('Changed environments') }
6
+ ]) %>
2
7
  <%= form_tag controller.send("obsolete_and_new_#{controller_name}_path") do %>
3
8
  <h4><%= _("Select the changes you want to apply to Foreman") %></h4>
4
9
  <h6>
@@ -1,7 +1,7 @@
1
1
  <% content_for(:title, _("Puppet environments")) %>
2
- <%= breadcrumbs(:switchable => false,
3
- :items => [
4
- { :caption => _('Puppet Environments'), :url => environments_path },
2
+ <%= breadcrumbs(switchable: false,
3
+ items: [
4
+ { caption: _('Puppet Environments'), url: environments_path },
5
5
  { caption: @page_header }
6
6
  ]) %>
7
7
 
@@ -1,4 +1,3 @@
1
- <% javascript 'charts' %>
2
1
  <ul id="proxy-puppet-tab" class="nav nav-tabs nav-tabs-pf">
3
2
  <li class="active"><a href="#puppet_dashboard" data-toggle="tab"><%= _('General')%></a></li>
4
3
  <li><a href="#puppet_envs" data-toggle="tab"><%= _('Environments') %></a></li>
@@ -16,7 +15,7 @@
16
15
  </div>
17
16
  </div>
18
17
  </div>
19
- <div class="clearfix row container-cards-pf container-fluid" data-ajax-url="<%= foreman_puppet.dashboard_puppet_smart_proxy_path(@smart_proxy) %>" data-on-complete="refreshCharts"><%= spinner %></div>
18
+ <div class="clearfix row container-cards-pf container-fluid" data-ajax-url="<%= foreman_puppet.dashboard_puppet_smart_proxy_path(@smart_proxy) %>"><%= spinner %></div>
20
19
  </div>
21
20
  <div class="tab-pane" id="puppet_envs" data-ajax-url="<%= foreman_puppet.environments_puppet_smart_proxy_path(@smart_proxy) %>">
22
21
  <%= spinner %>
@@ -91,11 +91,5 @@ module ForemanPuppet
91
91
  ForemanPuppet::Engine.load_seed
92
92
  end
93
93
  end
94
-
95
- initializer 'foreman_puppet.register_gettext', after: :load_config_initializers do |_app|
96
- locale_dir = File.join(File.expand_path('../..', __dir__), 'locale')
97
- locale_domain = 'foreman_puppet'
98
- Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
99
- end
100
94
  end
101
95
  end
@@ -1,5 +1,7 @@
1
1
  Foreman::Plugin.register :foreman_puppet do
2
- requires_foreman '>= 3.5.0'
2
+ requires_foreman '>= 3.7'
3
+ register_gettext
4
+
3
5
  # Add Global JS file for extending foreman-core components and routes
4
6
  register_global_js_file 'global'
5
7
 
@@ -1,3 +1,3 @@
1
1
  module ForemanPuppet
2
- VERSION = '5.1.2'.freeze
2
+ VERSION = '6.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
@@ -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
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!