forked from kimchi-project/gingerbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n.py
131 lines (121 loc) · 8.13 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
#
# Project Ginger Base
#
# Copyright IBM Corp, 2015-2016
#
# Code derived from Project Kimchi
#
# 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 = {
'GGBAPI0001E': _('Unknown parameter %(value)s'),
'GGBUTILS0001E': _('Unable to reach %(url)s. Make sure it is accessible and try again.'),
'GGBDR0001E': _('Debug report %(name)s does not exist'),
'GGBDR0002E': _('Debug report tool not found in system'),
'GGBDR0003E': _('Unable to create debug report %(name)s. Details: %(err)s.'),
'GGBDR0004E': _('Can not find any sosreport with the given name %(name)s with %(retcode)s.'),
'GGBDR0005E': _('Unable to generate debug report %(name)s. Details: %(err)s'),
'GGBDR0006E': _('You should give a name for the debug report file.'),
'GGBDR0007E': _("Debug report name must be a string. Only letters, digits, underscore ('_') and "
"hyphen ('-') are allowed."),
'GGBDR0008E': _("The debug report with specified name '%(name)s' already exists. Please use another one."),
'GGBDR0009E': _('Unable to create dbginfo report with %(retcode)s. Details: %(err)s'),
'GGBDR0010E': _('Unable to compress the final debug report tar file with %(retcode)s. Details: %(error)s'),
'GGBDR0011E': _('Unable to generate final debug report %(name)s. Details: %(err)s'),
'GGBDR0012E': _('Can not find any dbginforeport with the %(retcode)s. Details: %(err)s'),
'GGBDR0013E': _("Debug report name must be a non-empty string. Only letters, digits, underscore ('_') and "
"hyphen ('-') are allowed."),
'GGBHOST0001E': _('Unable to shutdown host machine as there are running virtual machines'),
'GGBHOST0002E': _('Unable to reboot host machine as there are running virtual machines'),
'GGBHOST0003E': _('There may be virtual machines running on the host'),
'GGBHOST0005E': _('When specifying CPU topology, each element must be an integer greater than zero.'),
'GGBPKGUPD0001E': _('No packages marked for update'),
'GGBPKGUPD0002E': _('Package %(name)s is not marked to be updated.'),
'GGBPKGUPD0003E': _('Error while getting packages marked to be updated. Details: %(err)s'),
'GGBPKGUPD0004E': _('There is no compatible package manager for this system.'),
'GGBPKGUPD0006E': _('Error while getting package information. Details: %(err)s'),
'GGBREPOS0001E': _('YUM Repository ID must be one word only string.'),
'GGBREPOS0002E': _('Repository URL must be an http://, ftp:// or file:// URL.'),
'GGBREPOS0003E': _('Repository configuration is a dictionary with specific values according to repository type.'),
'GGBREPOS0004E': _('Distribution to DEB repository must be a string'),
'GGBREPOS0005E': _('Components to DEB repository must be listed in a array'),
'GGBREPOS0006E': _('Components to DEB repository must be a string'),
'GGBREPOS0007E': _('Mirror list to repository must be a string'),
'GGBREPOS0008E': _('YUM Repository name must be string.'),
'GGBREPOS0009E': _('GPG check must be a boolean value.'),
'GGBREPOS0010E': _('GPG key must be a URL pointing to the ASCII-armored file.'),
'GGBREPOS0011E': _('Could not update repository %(repo_id)s.'),
'GGBREPOS0012E': _('Repository %(repo_id)s does not exist.'),
'GGBREPOS0013E': _('Specify repository base URL, mirror list or metalink in order to create or '
'update a YUM repository.'),
'GGBREPOS0014E': _('Repository management tool was not recognized for your system.'),
'GGBREPOS0015E': _('Repository %(repo_id)s is already enabled.'),
'GGBREPOS0016E': _('Repository %(repo_id)s is already disabled.'),
'GGBREPOS0017E': _('Could not remove repository %(repo_id)s.'),
'GGBREPOS0018E': _('Could not write repository configuration file %(repo_file)s'),
'GGBREPOS0019E': _('Specify repository distribution in order to create a DEB repository.'),
'GGBREPOS0020E': _('Could not enable repository %(repo_id)s.'),
'GGBREPOS0021E': _('Could not disable repository %(repo_id)s.'),
'GGBREPOS0022E': _('YUM Repository ID already exists'),
'GGBREPOS0023E': _('YUM Repository name must be a string'),
'GGBREPOS0024E': _("Unable to list repositories. Details: '%(err)s'"),
'GGBREPOS0025E': _("Unable to retrieve repository information. Details: '%(err)s'"),
'GGBREPOS0026E': _("Unable to add repository. Details: '%(err)s'"),
'GGBREPOS0027E': _("Unable to remove repository. Details: '%(err)s'"),
'GGBREPOS0028E': _("Configuration items: '%(items)s' are not supported by repository manager"),
'GGBREPOS0029E': _('Repository metalink must be an http://, ftp:// or file:// URL.'),
'GGBREPOS0030E': _('Cannot specify mirrorlist and metalink at the same time.'),
'GGBCPUINF0001E': _('The number of vCPUs is too large for this system.'),
'GGBCPUINF0002E': _('Invalid vCPU/topology combination.'),
'GGBCPUINF0003E': _('This host (or current configuration) does not allow CPU topology.'),
'GGBCPUINF0004E': _('This host (or current configuration) does not allow to fetch lscpu details.'),
'GGBCPUINF0005E': _('This host (or current configuration) does not provide Socket(s) information.'),
'GGBCPUINF0006E': _('This host (or current configuration) does not provide Core(s) per socket information.'),
'GGBCPUINF0007E': _('This host (or current configuration) does not provide Thread(s) per core information.'),
'GGBDISK00001E': _('Error while accessing dev mapper device, %(err)s'),
'GGBDISK00002E': _('Block device not found.'),
'GGBDISK00003E': _('Block device %(device)s not found.'),
'GGBDISK00004E': _('Unable to retrieve LVM information. Details: %(err)s'),
'GINSMT0001E': _('Error occurred while fetching current smt settings.'),
'GINSMT0002E': _('Error occurred while enabling SMT in the zipl file.'),
'GINSMT0003E': _("Execution of command failed with '%(error)s'. "),
'GINSMT0004E': _('Failed due to invalid SMT value.'),
'GINSMT0005E': _('Error occurred while disabling SMT or SMT is already disabled.'),
'GINSMT0006E': _('Error occurred while checking for SMT support or SMT is not supported.'),
'GINSMT0007E': _('SMT %(name)s is supported only for s390x architecture.'),
'GINSMT0008E': _("Error occurred in execution of zipl command '%(error)s'."),
'GINSMT0009E': _('Error occurred in execution of hyptop command while'
" fetching the processor information '%(error)s'."),
'GINSMT0010E': _('Error occurred in fetching smt status.'),
'GINSMT0011E': _('Error occurred in fetching persisted smt settings.'),
'GINSMT0012E': _('Zipl file does not exist.'),
'GINSMT0013E': _("SMT is not supported on '%(name)s' architecture."),
# These messages (ending with L) are for user log purposes
'GGBDR0001L': _("Create host debug report '%(name)s'"),
'GGBDR0002L': _("Update host debug report '%(ident)s'"),
'GGBDR0003L': _("Remove host debug report '%(ident)s'"),
'GGBHOST0001L': _('Reboot host'),
'GGBHOST0002L': _('Shutdown host'),
'GGBPKGUPD0001L': _('Update host software'),
'GGBPKGUPD0002L': _("Update package '%(ident)s'"),
'GGBREPOS0001L': _("Add host software repository '%(repo_id)s'"),
'GGBREPOS0002L': _("Update host software repository '%(ident)s'"),
'GGBREPOS0003L': _("Remove host software repository '%(ident)s'"),
'GGBREPOS0004L': _("Enable host software repository '%(ident)s'"),
'GGBREPOS0005L': _("Disable host software repository '%(ident)s'"),
'GINSMT0001L': _('Enabled SMT.'),
'GINSMT0002L': _('Disabled SMT.')
}