forked from kimchi-project/ginger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi18n.py
150 lines (137 loc) · 8.04 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
#
# 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'."),
"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": _("Require persistant value to mount a filesystem"),
"GINFS00012E": _("Unable to open fstab"),
"GINFS00013E": _("Unable to write fstab"),
"GINFS00014E": _("value needs to be a boolean"),
"GINFS00015E": _("Failed to retrieve list of filesystems."),
"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"),
"GINDASDPAR0003E": _("Creation of DASD partition failed"),
"GINDASDPAR0004E": _("Deletion of DASD partition failed"),
"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")
}