Thanks "Cajus Pollmeier". This is what i want.
and thanks tron7,Michal. thanks for your help.
On Sat, Mar 23, 2013 at 12:41 AM, Cajus Pollmeier [via qooxdoo] <
[email protected]> wrote:
> As tron7 and Michal stated it would be the best to get translated strings
> from
> your server. Especially if you've placeholders in your i18n strings.
>
> Sometimes there may be use cases where that is not reliable, i.e. we read
> some
> Qt ui definitions (which contain translateable strings) and render a GUI
> from
> that at run time. To skip server side string/i18n processing in these ui
> snippets, we let the web client retrieve a prepared locale definition and
> call
> addTranslation of the qx.locale.Manager.
>
> All you need in this kind of setup is building with:
>
> "qx.dynlocale" : ["on"]
>
> and fetch the translations dynamically from the server (i.e. on login).
> Here's
> some pseudo code:
>
> var locales = foobar.doFetchtTranslationsFromServerWithCurrentLocale();
> var lm = qx.locale.Manager.getInstance();
> lm.addTranslation(qx.locale.Manager.getInstance().getLocale(), locales);
>
> After that you can just "tr*" the messages as if they were in your .po
> files.
> Note that some people report performance issues with dynlocale set to "on"
> -
> but I'm not sure if this is still the case. Personally, I didn't notice
> any.
>
> Cajus
>
> Am Freitag, 22. März 2013, 07:58:41 schrieb baskar:
>
> > 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.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://qooxdoo.678.n2.nabble.com/OnDemand-Translation-for-JSON-response-tp7
> > 583124.html Sent from the qooxdoo mailing list archive at Nabble.com.
> >
> >
> ----------------------------------------------------------------------------
>
> > -- 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
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=7583128&i=0>
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> ------------------------------------------------------------------------------
>
> 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
> [hidden email] <http://user/SendEmail.jtp?type=node&node=7583128&i=1>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://qooxdoo.678.n2.nabble.com/OnDemand-Translation-for-JSON-response-tp7583124p7583128.html
> To unsubscribe from OnDemand Translation for JSON response, click
> here<http://qooxdoo.678.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7583124&code=b2ZmaWNpYWwuYmFza2FyQGdtYWlsLmNvbXw3NTgzMTI0fC0xMzAyNTM1NzEy>
> .
> NAML<http://qooxdoo.678.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21workgroup%3Aworkgroup.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/OnDemand-Translation-for-JSON-response-tp7583124p7583131.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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