mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +01:00
Fix error message on invalid 'supybot.language' value
This commit is contained in:
parent
b374418c81
commit
8d1d4b84eb
@ -72,6 +72,8 @@ def import_conf():
|
||||
conf = __import__('supybot.conf').conf
|
||||
class Languages(conf.registry.OnlySomeStrings):
|
||||
validStrings = ['de', 'en', 'es', 'fi', 'fr', 'it']
|
||||
errormsg = 'Value should be a supported language (%s), not %%r' % (
|
||||
', '.join(validStrings))
|
||||
conf.registerGlobalValue(conf.supybot, 'language',
|
||||
Languages(currentLocale, """Determines the bot's default
|
||||
language if translations exist. Currently supported are: %s"""
|
||||
|
Loading…
Reference in New Issue
Block a user