foreman_setup 2.0.4 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4650b2e87fc4a1a4860318ae3b1108f6438a228c
4
- data.tar.gz: 8ed548254d9b7dfc97894d4d65a346610468f608
3
+ metadata.gz: f596e0f9407679964ad9c9a10220961cb2b6cfc7
4
+ data.tar.gz: 6eb5d1a34dce5e3e1336bd7739a8ef8a9e3ae4b6
5
5
  SHA512:
6
- metadata.gz: 85b66ca8fbaabc8e82dd15314af8473e02e29e79e3d63fe6b5725c209880fe295f027389cef5a139af1399c8ce3a1600ad2f8dfab3074db0d69e7ced28a77e28
7
- data.tar.gz: 82c66e7488995bdc1dd8f2a78af5350e62e06a9893a7f3117cb047f065360c85215364713b1f2c209f5d3d92a00d24aba80881f7cb8631fa53eefc72b14462cd
6
+ metadata.gz: 63a7ca081a30dddaafcc7e8fc7cc30f5b177712a66d3a783185712ec699b2641e41054b94e17024783a0ef1bb4f809036c81f2ed4ab6b85651f819e7e661986d
7
+ data.tar.gz: 2816a0787f5e7e1ef526a2fb968cf8d7318d3fa0ffd5da12835b39ee8e5ff95e1a38f69221478049a9853461be5b001b5ac59f27ad7c22513cda0dc1213c0f0b
data/.tx/config ADDED
@@ -0,0 +1,8 @@
1
+ [main]
2
+ host = https://www.transifex.com
3
+
4
+ [foreman.foreman_setup]
5
+ file_filter = locale/<lang>/foreman_setup.po
6
+ source_file = locale/foreman_setup.pot
7
+ source_lang = en
8
+ type = PO
data/CHANGES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.1.0
4
+ * i18n support (French and Spanish complete)
5
+
3
6
  ## v2.0.4
4
7
  * use foreman_url from settings, not browser URL for installer base URL
5
8
  * associate finish templates
@@ -29,6 +29,12 @@ module ForemanSetup
29
29
  role "Provisioning setup", [:edit_provisioning]
30
30
  end
31
31
  end
32
+
33
+ initializer 'foreman_setup.register_gettext', :after => :load_config_initializers do |app|
34
+ locale_dir = File.join(File.expand_path('../../..', __FILE__), 'locale')
35
+ locale_domain = 'foreman_setup'
36
+ Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
37
+ end
32
38
  end
33
39
 
34
40
  def table_name_prefix
@@ -1,3 +1,3 @@
1
1
  module ForemanSetup
2
- VERSION = '2.0.4'
2
+ VERSION = '2.1.0'
3
3
  end
