The way I deal with labels in dynamically constructed forms it is to scan the
backend source code for translation strings (for example in PHP
gettext("..") / _("...");) and build a mock qooxdoo class containing all
these strings. Then, during the build jobs, these files will be included
into the translation system and you can use this.tr(var) with variables sent
by the backend.

/** auto-generated text follows **/
qx.Class.define("myapp.translateThis", {

construct : function()
{
    this.tr("Name");
    this.tr("Street");
    this.tr("Telephone");

}

});


Atamert Ölçgen wrote:
> 
> On Wednesday 07 January 2009 16:39:20 Roman Schmid wrote:
>> Thanks for your input.
>> Dynamically building the form from a map that comes from the server
>> sounds tempting :)
>> Too bad that the values (eg. label text) coming from the server won't be
>> wrapped by the translation features of qooxdoo...
> 
> Just a quick answer; it is possible to translate. Just take a look at the 
> Qooxdoo translation API.
> 
> But there is no way for Qooxdoo to discover translation keys, since they
> won't 
> be in the source. This is not a problem with Qooxdoo, this is a general 
> limitation of translation (please correct me if I'm wrong).
> 
> In short; If you can supply the translation strings, Qooxdoo will
> translate 
> for you.
> 
> 
> -- 
> Saygılarımla,
> Atamert Ölçgen
> 
>  -+-
>  --+
>  +++
> 
> www.muhuk.com
> muhuk.blogspot.com
> mu...@jabber.org
> 
> 
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Best-way-to-build-Forms--tp21332019p21351417.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to