[TIMOB-14000] Internationalization: textid can only be set on create?
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | i18n, internationalization, label, textid |
Reporter | Carter Lathrop |
Assignee | Unknown |
Created | 2013-05-27T18:37:03.000+0000 |
Updated | 2018-02-28T20:04:09.000+0000 |
Description
It seams like - contrary to docs - the
textid
of a Label
can only be set on create:
var w = Ti.UI.createWindow({
backgroundColor: 'white'
});
var l = Ti.UI.createLabel({
color: 'black'
/* Works:
,textid: 'hello_world'//*/
});
w.add(l);
w.open();
/* Works:
l.text = L('hello_world');//*/
// Does not work
l.textid = 'hello_world';
/* Does not work:
l.setTextid('hello_world');//*/
/* Does not work:
l.applyProperties({
textid: 'hello_world'
});//*/
The i18n/en/strings.xml
for these tests was:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="hello_world">Hello world!</string>
</resources>
Why was this moved to Alloy? I don't see how it has anything to do with Alloy.