Ian Bicking schrieb: > I don't expect this to be the case. FormEncode's code is not updated > much, and releases are not frequent. I don't want to change that. You
There has to be on release with the new i18n code in it. It would be ideal if a lot of translations would be in this release already. At the moment there is German in it. It would be best if people who consider to invest 1-2 hours to get their language supported should invest this time now! Basically you have to do (untestted): svn co http://svn.formencode.org/FormEncode/branches/gettext-enabled/ cd gettext-enabled/formencode/i18n mkdir <lang>/LC_MESSAGES cp FormEncode.pot <lang>/LC_MESSAGES/FormEncode.po emacs <lang>/LC_MESSAGES/FormEncode.po # or whatever editor you prefer #make the translation msgfmt.py <lang>/LC_MESSAGES/FormEncode.po TEST send the PO and MO files to: [EMAIL PROTECTED] DONE see also http://docs.python.org/lib/node738.html Optionally you can also add a test of your language to tests/test_i18n.py: ne = formencode.validators.NotEmpty() [...] def _test_lang(language, notemptytext): formencode.api.set_stdtranslation(languages=[language]) try: ne.to_python("") except formencode.api.Invalid, e: assert str(e) == notemptytext formencode.api.set_stdtranslation() #set back to defaults def test_de(): _test_lang("de", u"Bitte einen Wert eingeben") add: def test_<lang>(): _test_lang("<lang>", u"<translation of Not Empty Text in the language <lang>") -- Greg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

