-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathi18n.py
93 lines (83 loc) · 5.23 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
#
# Project Ginger S390x
#
# Copyright IBM Corp, 2015-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 = {
"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 %(device)s 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"),
"GS390XIOST004E": _("Failed to bring device %(device)s offline. Error = %(error)s"),
"GS390XIOST005E": _("Failed to add zfcp device in zfcp.conf file. Device = %(device)s"),
"GS390XIOST006E": _("Failed to remove device from zfcp.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"),
"GS390XIONW006E": _("Network device %(device)s not found"),
"GS390XIONW007E": _("Updating osa port number is valid only for configured OSA Express network card"),
"GS390XIONW008E": _("Failed to configure osa port for OSA Express network card '%(device)s. Error: %(error)s' "),
"GS390XIONW009E": _("Invalid OSA port number. OSA port number should be integer - either 0 or 1 "),
"GS390XIONW010E": _("OSA port '%(osa_portno)s' is not available for OSA Express card '%(interface)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/remove 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 parse output of lstape, %(err)s"),
"GS390XSTG00017": _("Unable to execute lstape, %(err)s"),
"GS390XSTG0018E": _("Unable to remove multipath device, %(err)s"),
"GS390XSTG00019": _("Failed to enable lunscanning in current zfcp module, %(err)s"),
"GS390XSTG00021": _("Unable to get sg dev for discovery lun, %(err)s"),
"GS390XSTG00022": _("Invalid lun path provided"),
"GS390XSTG00023": _("Storage device %(device)s not found"),
# These messages (ending with L) are for user log purposes
"GS390XIOIG0001L": _("Remove i/o devices '%(devices)s' from ignore list"),
"GS390XIONW0001L": _("Configure network i/o device '%(ident)s' with osa port '%(osa_portno)s'"),
"GS390XIONW0002L": _("Un-configure network i/o device '%(ident)s'"),
"GS390XIONW0003L": _("Update action for network i/o device '%(ident)s'"),
"GS390XIOST0001L": _("Bring storage i/o device '%(ident)s' online"),
"GS390XIOST0002L": _("Bring storage i/o device '%(ident)s' offline"),
"GS390XSTG0001L": _("Enable lun scan"),
"GS390XSTG0002L": _("Disable lun scan"),
"GS390XSTG0003L": _("Trigger lun scan"),
"GS390XSTG0004L": _("Add lun '%(hbaId)s' : '%(remoteWwpn)s': '%(lunId)s'"),
"GS390XSTG0005L": _("Remove lun '%(ident)s'"),
}