Dear Cajus and Romeo,

Thank you for your help. We will put both your suggestions into 
practice, that is a. increase our usage of addTranslation() whenever 
possible and b. fallback to marktr(), as optimized in the defer part of 
a separate class.

Do you believe that filling a feature request in Bugzilla for

> An option in generator.py that includes all .po file content regardless
> of message id existence


will get some attention from the QX developers? It might be easy to 
integrate in the rewrite of generate.py.

Regards,
George



On 14/04/2015 04:22 μμ, Romeo Kenfack Tsakem wrote:
> Hi Nikolaidis,
>
> qooxdoo does not have a built-in way to handle dynamic translations.
> The workaround you are using is one way to deal with that issue. An 
> optimization
> would be to define a class with your translation ids in the "defer" function.
>
> You might also use the solution provided by Cajus
>
>
> Regards,
> Romeo
>
> -----Ursprüngliche Nachricht-----
> Von: Cajus Pollmeier [mailto:pollme...@gonicus.de]
> Gesendet: Dienstag, 14. April 2015 14:37
> An: qooxdoo Development
> Betreff: Re: [qooxdoo-devel] Work around translation key discovery of 
> generator.py
>
> I'm not sure if I understand the problem correctly. Here's what we do in an 
> application with the need for dynamic localization:
>
> We're loading i18n messages from a backend and feed them into the current 
> translation using the "addTranslation" method of qx.locale.Manager.
>
> The code hasn't been updated for years, but you can basically see it
> here:
>
> https://github.com/gonicus/gosa/blob/master/source/class/gosa/Application.js#L211
>
> Maybe it helps.
>
> Cheers,
> Cajus
>

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to