data/locale/Makefile ADDED
@@ -0,0 +1,62 @@
1
+ #
2
+ # Makefile for PO merging and MO generation. More info in the README.
3
+ #
4
+ # make all-mo (default) - generate MO files
5
+ # make check - check translations using translate-tool
6
+ # make tx-update - download and merge translations from Transifex
7
+ # make clean - clean everything
8
+ #
9
+ DOMAIN = foreman_setup
10
+ VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load(Dir.glob("../*.gemspec")[0]);puts spec.version')
11
+ POTFILE = $(DOMAIN).pot
12
+ MOFILE = $(DOMAIN).mo
13
+ POFILES = $(shell find . -name '*.po')
14
+ MOFILES = $(patsubst %.po,%.mo,$(POFILES))
15
+ POXFILES = $(patsubst %.po,%.pox,$(POFILES))
16
+
17
+ %.mo: %.po
18
+ mkdir -p $(shell dirname $@)/LC_MESSAGES
19
+ msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $<
20
+
21
+ # Generate MO files from PO files
22
+ all-mo: $(MOFILES)
23
+
24
+ # Check for malformed strings
25
+ %.pox: %.po
26
+ msgfmt -c $<
27
+ pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
28
+ -t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@
29
+ cat $@
30
+ ! grep -q msgid $@
31
+
32
+ check: $(POXFILES)
33
+ msgfmt -c ${POTFILE}
34
+
35
+ # Merge PO files
36
+ update-po:
37
+ for f in $(shell find ./ -name "*.po") ; do \
38
+ msgmerge -N --backup=none -U $$f ${POTFILE} ; \
39
+ done
40
+
41
+ # Unify duplicate translations
42
+ uniq-po:
43
+ for f in $(shell find ./ -name "*.po") ; do \
44
+ msguniq $$f -o $$f ; \
45
+ done
46
+
47
+ tx-pull:
48
+ tx pull -f
49
+ for f in $(POFILES) ; do \
50
+ sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
51
+ done
52
+ -git commit -a -m "i18n - pulling from tx"
53
+
54
+ reset-po:
55
+ # merging po files is unnecessary when using transifex.com
56
+ git checkout -- ../locale/*/*po
57
+
58
+ tx-update: tx-pull reset-po $(MOFILES)
59
+ # amend mo files
60
+ git add ../locale/*/LC_MESSAGES
61
+ git commit -a --amend -m "i18n - pulling from tx"
62
+ -echo Changes commited!
@@ -0,0 +1,223 @@
1
+ # foreman_setup
2
+ #
3
+ # This file is distributed under the same license as foreman_setup.
4
+ #
5
+ # Translators:
6
+ # Ettore Atalan <atalanttore@googlemail.com>, 2014
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: foreman_setup 2.0.4\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2014-08-20 09:25+0100\n"
12
+ "PO-Revision-Date: 2014-09-12 14:40+0000\n"
13
+ "Last-Translator: Ettore Atalan <atalanttore@googlemail.com>\n"
14
+ "Language-Team: German (http://www.transifex.com/projects/p/foreman/language/de/)\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Language: de\n"
19
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
+
21
+ msgid "Activation key"
22
+ msgstr "Aktivierungsschlüssel"
23
+
24
+ msgid "Activation key configuration"
25
+ msgstr "Aktivierungsschlüsselkonfiguration"
26
+
27
+ msgid "Add and manage compute resources (virtualization and cloud)"
28
+ msgstr ""
29
+
30
+ msgid ""
31
+ "All of the necessary components have been set up for provisioning support. "
32
+ "You can now provision new hosts by registering them from the Hosts page, "
33
+ "then PXE-boot the server on the subnet set up earlier."
34
+ msgstr ""
35
+
36
+ msgid ""
37
+ "All of the necessary network information has been collected, now run the "
38
+ "Foreman installer again with the necessary arguments to configure "
39
+ "provisioning."
40
+ msgstr ""
41
+
42
+ msgid "Completion"
43
+ msgstr ""
44
+
45
+ msgid "Compute Resources"
46
+ msgstr "Rechnerresource"
47
+
48
+ msgid "Create and provision a new host"
49
+ msgstr ""
50
+
51
+ msgid "Create new installation medium"
52
+ msgstr ""
53
+
54
+ msgid "Delete %s?"
55
+ msgstr "%s löschen?"
56
+
57
+ msgid "Domain"
58
+ msgstr "Domäne"
59
+
60
+ msgid "Domain|Name"
61
+ msgstr "Name"
62
+
63
+ msgid "Edit Host Group"
64
+ msgstr "Hostgruppe bearbeiten"
65
+
66
+ msgid "Existing medium"
67
+ msgstr "Vorhandenes Medium"
68
+
69
+ msgid "Foreman installer"
70
+ msgstr "Foreman-Installationsprogramm"
71
+
72
+ msgid "Found registered host %s"
73
+ msgstr ""
74
+
75
+ msgid "Found registered smart proxy %s"
76
+ msgstr ""
77
+
78
+ msgid "Host %s has at least one network interface"
79
+ msgstr ""
80
+
81
+ msgid "Hostname"
82
+ msgstr "Hostname"
83
+
84
+ msgid ""
85
+ "If installation media has already been set up, it can be selected below and "
86
+ "the wizard will complete the necessary associations. Otherwise use the "
87
+ "fields below, or the Installation Media page in Foreman to add new media."
88
+ msgstr ""
89
+
90
+ msgid "Install provisioning with DHCP"
91
+ msgstr ""
92
+
93
+ msgid "Install provisioning without DHCP"
94
+ msgstr ""
95
+
96
+ msgid "Installation media"
97
+ msgstr "Installationsmedien"
98
+
99
+ msgid "Missing registered host %s, please ensure it is checking in"
100
+ msgstr ""
101
+
102
+ msgid "Missing registered smart proxy %s, please ensure it is registered"
103
+ msgstr ""
104
+
105
+ msgid "Network config"
106
+ msgstr "Netzwerkkonfiguration"
107
+
108
+ msgid "Network selection"
109
+ msgstr "Netzwerkauswahl"
110
+
111
+ msgid "New Host"
112
+ msgstr "Neuer Host"
113
+
114
+ msgid "Next"
115
+ msgstr "Weiter"
116
+
117
+ msgid "Next steps"
118
+ msgstr "Nächste Schritte"
119
+
120
+ msgid "No network interfaces listed in $interfaces fact"
121
+ msgstr ""
122
+
123
+ msgid "Normal installation media"
124
+ msgstr ""
125
+
126
+ msgid "Not available until pre-requisites satisified."
127
+ msgstr ""
128
+
129
+ msgid "Operating system"
130
+ msgstr "Betriebssystem"
131
+
132
+ msgid "Path or URL"
133
+ msgstr "Pfad oder URL"
134
+
135
+ msgid "Plugin for Foreman that helps set up provisioning."
136
+ msgstr ""
137
+
138
+ msgid "Pre-requisites"
139
+ msgstr ""
140
+
141
+ msgid "Provision from %s"
142
+ msgstr ""
143
+
144
+ msgid "Provisioning Setup"
145
+ msgstr "Bereitstellungs-Setup"
146
+
147
+ msgid "Provisioning host"
148
+ msgstr ""
149
+
150
+ msgid "Provisioning network"
151
+ msgstr ""
152
+
153
+ msgid "Provisioning setup"
154
+ msgstr ""
155
+
156
+ msgid "Provisioning setup complete"
157
+ msgstr ""
158
+
159
+ msgid "Red Hat Satellite 5 or Spacewalk"
160
+ msgstr ""
161
+
162
+ msgid "Return to the main provisioning setup page"
163
+ msgstr ""
164
+
165
+ msgid "Review and edit the host group set up by the provisioning wizard"
166
+ msgstr ""
167
+
168
+ msgid "Set up provisioning"
169
+ msgstr ""
170
+
171
+ msgid "Smart proxy"
172
+ msgstr "Smart Proxy"
173
+
174
+ msgid ""
175
+ "Some information about the location of installation media for the operating "
176
+ "system used for provisioning is now required."
177
+ msgstr ""
178
+
179
+ msgid "Spacewalk hostname is missing"
180
+ msgstr "Spacewalk-Hostname fehlt"
181
+
182
+ msgid "Subnet"
183
+ msgstr "Subnetz"
184
+
185
+ msgid "Successfully associated OS %s."
186
+ msgstr ""
187
+
188
+ msgid "Successfully updated subnet %s."
189
+ msgstr ""
190
+
191
+ msgid "The DNS domain name to provision hosts into"
192
+ msgstr ""
193
+
194
+ msgid ""
195
+ "The configuration set up is all accessible under the Infrastructure menu, "
196
+ "e.g. Infrastructure > Subnets, and can be changed in the web interface. You"
197
+ " can return to this set up process through <b>Infrastructure > Provisioning "
198
+ "Setup</b> to change settings or add new provisioning capabilities."
199
+ msgstr ""
200
+
201
+ msgid "The following operating system will be configured for provisioning:"
202
+ msgstr ""
203
+
204
+ msgid ""
205
+ "This wizard will help set up Foreman for full host provisioning. Before we "
206
+ "begin, a few requirements will be verified."
207
+ msgstr ""
208
+
209
+ msgid ""
210
+ "To provision hosts, some configuration values are needed for the "
211
+ "provisioning subnet attached to the Foreman server."
212
+ msgstr ""
213
+
214
+ msgid "Type"
215
+ msgstr "Typ"
216
+
217
+ msgid "Use an existing installation medium"
218
+ msgstr ""
219
+
220
+ msgid ""
221
+ "Users of Spacewalk, Red Hat Network, or Red Hat Satellite 5 should enter an "
222
+ "appropriate activation key below, otherwise leave blank."
223
+ msgstr ""
@@ -0,0 +1,201 @@
1
+ # foreman_setup
2
+ #
3
+ # This file is distributed under the same license as foreman_setup.
4
+ #
5
+ #, fuzzy
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: foreman_setup 2.0.4\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2014-08-20 09:25+0100\n"
11
+ "PO-Revision-Date: 2014-08-20 09:27+0100\n"
12
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
+ "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
14
+ "Language: \n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+
20
+ msgid "Activation key"
21
+ msgstr ""
22
+
23
+ msgid "Activation key configuration"
24
+ msgstr ""
25
+
26
+ msgid "Add and manage compute resources (virtualization and cloud)"
27
+ msgstr ""
28
+
29
+ msgid "All of the necessary components have been set up for provisioning support. You can now provision new hosts by registering them from the Hosts page, then PXE-boot the server on the subnet set up earlier."
30
+ msgstr ""
31
+
32
+ msgid "All of the necessary network information has been collected, now run the Foreman installer again with the necessary arguments to configure provisioning."
33
+ msgstr ""
34
+
35
+ msgid "Completion"
36
+ msgstr ""
37
+
38
+ msgid "Compute Resources"
39
+ msgstr ""
40
+
41
+ msgid "Create and provision a new host"
42
+ msgstr ""
43
+
44
+ msgid "Create new installation medium"
45
+ msgstr ""
46
+
47
+ msgid "Delete %s?"
48
+ msgstr ""
49
+
50
+ msgid "Domain"
51
+ msgstr ""
52
+
53
+ msgid "Domain|Name"
54
+ msgstr ""
55
+
56
+ msgid "Edit Host Group"
57
+ msgstr ""
58
+
59
+ msgid "Existing medium"
60
+ msgstr ""
61
+
62
+ msgid "Foreman installer"
63
+ msgstr ""
64
+
65
+ msgid "Found registered host %s"
66
+ msgstr ""
67
+
68
+ msgid "Found registered smart proxy %s"
69
+ msgstr ""
70
+
71
+ msgid "Host %s has at least one network interface"
72
+ msgstr ""
73
+
74
+ msgid "Hostname"
75
+ msgstr ""
76
+
77
+ msgid "If installation media has already been set up, it can be selected below and the wizard will complete the necessary associations. Otherwise use the fields below, or the Installation Media page in Foreman to add new media."
78
+ msgstr ""
79
+
80
+ msgid "Install provisioning with DHCP"
81
+ msgstr ""
82
+
83
+ msgid "Install provisioning without DHCP"
84
+ msgstr ""
85
+
86
+ msgid "Installation media"
87
+ msgstr ""
88
+
89
+ msgid "Missing registered host %s, please ensure it is checking in"
90
+ msgstr ""
91
+
92
+ msgid "Missing registered smart proxy %s, please ensure it is registered"
93
+ msgstr ""
94
+
95
+ msgid "Network config"
96
+ msgstr ""
97
+
98
+ msgid "Network selection"
99
+ msgstr ""
100
+
101
+ msgid "New Host"
102
+ msgstr ""
103
+
104
+ msgid "Next"
105
+ msgstr ""
106
+
107
+ msgid "Next steps"
108
+ msgstr ""
109
+
110
+ msgid "No network interfaces listed in $interfaces fact"
111
+ msgstr ""
112
+
113
+ msgid "Normal installation media"
114
+ msgstr ""
115
+
116
+ msgid "Not available until pre-requisites satisified."
117
+ msgstr ""
118
+
119
+ msgid "Operating system"
120
+ msgstr ""
121
+
122
+ msgid "Path or URL"
123
+ msgstr ""
124
+
125
+ msgid "Plugin for Foreman that helps set up provisioning."
126
+ msgstr ""
127
+
128
+ msgid "Pre-requisites"
129
+ msgstr ""
130
+
131
+ msgid "Provision from %s"
132
+ msgstr ""
133
+
134
+ msgid "Provisioning Setup"
135
+ msgstr ""
136
+
137
+ msgid "Provisioning host"
138
+ msgstr ""
139
+
140
+ msgid "Provisioning network"
141
+ msgstr ""
142
+
143
+ msgid "Provisioning setup"
144
+ msgstr ""
145
+
146
+ msgid "Provisioning setup complete"
147
+ msgstr ""
148
+
149
+ msgid "Red Hat Satellite 5 or Spacewalk"
150
+ msgstr ""
151
+
152
+ msgid "Return to the main provisioning setup page"
153
+ msgstr ""
154
+
155
+ msgid "Review and edit the host group set up by the provisioning wizard"
156
+ msgstr ""
157
+
158
+ msgid "Set up provisioning"
159
+ msgstr ""
160
+
161
+ msgid "Smart proxy"
162
+ msgstr ""
163
+
164
+ msgid "Some information about the location of installation media for the operating system used for provisioning is now required."
165
+ msgstr ""
166
+
167
+ msgid "Spacewalk hostname is missing"
168
+ msgstr ""
169
+
170
+ msgid "Subnet"
171
+ msgstr ""
172
+
173
+ msgid "Successfully associated OS %s."
174
+ msgstr ""
175
+
176
+ msgid "Successfully updated subnet %s."
177
+ msgstr ""
178
+
179
+ msgid "The DNS domain name to provision hosts into"
180
+ msgstr ""
181
+
182
+ msgid "The configuration set up is all accessible under the Infrastructure menu, e.g. Infrastructure > Subnets, and can be changed in the web interface. You can return to this set up process through <b>Infrastructure > Provisioning Setup</b> to change settings or add new provisioning capabilities."
183
+ msgstr ""
184
+
185
+ msgid "The following operating system will be configured for provisioning:"
186
+ msgstr ""
187
+
188
+ msgid "This wizard will help set up Foreman for full host provisioning. Before we begin, a few requirements will be verified."
189
+ msgstr ""
190
+
191
+ msgid "To provision hosts, some configuration values are needed for the provisioning subnet attached to the Foreman server."
192
+ msgstr ""
193
+
194
+ msgid "Type"
195
+ msgstr ""
196
+
197
+ msgid "Use an existing installation medium"
198
+ msgstr ""
199
+
200
+ msgid "Users of Spacewalk, Red Hat Network, or Red Hat Satellite 5 should enter an appropriate activation key below, otherwise leave blank."
201
+ msgstr ""