On 03/22/2013 03:58 PM, baskar wrote:
> Hi all,
> I am not well in qooxdoo translation.. By reading it documents i think it
> requires .PO files or something to give translated strings for application
> with the help of generate.py script... is my understanding is correct?
>
> Ok. Now my question is
>
> I have an application, which i want to translate text from the JSON
> response, on demand.

As Michael wrote, you need to go through some hoops. The server needs to 
send translation keys in its data, so the client could do the translation.

In order for the client to do the translation, it'd need to know all the 
potential translation keys in advance. This can be achieved e.g. by 
adding all keys in marktr() calls in your class code (as Michal 
indicated). You could then extract the keys to .po files (with 
generate.py translation), add translations to the .po files, then 
generate your application. Make sure to adjust the LOCALES config macro 
to cover all the languages you want to support. Then the client could 
translate the strings sent from the server.

T.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to