Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14000

Internationalization: textid can only be set on create?

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      SDK 3.1.0 GA
      iOS 6.x Simulator & Device

      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>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              clathrop Carter Lathrop
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-16588
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration