I'm doing the RussianTranslation.

Contact me at MikeRovner <mrovner AT hotmail DOT com>.

1.3 patches:

some if image alt texts on RecentChanges are not translated

--- orig/MoinMoin/theme/classic.py
+++ mod/MoinMoin/theme/classic.py
@@ -22,44 +22,45 @@
     """
 
     name = "classic"
-
+    
+    _=lambda x: x # dummy function for i18n
     icons = {
         # key         alt                        icon filename      w   h
         # ------------------------------------------------------------------
         # navibar
-        'help':       ("%(page_help_contents)s", "moin-help.png",   12, 11),
-        'find':       ("%(page_find_page)s",     "moin-search.png", 12, 12),
-        'diff':       ("Diffs",                  "moin-diff.png",   15, 11),
-        'info':       ("Info",                   "moin-info.png",   12, 11),
-        'edit':       ("Edit",                   "moin-edit.png",   12, 12),
-        'unsubscribe':("Unsubscribe",            "moin-unsubscribe.png",  14, 10),
-        'subscribe':  ("Subscribe",              "moin-subscribe.png",14, 10),
-        'raw':        ("Raw",                    "moin-raw.png",    12, 13),
-        'xml':        ("XML",                    "moin-xml.png",    20, 13),
-        'print':      ("Print",                  "moin-print.png",  16, 14),
-        'view':       ("View",                   "moin-show.png",   12, 13),
-        'home':       ("Home",                   "moin-home.png",   13, 12),
-        'up':         ("Up",                     "moin-parent.png", 15, 13),
+        'help':       (  "%(page_help_contents)s", "moin-help.png",   12, 11),
+        'find':       (  "%(page_find_page)s",     "moin-search.png", 12, 12),
+        'diff':       (_("Diffs"),                 "moin-diff.png",   15, 11),
+        'info':       (_("Info"),                  "moin-info.png",   12, 11),
+        'edit':       (_("Edit"),                  "moin-edit.png",   12, 12),
+        'unsubscribe':(_("Unsubscribe"),           "moin-unsubscribe.png",  14, 10),
+        'subscribe':  (_("Subscribe"),             "moin-subscribe.png",14, 10),
+        'raw':        (_("Raw"),                   "moin-raw.png",    12, 13),
+        'xml':        (_("XML"),                   "moin-xml.png",    20, 13),
+        'print':      (_("Print"),                 "moin-print.png",  16, 14),
+        'view':       (_("View"),                  "moin-show.png",   12, 13),
+        'home':       (_("Home"),                  "moin-home.png",   13, 12),
+        'up':         (_("Up"),                    "moin-parent.png", 15, 13),
         # FileAttach (is this used?)
-        'attach':     ("%(attach_count)s",       "moin-attach.png",  7, 15),
+        'attach':     (  "%(attach_count)s",       "moin-attach.png",  7, 15),
         # RecentChanges
-        'rss':        ("[RSS]",                  "moin-rss.png",    36, 14),
-        'deleted':    ("[DELETED]",              "moin-deleted.png",60, 12),
-        'updated':    ("[UPDATED]",              "moin-updated.png",60, 12),
-        'new':        ("[NEW]",                  "moin-new.png",    31, 12),
-        'diffrc':     ("[DIFF]",                 "moin-diff.png",   15, 11),
+        'rss':        (_("[RSS]"),                 "moin-rss.png",    36, 14),
+        'deleted':    (_("[DELETED]"),             "moin-deleted.png",60, 12),
+        'updated':    (_("[UPDATED]"),             "moin-updated.png",60, 12),
+        'new':        (_("[NEW]"),                 "moin-new.png",    31, 12),
+        'diffrc':     (_("[DIFF]"),                "moin-diff.png",   15, 11),
         # General
-        'bottom':     ("[BOTTOM]",               "moin-bottom.png", 14, 10),
-        'top':        ("[TOP]",                  "moin-top.png",    14, 10),
-        'www':        ("[WWW]",                  "moin-www.png",    11, 11),
-        'mailto':     ("[MAILTO]",               "moin-email.png",  14, 10),
-        'news':       ("[NEWS]",                 "moin-news.png",   10, 11),
-        'telnet':     ("[TELNET]",               "moin-telnet.png", 10, 11),
-        'ftp':        ("[FTP]",                  "moin-ftp.png",    11, 11),
-        'file':       ("[FILE]",                 "moin-ftp.png",    11, 11),
+        'bottom':     (_("[BOTTOM]"),              "moin-bottom.png", 14, 10),
+        'top':        (_("[TOP]"),                 "moin-top.png",    14, 10),
+        'www':        (_("[WWW]"),                 "moin-www.png",    11, 11),
+        'mailto':     (_("[MAILTO]"),              "moin-email.png",  14, 10),
+        'news':       (_("[NEWS]"),                "moin-news.png",   10, 11),
+        'telnet':     (_("[TELNET]"),              "moin-telnet.png", 10, 11),
+        'ftp':        (_("[FTP]"),                 "moin-ftp.png",    11, 11),
+        'file':       (_("[FILE]"),                "moin-ftp.png",    11, 11),
         # search forms
-        'searchbutton': ("[?]",                  "moin-search.png", 12, 12),
-        'interwiki':  ("[%(wikitag)s]",          "moin-inter.png",  16, 16),
+        'searchbutton': (_("[?]"),                 "moin-search.png", 12, 12),
+        'interwiki':  (  "[%(wikitag)s]",          "moin-inter.png",  16, 16),
     }


CategoryHomepage

MoinMoin: MikeRovner (last edited 2007-10-29 19:20:57 by localhost)