forked from kimchi-project/ginger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n.py
275 lines (255 loc) · 14.4 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
#
# Project Ginger
#
# Copyright IBM, Corp. 2014
#
# 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 netmask '%(NETMASK)s', "
"'%(error)s'."),
"GINNET0020E": _("IP address is missing."),
"GINNET0021E": _("Subnet is missing."),
"GINNET0022E": _("Invalid boot protocol '%(mode)s', "),
"GINNET0023E": _("Boot protocol is missing."),
"GINNET0024E": _("Basic information of interface is missing."),
"GINNET0025E": _("Device name of interface is missing."),
"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 '4096'"),
"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'"),
"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 is a required string."),
"GINUSER0005E": _("User profile is required and should be one among "
"kimchiuser, virtuser or admin."),
"GINUSER0006E": _("Could not add user '%(user)s' to kvm group."),
"GINUSER0007E": _("Could not add user '%(user)s' to sudoers list."),
"GINUSER0008E": _("The user name '%(user)s' is already in use'."),
"GINUSER0009E": _("Could not create user '%(user)s'."),
"GINUSER0010E": _("Could not delete user '%(user)s'."),
"GINUSER0011E": _("User '%(user)s' does not exist."),
"GINUSER0012E": _("Could not delete group '%(group)s'"),
"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.'),
"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": _("Type required for creating a swap device."),
"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"),
"GINPART00001E": _("Fetching list of partitions failed"),
"GINPART00002E": _("Create partition failed"),
"GINPART00003E": _("lookup method of partition failed"),
"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"),
"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"),
"GINPV00006E": _("pvs command failed"),
"GINPV00007E": _("pvdisplay command failed"),
"GINPV00008E": _("pvcreate command failed"),
"GINPV00009E": _("pvremove command failed"),
"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": _("Formatting of DASD device failed"),
"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 DASD device"),
"GINDASD0009E": _("Require DASD device name to be formatted"),
"GINDASD0010E": _("Require block size for formatting DASD device"),
"GINDASDPAR0001E": _("Error in executing 'lsblk -Pbo' command"),
"GINDASDPAR0002E": _("Error while getting block device information"),
"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"),
"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")
}