diff MoinMoin/macro/__init__.py @ 684:9fb4124ea499

use python's gettext module and binary *.mo files, cache metadata directly from the modular translation files
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 22 May 2006 00:09:50 +0200
parents 016a8a3ef354
children 15c55ecd7ccb
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py	Sun May 21 18:18:06 2006 +0200
+++ b/MoinMoin/macro/__init__.py	Mon May 22 00:09:50 2006 +0200
@@ -33,7 +33,6 @@
          "Icon", "PageList", "Date", "DateTime", "Anchor", "MailTo", "GetVal",
          "TemplateList",
 ]
-names.extend(i18n.languages.keys())
 
 #############################################################################
 ### Helpers
@@ -44,7 +43,9 @@
         return cfg.macro_names
     else:
         lnames = names[:]
+        lnames.extend(i18n.languages.keys())
         lnames.extend(wikiutil.getPlugins('macro', cfg))
+        cfg.macro_names = lnames # remember it
         return lnames
 
 def _make_index_key(index_letters, additional_html=""):