]> git.ipfire.org Git - people/shoehn/ipfire.org.git/commitdiff
fireinfo: Only display name of the language (not the country).
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Jan 2011 16:23:34 +0000 (17:23 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Jan 2011 16:23:34 +0000 (17:23 +0100)
www/webapp/ui_modules.py

index ebbc19c3e4b3bec03a0a6a1be9b71b86de46e219..40f09b0a7a65be07d9adf2f1c987a5f3bfc0ef7a 100644 (file)
@@ -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