forked from sureshab/gingers390x
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathi18n.py
66 lines (59 loc) · 3.39 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
#
# Project Ginger S390x
#
# Copyright IBM, Corp. 2015
#
# 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 = {
"GS390XINVTYPE": _("Only supported type: '%(supported_type)s'."),
"GS390XINVINPUT": _("Invalid input. Reason = %(reason)s"),
"GS390XCMD0001E": _("Command failed. Command = %(command)s, RC = %(rc)s, "
"REASON = %(reason)s'."),
"GS390XREG0001E": _("Issue with regex. Reason = %(reason)s"),
"GS390XIOST001E": _("Failed to bring device online. Error = %(error)s"),
"GS390XIOST002E": _("Failed to add dasd-eckd device in dasd.conf file. Device = %(device)s"),
"GS390XIOST003E": _("Failed to remove device from dasd.conf file. Device = %(device)s"),
"GS390XIONW001E": _("Failed to bring network device %(device)s online. Error = %(error)s"),
"GS390XIONW002E": _("Failed to persist network device %(device)s in "
"ifcfg file %(ifcfg_file_path)s. Error = %(error)s"),
"GS390XIONW003E": _("Failed to bring network device %(device)s offline. Error = %(error)s"),
"GS390XIONW004E": _("Failed to remove ifcfg file %(ifcfg_file_path)s of network "
"device %(device)s. Error = %(error)s"),
"GS390XIONW005E": _("Failed to create ifcfg file %(ifcfg_file_path)s for "
"network device %(device)s. Error = %(error)s"),
"GS390XIOIG001E": _("Failed to retrieve devices in ignored list = %(error)s"),
"GS390XIOIG002E": _("Failed to remove devices from ignore list. "
"Failed Devices = %(failed_devices)s"),
"GS390XSTG00001": _("Failed to remove sg device, %(err)s"),
"GS390XSTG00002": _("Failed to remove LUN, %(err)s"),
"GS390XSTG00003": _("Failed to add LUN, %(err)s"),
"GS390XSTG00004": _("Failed to validate input, %(err)s"),
"GS390XSTG00005": _("Failed to HBA ID, %(err)s"),
"GS390XSTG00006": _("Failed to remoteWwpn or LUN ID, %(err)s"),
"GS390XSTG00007": _("Failed to get list of LUNs, %(err)s"),
"GS390XSTG00008": _("Failed to LUN info, %(path)s"),
"GS390XSTG00009": _("Lun scan is enabled. Cannot add/remote LUNs manually."),
"GS390XSTG00010": _("hbaId is required for adding a LUN"),
"GS390XSTG00011": _("wwpn is required for adding a LUN"),
"GS390XSTG00012": _("lunId is required for adding a LUN"),
"GS390XSTG00013": _("Unable to parse '/etc/zipl.conf, %(err)s"),
"GS390XSTG00014": _("Unable to find given param in '/etc/zipl.conf, %(param)s"),
"GS390XSTG00015": _("Unable to execute zipl, %(err)s"),
"GS390XSTG00016": _("Unable to uuid for tape device, %(err)s"),
"GS390XSTG00017": _("Unable to parse output of lstape, %(err)s"),
"GS390XSTG00017": _("Unable to execute lstape, %(err)s")
}