[Cmfcollectorng-develop] i18n - current status
Status: Alpha
Brought to you by:
ajung
|
From: Helge T. <he...@te...> - 2003-01-12 02:59:27
|
I've finally done some work on i18n now. The branch is tesdal-i18n-branch if anyone wants to take a look. Translating the German words isnt't that hard, you get a lot of help from the code, variables, the old collector and babelfish. Finding all the strings, changing templates and keeping track of changes in all files (I've made German potfile as I went along) was a lot more work. For pointers on how to set up i18n in CMF, you can take a look at http://plone.org/development/i18n/howto I briefly tested the German translation and it seems to translate, although I really haven't done a lot of testing. On to the dirty details: I've pretty much done the templates in the collectorng directory. What currently remains is: - Translating some help text, don't remember exactly which file it's in. - Templates in the collectorng1 directory - The popcalendar.js.dtml in collectorng has to be transformed to zpt, german text has to be found and translated < operators have to be handled Maybe consider a calendar popup like the one Plone uses, less JS. - Find and translate all the exceptions in the Python files. Exceptions like "sometext %s" % variable are harder to translate... Maybe call translation service/Localizer directly, Wankyou might have got this working in his NeoPortal. - Make the CollectorNGProperties.render method a macro instead to enable translation. - I'm not even sure if I have tested all the templates, some might be broken. And probably more... check it out to test and fix. I probably won't have much time until next weekend, but I hope it's enough for people to get started. -- Helge |