mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Internationalize two strings in Config
This commit is contained in:
parent
13b194a4fe
commit
a739511b73
@ -5,7 +5,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2010-10-16 12:34+CEST\n"
|
||||
"POT-Creation-Date: 2010-12-12 15:02+CET\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -15,6 +15,14 @@ msgstr ""
|
||||
"Generated-By: pygettext.py 1.5\n"
|
||||
|
||||
|
||||
#: plugin.py:103
|
||||
msgid "configuration variable"
|
||||
msgstr ""
|
||||
|
||||
#: plugin.py:109
|
||||
msgid "settable configuration variable"
|
||||
msgstr ""
|
||||
|
||||
#: plugin.py:136
|
||||
#, docstring
|
||||
msgid ""
|
||||
|
@ -100,13 +100,13 @@ def getConfigVar(irc, msg, args, state):
|
||||
state.args.append(group)
|
||||
del args[0]
|
||||
except registry.InvalidRegistryName, e:
|
||||
state.errorInvalid('configuration variable', str(e))
|
||||
state.errorInvalid(_('configuration variable'), str(e))
|
||||
addConverter('configVar', getConfigVar)
|
||||
|
||||
def getSettableConfigVar(irc, msg, args, state):
|
||||
getConfigVar(irc, msg, args, state)
|
||||
if not hasattr(state.args[-1], 'set'):
|
||||
state.errorInvalid('settable configuration variable',
|
||||
state.errorInvalid(_('settable configuration variable'),
|
||||
state.args[-1]._name)
|
||||
addConverter('settableConfigVar', getSettableConfigVar)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user