I have removed the LocalizableString requirements for translation. See
earlier email to dev for more info.
So now _() methods return the translated unicode text.
Another change I made was to remove the gettext standin method I added.
This method let us transition from gettext to the MessageFactory API.
def gettextStandin(text):
return text
import __builtin__
__builtin__.__dict__['_'] = gettextStandin
To create translatable strings one must now import the
OSAFMessageFactory explicitly in his or her module.
Python 2.4.1 (#1, May 23 2005, 12:23:18)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1640)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from i18n import OSAFMessageFactory as _
>>> translation = _("I need translation")
>>> translation
u'I need translation'
>>> type(translation)
<type 'unicode'>
*** you will need to recreate your repository upon update to rev 6738 ****
-Brian
--
Brian Kirsch - Email Framework Engineer
Open Source Applications Foundation
543 Howard St. 5th Floor
San Francisco, CA 94105
(415) 946-3056
http://www.osafoundation.org
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev