Friday 19 December 2008 1:48:48 pm
Hi all, I'm currently building up a new multi-language website and I've to customize both some system messages (es. in login page) and some custom messages. Now: with the current system I insert a string and mark it with i18n, then I go to .ts file and create the relative voice (equal to my string). Then repeat this operation with all .ts files for each language.
This system sucks for many causes:
1. If I have to modify it later, I must modify the marked string in all .ts files
2. The same message has often to be modified:
- for native languages directly by the editors (in order to improve it) - for translating strings by the translation agency (often an external agency) This is very uncomfortable because I have to manage the different versions and modifications on different .ts files, and I send files by email to many people. In addition always the editors (or translation agency) that write the text has not technical skills for use QT or other xml editor. The result is that many messages remain in technical language (always different from human language provide by an editor :-) and many translations uncompleted. What would be a great solution? Just to move the translation system to admin interface as "ezcontentobject". I tried to do this by creating a "Translation" class and give it a "text" attribute. In this way I can create several objects, call it directly from code as ezcontentobject and place in tpl without think anything about the translation or message to insert. On the other side I give to my customers and translation agency, the possibility to modify it simply from admin interface (using the provided translation mechanism for objects) without learn how to handle a .ts file. We had a great improvement with this system in order to provide more accurate messages in the web site and to make easy the manage messages translation. I think this is a solution quite better than original system and I hope this idea could be help others eZ users. At the same time let me invite eZ developers team to provide a build-in mechanism (more sophisticated than a Class) which could be substitute gradually the actual i18n system with the hack described.
Best regards, Maurizio Betti
Maurizio Betti
http://www.arsweb.it
http://www.hospes.it
|