Mustafa, look, .po files are a compile time concept only. Once your
application is built, they are not consulted anymore (You can tell by
looking at a build version: no .po file gets copied over). At run time,
only internal mappings from keys to message strings are used.

But you can add translation mappings at run time, just have a look at
the locale Manager ([1], look at the addTranslation method). Once added,
these mappings are then available with every this.tr() that references
the new key in the application.


T.

[1] http://demo.qooxdoo.org/current/apiviewer/#qx.locale.Manager

On 11/08/2010 02:48 AM, Mustafa Sak wrote:
> Hi List,
> 
>  
> 
> Does qooxdoo offers a translation method for text generated in runtime?
> I mean, I am getting phrases to translate from an ajax request to my
> app. So if I include the phrase/messageId into .po files, how to tell
> qx, to take a look on it?
> 
>  
> 
> this.tr(variable) just gets me an error.
> 
>  
> 
> Is there any concept to handle this nicely?
> 
>  
> 
> Regards Sak
> 
>  
> 
>  
> 
>  
> 
> *SAKsystems*
> 
> Inh. Mustafa Sak
> 
> Varrelmannstr. 16
> 
> 30453 Hannover
> 
>       
> 
> Tel.   +49 511 / 165 969 40
> 
> Fax   +49 511 / 165 969 49
> 
> Mobil +49 163 / 312 6144
> 
>       
> 
> http://www.saksys.de
> 
> [email protected] <mailto:[email protected]>
> 
> STEUER-Nr. 2613817458
> 
>  
> 
> 
> 
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a 
> Billion" shares his insights and actions to help propel your 
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> 
> 
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to