From: Michael Tremer Date: Wed, 5 Jan 2011 16:23:34 +0000 (+0100) Subject: fireinfo: Only display name of the language (not the country). X-Git-Url: http://git.ipfire.org/?p=people%2Fshoehn%2Fipfire.org.git;a=commitdiff_plain;h=57fcb182eec623be7182486fe8c054d0778dc221 fireinfo: Only display name of the language (not the country). --- diff --git a/www/webapp/ui_modules.py b/www/webapp/ui_modules.py index ebbc19c..40f09b0 100644 --- a/www/webapp/ui_modules.py +++ b/www/webapp/ui_modules.py @@ -182,7 +182,7 @@ class StasyTableModule(UIModule): for k, v in items: for code, locale in locales.items(): if code.startswith(k): - k = locale["name"] + k = locale["name"].split()[0] _items.append((k, v)) items = _items