diff MoinMoin/stats/languages.py @ 3122:a1322262398a

refactored _() getText calls to match new api
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 27 Feb 2008 00:23:46 +0100
parents af5872a8f022
children 2a3a6cb34e45
line wrap: on
line diff
--- a/MoinMoin/stats/languages.py	Tue Feb 26 22:40:33 2008 +0100
+++ b/MoinMoin/stats/languages.py	Wed Feb 27 00:23:46 2008 +0100
@@ -54,14 +54,14 @@
 
 
     languages = TupleDataset()
-    languages.columns = [Column('language', label=_("Language", formatted=False), align='left'),
+    languages.columns = [Column('language', label=_("Language"), align='left'),
                          Column('value', label='%', align='right')]
 
     cnt_printed = 0
     data = data[:10]
 
     # Preparing "<Browser setting>"
-    browserlang = _('<Browser setting>', formatted=False)
+    browserlang = _('<Browser setting>')
     browserlang = browserlang[1:len(browserlang) - 1].capitalize()
     if total:
         for cnt, lang in data:
@@ -79,7 +79,7 @@
             except UnicodeError:
                 pass
         if total > cnt_printed:
-            languages.addRow((_('Others', formatted=False), "%(percent).2f%% (%(count)d)" % {
+            languages.addRow((_('Others'), "%(percent).2f%% (%(count)d)" % {
                 'percent': 100.0 * (total - cnt_printed) / total,
                 'count': total - cnt_printed}))