Amit Rana wrote:
> yes, we can edit the files but have to repeat the same code of calling
> function call tr() in all my files. Anyways, i got the point.
>   

Well, you might want to open a bug that these tr() errors might be 
turned into warnings, so the generation process continues.

Then, you could serve the first purpose by collecting all translatable 
strings in e.g. a dedicated method just calling tr(), e.g. like

  tstrings: function () {  // this function never needs to be called
    this.tr("first string");
    this.tr("second string");
    ...
  }

so your strings get put into .po files.

And then at other places where you just want to retrieve the translation 
at run time, you use tr() with variables. You just have to make sure 
that all values the variable might take represent known string literals.

> Now, that my internationalization feature has been added, I get an error
> when I try to change the language. This error appears only the 1st time.
> After I have changed the lang, I don't get the error (only the 1st time I
> switch the language). Its in Label.js file saying that content is null. I
> traced back the code and its :
>
> //Label.js
>
> _onChangeLocale : qx.core.Variant.select("qx.dynamicLocaleSwitch",
> {
>  "on" : function(e)
>  {
>  var content = this.getContent();
>  if (content.translate) {                     //Error line
>  this.setContent(content.translate());
>  }
>  },
>
> I have not used any label with a null content. So, not sure why this error.
>   

Thanks for tracking it down. We're just about to bring out 0.8.1. Check 
if the issue is still there with that version. If it is open a bug 
report. If possible, add a minimal code sample that reproduces the 
behaviour (that's more helpful to us than the ultimate framework class 
that throws the error).

Thanks,
Thomas


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to