From 8d1d4b84eb0e9f678e68df5ae0430ebdd07752ff Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 8 Jul 2023 16:42:15 +0200 Subject: [PATCH] Fix error message on invalid 'supybot.language' value --- src/i18n.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i18n.py b/src/i18n.py index 37bfb355b..0b26774ad 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -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"""