From: Michael Tremer Date: Tue, 4 Jan 2011 19:10:11 +0000 (+0100) Subject: fireinfo: Display ranges in a more readable way. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d01fda07c88152ea8e0eef4122164ecd00d5af2;p=ipfire.org.git fireinfo: Display ranges in a more readable way. --- diff --git a/www/webapp/ui_modules.py b/www/webapp/ui_modules.py index a9d6aa92..eefb8426 100644 --- a/www/webapp/ui_modules.py +++ b/www/webapp/ui_modules.py @@ -166,6 +166,14 @@ class StasyTableModule(UIModule): _items.append((k, v)) items = _items + if items and type(items[0][0]) == type(()) : + _ = self.locale.translate + _items = [] + for k, v in items: + k = _("%s to %s") % k + _items.append((k, v)) + items = _items + return self.render_string("modules/stasy-table.html", items=items)