forked from kimchi-project/ginger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n.py
345 lines (321 loc) · 19.7 KB
/
i18n.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
#
# Projact Ginger
#
# Copyright IBM Corp, 2014-2016
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import gettext
_ = gettext.gettext
messages = {
"GINNET0001E": _("Failed to read /etc/resolv.conf because %(reason)s"),
"GINNET0002E": _("Failed to write /etc/resolv.conf because %(reason)s"),
"GINNET0003E": _("Invalid network parameters. Details: %(err)s"),
"GINNET0004E": _("Unable to update interface configuration. "
"Details: %(err)s"),
"GINNET0005E": _("Invalid parameter for DNS servers"),
"GINNET0006E": _("Invalid parameter for interface ip address"),
"GINNET0007E": _("Invalid parameter for interface netmask"),
"GINNET0008E": _("Invalid parameter for network gateway"),
"GINNET0009E": _("Unable to get default gateway: %(err)s"),
"GINNET0010E": _("Unable to delete default gateway: %(err)s"),
"GINNET0011E": _("Unable to set default gateway: %(err)s"),
"GINNET0012E": _("Invalid ip/netmask inputs. Both fields must be valid "
"ip/netmask values or both must be blank (will erase "
"the current IP/netmask)."),
"GINNET0013E": _("Interface %(name)s is not editable because it belongs "
"to a vlan or bridge"),
"GINNET0014E": _("%(name)s is not valid network interface"),
"GINNET0015E": _("Error getting information from ifcfg file: "
"'%(error)s'."),
"GINNET0016E": _("Unable to activate the interface on '%(name)s', "
"'%(error)s'."),
"GINNET0017E": _("Unable to deactivate the interface on '%(name)s', "
"'%(error)s'."),
"GINNET0018E": _("Invalid ipv4 address '%(ip)s', "
"'%(error)s'."),
"GINNET0019E": _("Invalid prefix '%(PREFIX)s', "
"'%(error)s'."),
"GINNET0020E": _("IP address is missing."),
"GINNET0021E": _("PREFIX missing."),
"GINNET0022E": _("Invalid boot protocol '%(mode)s', "),
"GINNET0023E": _("Boot protocol is missing for ipv4 settings."),
"GINNET0024E": _("Basic information of interface is missing."),
"GINNET0025E": _("Device name of interface is missing or invalid."),
"GINNET0026E": _("Missing ipv4 initialization key."),
"GINNET0027E": _("Missing ipv6 initialization key."),
"GINNET0028E": _("Invalid ipv6 address '%(ip)s', "
"'%(error)s'."),
"GINNET0029E": _("Missing ipv6 address information"),
"GINNET0030E": _("Exception getting the route information"),
"GINNET0032E": _("Bond info is missing"),
"GINNET0033E": _("'yes' or 'no' is allowed value for the BONDING_MASTER"),
"GINNET0034E": _("Bonding master is missing"),
"GINNET0036E": _("Slave(s) is missing"),
"GINNET0037E": _("Minimum one slave has to be given for the bond "
"interface"),
"GINNET0038E": _("Type is missing"),
"GINNET0040E": _("Invalid bonding option parameter"),
"GINNET0041E": _("'yes' or 'no' is allowed value for the VLAN"),
"GINNET0042E": _("Vlan info is missing"),
"GINNET0043E": _("Vlan is missing"),
"GINNET0044E": _("Vlan id is missing"),
"GINNET0045E": _("Physical device name is missing"),
"GINNET0046E": _("A VLAN slave cannot be configured on a bond with the "
"fail_over_mac=follow option"),
"GINNET0047E": _("For vlan creation over bond, slaves has to be up"),
"GINNET0048E": _("Module 802q is not loaded into kernel"),
"GINNET0049E": _("Failed to delete ifcfg file, Error: '%(error)s'"),
"GINNET0050E": _("VLAN id exceeds the ranges from '0' to '4095'"),
"GINNET0051E": _("Parent interface of type 'Bond' is not active"),
"GINNET0052E": _("Type is unknown"),
"GINNET0053E": _("Persistent file for slave '%(slave)s' is missing"),
"GINNET0055E": _("Interface '%(name)s' is neither Vlan nor "
"Bond to perform delete operation"),
"GINNET0056E": _("Failed to identify the type of interface"),
"GINNET0057E": _("Persistent file is not available for an interface, "
"'%(name)s'"),
"GINNET0058E": _("Failed to a delete token from ifcfg file, Error: "
"'%(error)s'"),
"GINNET0059E": _("Unable to bring up the interface '%(name)s', "
"'%(error)s'."),
"GINNET0060E": _("Unable to bring down the interface '%(name)s', "
"'%(error)s'."),
"GINNET0061E": _("Missing IPV4 addresses information"),
"GINNET0062E": _("The prefix value %(PREFIX)s is not in range 1-32"),
"GINNET0063E": _("Exception updating the interface settings"),
"GINNET0064E": _("Boot protocol is missing for ipv6 settings."),
"GINNET0065E": _("The prefix value %(PREFIX)s is not in range 1-128"),
"GINNET0066E": _("Given vlan id is not an integer type, Error: '%("
"error)s'"),
"GINNET0067E": _("Maximum length of device name is 15 characters only."),
"GINNET0068E": _("Device name is invalid."),
"GINNET0070E": _("Gateway information is missing."),
"GINNET0071E": _("Invalid prefix '%(PREFIX)s'."),
"GINNET0072E": _("Interface with the name '%(iface)s' already exists ."),
"GINNET0073E": _("'%(key)s' value is missing."),
"GINNET0074E": _("Exception updating/creating the ifcfg file."),
"GINNET0075E": _("At least one slave is "
"required for the bond interface"),
"GINNET0076E": _("Interface %(name)s loaded with driver %(module)s does not have an action %(action)s available."),
"GINNET0077E": _("SR-IOV action of mlx5 module requires 'num_vfs' argument."),
"GINNET0078E": _("SR-IOV enablement failed: required files under /sys directory not found."),
"GINNET0079E": _("SR-IOV enablement failed: num_vfs must be an integer."),
"GINNET0080E": _("Interface '%(name)s' doesn't exist. Please refresh the network list to fetch the latest list of interfaces"),
"GINNET0081E": _("Unable to create a new network script file for the interface %(name)s."),
"GINNET0082E": _("SR-IOV is not enabled in the firmware of the interface %(name)s."),
"GINNET0083E": _("Unable to set %(num_vf)s virtual functions for interface %(name)s. Maximum allowed in the firmware is %(max_vf)s."),
"GINUSER0001E": _("Specify name, password, group and profile for the new "
"user."),
"GINUSER0002E": _("User name is a required string."),
"GINUSER0003E": _("User password is a required string."),
"GINUSER0004E": _("User group should be non-empty string."),
"GINUSER0005E": _("User profile should be one among regularuser, virtuser or admin."),
"GINUSER0006E": _("Could not add user '%(user)s' to kvm group."),
"GINUSER0007E": _("Could not add user '%(user)s' to sudoers list, error: '%(err)s'."),
"GINUSER0008E": _("User/Login '%(user)s' already in use."),
"GINUSER0009E": _("There was a problem while creating user '%(user)s', error: '%(err)s'."),
"GINUSER0010E": _("There was a problem while deleting user '%(user)s', error: '%(err)s'."),
"GINUSER0011E": _("User '%(user)s' does not exist."),
"GINUSER0012E": _("There was a problem while deleting group '%(group)s', error: '%(err)s'."),
"GINUSER0013E": _("Failed to remove user '%(user)s' from sudoers list"),
"GINUSER0014E": _("There was a problem while creating group '%(group)s', error: %(err)s'."),
"GINUSER0015E": _("User 'no_login' should be boolean."),
'GINUSER0016E': _("Deletion is not supported for users found in '/etc/sudoers' file. User: %(user)s"),
'GINUSER0017E': _("Deletion is not supported for group found in '/etc/sudoers' file. Group: %(group)s"),
"GINUSER0018E": _("Group name '%(group)s' is already in use'."),
"GINUSER0019E": _("Failed to parse '/etc/sudoers' file. Error: %(error)s"),
"GINUSER0020E": _("System users are not supported"),
"GINUSER0021E": _("Failed to remove user '%(user)s' from group '%(group)s'. Error: '%(err)s'"),
"GINUSER0022E": _("There was a problem while reading users details, see log for details"),
"GINUSER0023E": _("There was a problem while fetching user profile, see log for details"),
"GINFW0001E": _("Cannot update system firmware while running VMs."),
"GINFW0002E": _("Firmware image unpack failed: rc = %(rc)s. "
"Details: %(err)s"),
"GINFW0003E": _("FW update failed: "
"No image file found in the package file."),
"GINFW0004E": _("Error flashing firmware. rc = %(rc)s. \
Please see /usr/sbin/update_flash for rc reasons."),
"GINFW0005E": _("Error commiting firmware. rc = %(rc)s. \
Ensure you are booted to the temporary side."),
"GINFW0006E": _("Error rejecting firmware. rc = %(rc)s. \
Ensure you are booted to the permanent side."),
"GINHBK0001E": _('Failed to create tar archive "%(name)s", cmd: '
'"%(cmd)s". Inspect error log for more information.'),
"GINHBK0002E": _('Failed to delete archive file "%(name)s".'),
"GINHBK0003E": _('Failed to create archive dir "%(dir)s". '
'Inspect error log for more information.'),
"GINHBK0004E": _('Description too long.'),
"GINHBK0005E": _('Please check the uniqueness of the paths or patterns.'),
"GINHBK0006E": _('Path or pattern is too long or too short.'),
"GINHBK0007E": _('Invalid days_ago number.'),
"GINHBK0008E": _('Invalid counts_ago number.'),
"GINHBK0009E": _('Failed to create archive "%(identity)s". '
'Inspect error log for more information.'),
"GINHBK0010E": _('Timeout while creating archive "%(identity)s", the '
'files might be too large for a configuration backup.'),
"GINHBK0011E": _('Archive creation task failed. "%(err)s".'),
"GINADAP0001E": _("SAN adapter '%(adapter)s' does not exist in the system."
),
"GINSEP0001E": _("Provide required parameters: hostname, port, community."
),
"GINSEP0002E": _("System hostname must be a valid string."),
"GINSEP0003E": _("System port number must be an integer between 1 and \
65535."),
"GINSEP0004E": _("SNMP community name must be a single word."),
"GINSEP0005E": _("Error retrieving SEP subscribers data: '%(error)s'."),
"GINSEP0006E": _("Hostname %(hostname)s not found."),
"GINSEP0007E": _("Error loading SEP subscriptions data from server."),
"GINSEP0008E": _("Error starting SEP service: '%(error)s'."),
"GINSEP0009E": _("Error stopping SEP service: '%(error)s'."),
"GINSEP0010E": _("Error subscribing SEP data to server: '%(error)s'."),
"GINSEP0011E": _("Error deleting subscription: '%(error)s'."),
"GINPOWER001E": _("Failed to retrieve power management profiles: \
Host OS does not support the tuned-adm package."),
"GINPOWER002E": _("Failed to retrieve power management profiles: \
Daemon 'tuned-adm' is not active."),
"GINPOWER003E": _("Failed to retrieve power management profiles: \
Package 'tuned-adm' is not installed."),
"GINPOWER004E": _("Error activating power saving profile %(profile)s."),
"GINFS00001E": _("Failed to retrieve details of the specified filesystem"),
"GINFS00002E": _("Failed to unmount the filesystems"),
"GINFS00003E": _("Parsing df output failed."),
"GINFS00004E": _("error in filesystem get list util"),
"GINFS00005E": _("error in filesystem info fetch util"),
"GINFS00006E": _("Error in executing 'df -hT' command"),
"GINFS00007E": _("Failed to mount the filesystem"),
"GINFS00008E": _("error in unmount util"),
"GINFS00009E": _("Require block dev to mount a filesystem"),
"GINFS00010E": _("Require mount point to mount a filesystem"),
"GINFS00011E": _("Unable to open fstab"),
"GINFS00012E": _("Unable to write fstab"),
"GINFS00013E": _("Failed to retrieve list of filesystems."),
"GINFS00014E": _("required server ip addr"),
"GINFS00015E": _("required remote share location"),
"GINFS00016E": _("required type as local or nfs"),
"GINFS00017E": _("Invalid type needs to be either local or nfs"),
"GINFS00018E": _("NFS mount failed"),
"GINSP00001E": _("File location required for creating a swap device."),
"GINSP00002E": _("Type required for creating a swap device."),
"GINSP00003E": _("Size is mandatory while creating file type swap device."),
"GINSP00004E": _("Incorrect swap type, only 'device' and 'file' are allowed."),
"GINSP00005E": _("Error creating a swap device. %(err)s "),
"GINSP00006E": _("Error deleting a swap file."),
"GINSP00007E": _("Error deleting a swap device. %(err)s"),
"GINSP00008E": _("Swap device not found. %(name)s"),
"GINSP00009E": _("Error deleting a swap file. %(err)s"),
"GINSP00010E": _("Error parsing /proc/swaps file. %(err)s"),
"GINSP00011E": _("Error creating a flat file. %(err)s"),
"GINSP00012E": _("Unable to format swap device. %(err)s"),
"GINSP00013E": _("Unable to activate swap device. %(err)s"),
"GINSP00014E": _("Unable to parse 'swapon -s' output. %(err)s"),
"GINSP00015E": _("Unable to get single swap device info. %(err)s"),
"GINSP00016E": _("Unable to activate swap device. %(err)s"),
"GINSP00017E": _("No partitions found for disk . %(disk)s"),
"GINSP00018E": _("Single swap device %(swap)s not found."),
"GINSP00019E": _("Unable to get single swap device info: directory /proc/swaps not found."),
"GINSP00020E": _("File already in use."),
"GINPART00001E": _("Fetching list of partitions failed"),
"GINPART00002E": _("Create partition failed"),
"GINPART00003E": _("Error retrieving information of partition %(name)s : %(err)s"),
"GINPART00004E": _("Partition already mounted"),
"GINPART00005E": _("Format partition failed"),
"GINPART00006E": _("Change type for partition failed"),
"GINPART00007E": _("Delete partition failed"),
"GINPART00008E": _("Required parameter device name"),
"GINPART00009E": _("Required parameter partition size"),
"GINPART00011E": _("fdisk command failed"),
"GINPART00012E": _("mkfs command failed"),
"GINPART00013E": _("No partitions found"),
"GINPART00014E": _("Partition %(name)s not found."),
"GINPV00001E": _("Required pv_name parameter"),
"GINPV00002E": _("Failed to create PV"),
"GINPV00003E": _("Failed to fetch PV list"),
"GINPV00004E": _("Failed to fetch PV details"),
"GINPV00005E": _("Failed to delete PV, error: %(err)s"),
"GINPV00006E": _("pvs command failed"),
"GINPV00007E": _("Unable to get information of device %(dev)s, error: %(err)s"),
"GINPV00008E": _("pvcreate command failed"),
"GINPV00009E": _("Remove failed: error: %(err)s"),
"GINPV00010E": _("Remove failed: device %(dev)s not found."),
"GINPV00011E": _("Unable to find device %(dev)s ."),
"GINVG00001E": _("Failed to create VG"),
"GINVG00002E": _("Failed to list VGs"),
"GINVG00003E": _("Failed to fetch VG details"),
"GINVG00004E": _("Failed to delete VG"),
"GINVG00005E": _("Failed to extend VG"),
"GINVG00006E": _("Failed to reduce VG"),
"GINVG00007E": _("vgs command failed"),
"GINVG00008E": _("vgs command for given VG failed"),
"GINVG00009E": _("vgcreate command failed"),
"GINVG00010E": _("vgremove command failed"),
"GINVG00011E": _("vgextend command failed"),
"GINVG00012E": _("vgreduce command failed"),
"GINVG00013E": _("Required vg_name parameter"),
"GINVG00014E": _("Required pv_paths parameter"),
"GINLV00001E": _("Required vg_name parameter"),
"GINLV00002E": _("Required size parameter"),
"GINLV00003E": _("Failed to create LV"),
"GINLV00004E": _("Failed to list LVs"),
"GINLV00005E": _("Failed to fetch LV details"),
"GINLV00006E": _("Failed to delete LV"),
"GINLV00007E": _("lvcreate command failed"),
"GINLV00008E": _("lvs command failed"),
"GINLV00009E": _("lvdisplay command failed"),
"GINLV00010E": _("lvremove command failed"),
"GINDASD0001E": _("Error in executing 'lsdasd -l' command"),
"GINDASD0002E": _("Error in executing 'lsdasd -l bus_id' command"),
"GINDASD0003E": _("Parsing lsdasd output failed"),
"GINDASD0004E": _("Failed to format %(name)s. Either format currently going on or device not available for format. Please try after sometime."),
"GINDASD0005E": _("Failed to retrieve list of DASD devices"),
"GINDASD0006E": _("Failed to retrieve details of the specified DASD device"),
"GINDASD0007E": _("Failed to find specified DASD device"),
"GINDASD0008E": _("Failed to format %(name)s. Either format currently going on or device not available for format"),
"GINDASD0009E": _("Require DASD device name to be formatted"),
"GINDASD0010E": _("Require block size for formatting DASD device"),
"GINDASD0011E": _("Invalid bus ID, %(bus_id)s"),
"GINDASD0012E": _("Error in executing 'lscss -d' command : %(err)s"),
"GINDASD0013E": _("Error in parsing 'lscss -d' command : %(err)s"),
"GINDASD0014E": _("No more than %(max_dasd_fmt)s concurrent DASD format operations are permitted."),
"GINDASDPAR0005E": _("Require name to create DASD device partition"),
"GINDASDPAR0006E": _("Require partition size to create DASD device partition"),
"GINDASDPAR0007E": _("Failed to create partition"),
"GINDASDPAR0008E": _("Failed to retrieve list of DASD partitions"),
"GINDASDPAR0009E": _("Failed to retrieve details of the specified DASD partition"),
"GINDASDPAR0010E": _("Failed to delete partition"),
"GINDASDPAR0011E": _("Invalid DASD partition, %(name)s"),
"GINDASDPAR0012E": _("DASD device %(name)s not found"),
"GINDASDPAR0013E": _("Size must be of type integer"),
"GINSYSMOD00001E": _("Error getting loaded module list: %(err)s"),
"GINSYSMOD00002E": _("Module %(module)s not found."),
"GINSYSMOD00003E": _("Error fetching info of module %(module)s, reason: %(err)s"),
"GINSYSMOD00004E": _("Error loading module %(module)s, reason: %(err)s"),
"GINSYSMOD00005E": _("Error unloading module %(module)s, reason: %(err)s"),
"GINOVS00001E": _("Error executing OVS command. Please check if 'openvswitch' service is running."),
"GINOVS00002E": _("Error executing OVS command: %(err)s"),
"GINOVS00003E": _("Error creating OVS bridge %(name)s. OVS bridge already exists."),
"GINOVS00004E": _("Error retrieving OVS bridge %(name)s. OVS bridge does not exist."),
"GINOVS00005E": _("Error adding port %(port)s in bridge %(name)s. Port already exists."),
"GINOVS00006E": _("Unable to create bond with less than two interfaces."),
"GINOVS00007E": _("Bridge %(bridge)s does not have a bond named %(bond)s."),
"GINOVS00008E": _("Interface %(iface)s not found in openvswitch database."),
"GINSD00001E": _("Error executing 'ls -l /dev/disk/by-id, %(err)s"),
"GINSD00002E": _("Error executing 'lsblk -Po, %(err)s"),
"GINSD00003E": _("Error parsing 'ls -l /dev/disk/by-id', %(err)s"),
"GINSD00004E": _("Error parsing 'lsblk -Po', %(err)s"),
"GINSD00005E": _("Error getting list of storage devices, %(err)s"),
"GINSD00006E": _("Error getting bus id of DASD device, %(err)s"),
"GINSERV00001E": _("Error executing SystemD command %(cmd)s, reason: %(err)s"),
"GINSERV00002E": _("Service name %(name)s not found.")
}