forked from kimchi-project/ginger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n.py
111 lines (100 loc) · 5.71 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
#
# 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"),
"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.")
}