opental-checkins
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OpenTAL-checkins] opental/OpenPTi18n i18n_handler.py


From: Fernando Lalo Martins
Subject: [OpenTAL-checkins] opental/OpenPTi18n i18n_handler.py
Date: Wed, 29 Jan 2003 17:29:59 -0500

CVSROOT:        /cvsroot/opental
Module name:    opental
Changes by:     Fernando Lalo Martins <address@hidden>  03/01/29 17:29:59

Modified files:
        OpenPTi18n     : i18n_handler.py 

Log message:
        there is no context.engine anymore; also, target language must be 
transformed to fit our standards

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/OpenPTi18n/i18n_handler.py.diff?tr1=1.20&tr2=1.21&r1=text&r2=text

Patches:
Index: opental/OpenPTi18n/i18n_handler.py
diff -u opental/OpenPTi18n/i18n_handler.py:1.20 
opental/OpenPTi18n/i18n_handler.py:1.21
--- opental/OpenPTi18n/i18n_handler.py:1.20     Mon Jan 27 14:54:54 2003
+++ opental/OpenPTi18n/i18n_handler.py  Wed Jan 29 17:29:59 2003
@@ -77,7 +77,7 @@
         #FIXME: domain is TALES?
         if info.has_key('translate') or info.has_key('attributes'):
             if info.has_key('target'):
-                target = context.engine.evaluate(info['target'])
+                target = context.evaluate(info['target'])
             else:
                 target = None
         if info.has_key('translate'):
@@ -90,7 +90,7 @@
             if msgid == '':
                 msgid = default
             if info.has_key('data'):
-                data = context.engine.evaluate(info['data'])
+                data = context.evaluate(info['data']).replace('_', '-').lower()
             elif names:
                 data = names
             else:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]