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

TiAPI: Cannot add a whitespace at the end of string in i18n strings.xml

    Details

    • Story Points:
      1

      Description

      Use the following xml in the i18n en strings.xml file:

      <string name="share">There should be space </string>
      <string name="share2"> of that thing.</string>
      

      And use the following in app js:

      var win = Ti.UI.createWindow({
          layout: "vertical"
      });
      // build a string from the strings file that has built-in space.
      var s = L("share") + "!on each side!" + L("share2");
      alert(s);
      

      The result is different in 3.0 vs 2.1.3. In 3.0, it seems all whitespaces from strings from the language file are trimmed.
      The same behavior is seen in Android also.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                mpathak Meenakshi Pathak
                Reviewer:
                Allen Yeung
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code