2010/7/26 thron7 <[email protected]>
>
> > One of the most frequent requests, even from customers not wanting to
> > have translations in a database, was that text files should be
> > external to the compressed qooxdoo application. They often need to
> > send out translation files to different translators, specialized in
> > different languages, add new translations without redeploying the
> > app, and the like. Neither keeping translations in a database, nor
> > having them compiled into the large qooxdoo-generated JS is an
> > option.
>
> Our concept is that translations are maintained in .po files (in the
> source/translation/ directory). But they have to be in place at build
> time, to check what is in sync with the current source code. There is no
> concept for adding translations or entire languages after the app has
> been generated. But you can have translations generated in separate
> files, so they don't blow up the code files.
>

I think at this point, the people requesting more flexibility with the
translation system, are very well aware of how it currently works.
It just isn't very helpfull in the majority of use-cases.

Sounds interesting, although you would probably implement custom
> translators better by subclassing, rather than by a stack.
>

The most mininal changes so we can hook in the more common use-cases, would
be:

1. Don't complain about using expressions rather than constants (discussed
before: the generator should never block this)

So, this should be legal code in the eyes of the generator.

  this.tr('hello');

2. Allow us to 'force-feed' translation dynamically at run-time. Something
very similar to:

    qx.translation.Manager.setTranslation('nl', 'hello','hallo');

This would automatically update all the strings marked at
this.tr('hello');if the locale is set to 'nl'
Give us that, and we can easily plug in our own systems.

-- Greetings
-- Ralf ( @ gong.nl )
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to