[ALOY-1052] Alloy: Support use of L in XML proxy elements
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-07-03T14:28:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.5.0 |
Components | I18N, XML |
Labels | alloy, proxy, qe-manualtest, view, xml |
Reporter | Fokke Zandbergen |
Assignee | Feon Sua Xin Miao |
Created | 2014-06-11T06:51:33.000+0000 |
Updated | 2014-08-25T17:27:56.000+0000 |
Description
Given the followingindex.xml
:
<Alloy>
<Window class="container">
<Label text="L('foo')" top="100" />
<TabbedBar id="planning_columns" top="200">
<Labels>
<Label title="L(foo)" />
<Label title="L('foo')" />
<Label titleid="foo" />
<Label class="foo" />
</Labels>
</TabbedBar>
</Window>
</Alloy>
Only the last <Label>
of the <TabbedBar>
, which has the title set using L('foo')
in TSS works. The first 2 show L(foo)
as titel and the 3rd one is empty, which is expected as [BarItemType](http://docs.appcelerator.com/titanium/latest/#!/api/BarItemType) doesn't support it (which of course it should, but thats a different story/ticket).
I'd expect L()
to work in proxy elements, just like they do in the regular elements like the first <Label>
above.
See the attached example project and screenshot.
Attachments
File | Date | Size |
---|---|---|
ios.png | 2014-07-02T22:26:02.000+0000 | 40259 |
iOS Simulator Screen shot 11 Jun 2014 08.45.36.png | 2014-06-11T06:51:33.000+0000 | 21807 |
l.zip | 2014-06-11T06:51:33.000+0000 | 5900757 |