> If this is "designed", I'm not sure you need a bug;
>
Well, that's what we call an "enhancement bug"; bugs are not just about
defects in our environment.
> However, I'll explain how I dealt with this.
>
> I'm currently generating in stub file not-used method, with calls for
> each used string:
> .....
> this.tr("A1");
> this.tr("A2");
> this.tr("A3");
> this.tr("A4");
> ....
>
> And later, in code I'm using eval:
>
> var label = eval("this.tr(externalString);")
>
Yeah, that's what I thought.
> I'd propose that during generation, all occurences of
> this.tr(NOT_STRING)
> would provide warning, but not a fatal error.
>
I've opened a bug for this [1]. You can subscribe to it if you want to
be updated.
T.
[1] http://bugzilla.qooxdoo.org/show_bug.cgi?id=2639
> Anyway, thanks!
>
>
>
>> T.
>>
>> [1] http://demo.qooxdoo.org/current/apiviewer/#qx.locale.Manager~tr
>>
>> A.Yerenkow wrote:
>>
>>
>>> Hello all!
>>> I have a dynamic application, which make requests, and show results, in
>>> table, and I have for Column Names such code:
>>>
>>> listFields.push(application.tr(data.listFields[i].label));
>>>
>>> Yes, I understand that scripts are not telepaths, and can not determine
>>> which string here need to be translated not in runtime.
>>> So, questions:
>>> 1. python generate.py source/translation produce error:
>>> - Processing translation for 2 locales...
>>> !!! Could not extract translation from helper.GuiHelper!
>>> !!! Unsupported param of type variable at line 221
>>>
>>> and stops. do I need to use "eval". to hid from python fact that I'm
>>> going to use a translation here?
>>> Is this necessary to stop build process if such dynamic translation appear?
>>>
>>> 2. Do dynamic translation supported at all?
>>>
>>> 3. If I'm using "eval", translation works just fine. (Tested with 1
>>> language yet)
>>> Is this possible to use such code without eval, and "all would just
>>> works"? :)
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus
>>> on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>>
>>>
>>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel