[TIMOB-16600] Alloy: Cannot internationalize options of an OptionDialog
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | cb-tooling, defect |
Reporter | Matteo Landi |
Assignee | Unknown |
Created | 2014-03-02T10:30:27.000+0000 |
Updated | 2018-02-28T20:04:10.000+0000 |
Description
It seems like it is not possible to internationalize options while defining an OptionDialog using Alloy markup.
I tried this:
<OptionDialog id="end_ride_dialog" onClick="do_click_dialog" title="L('end_ride_dialog_title')" >
<Options>
<Option>L('end_ride_dialog_option_cancel')</Option>
<Option>L('end_ride_dialog_option_arrived')</Option>
</Options>
</OptionDialog>
And this (mind the quotes):
<OptionDialog id="end_ride_dialog" onClick="do_click_dialog" title="L('end_ride_dialog_title')" >
<Options>
<Option>"L('end_ride_dialog_option_cancel')"</Option>
<Option>"L('end_ride_dialog_option_arrived')"</Option>
</Options>
</OptionDialog>
But the dialog keeps showing bare strings (i.e. L('end_ride_dialog_option_cancel')
).
Attachments
File | Date | Size |
---|---|---|
broken-option-dialog.tgz | 2014-03-05T20:36:02.000+0000 | 636833 |
We would appreciate if you can provide a simple but runnable test case to reproduce the issue. We want to make sure that we reproduce the same issue that you are running into.
Please see the attached example. Let me know if you need anything else.
Moving it to engineering as I can reproduce the issue with the provided test case. Same functionality works fine with the following Titanium test case.
Moved to TIMOB since this can be reproduced using classic Titanium code. Possibly duplicates TIMOB-15376 also.