{ "id": "63237", "key": "TIMOB-2605", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:35.000+0000", "created": "2011-04-15T03:24:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "localization", "release-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:35.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

I'm working with a customer that is having the same issue I am\nhaving with using localization. Kevin W helped troubleshoot it with\nme. We walked through the identical same steps and it worked for\nhim but not myself nor the customer. Tested on 1.5.0 GC and\n1.5.1.

\n

Attached is the project I was tweaking on trying to get it to\nwork. Kevin had basically the same project and it worked for\nhim.

\n

the getString() always defaulted to the second arguement (The\nfallback text).

\n

Any ideas on this one?

{html}", "attachment": [ { "id": "18172", "filename": "i18n-wtf.zip", "author": { "name": "jacquescrocker", "key": "jacquescrocker", "displayName": "Jacques Crocker", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:13.000+0000", "size": 855907, "mimeType": "application/zip" }, { "id": "18173", "filename": "localization-test.zip", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-04-15T03:24:21.000+0000", "size": 18641533, "mimeType": "application/zip" } ], "flagged": false, "summary": "Localization not setting in some instances", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "128943", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "{html}

Forgot to mention. Customer ticket located here: http://developer.appcelerator.com/helpdesk/view/60311

{html}", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-04-15T03:24:26.000+0000", "updated": "2011-04-15T03:24:26.000+0000" }, { "id": "128944", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Unable to duplicate this. Could be a TiDev issue of some kind -\nI built off of the command line using that script. master/HEAD, iOS\n4.2, simulator.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:26.000+0000", "updated": "2011-04-15T03:24:26.000+0000" }, { "id": "128945", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Gonna bump this to needs-more-info and post a possible\nworkaround on the HD ticket.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:27.000+0000", "updated": "2011-04-15T03:24:27.000+0000" }, { "id": "128946", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "{html}

Hi Steve,
\nOk so I spent several hours this morning trying to debug this. I\nnow think it's an issue with Titanium Developer. Here are the steps\nI took this morning:

\n
    \n
  1. Got the new builds.
  2. \n
  3. Killed the build folder in the project and re-ran. Same\nproblem.
  4. \n
  5. Deleted the project and re-created it in it's place (note, all\nmy test apps I put in /rickblalock/Appcelerator_Support/).
  6. \n
  7. When creating the new project I used the SAME APP ID - After\nbuilding, it didn't work.
  8. \n
  9. Deleted project. I then created a project in the same folder\nwith a DIFFERENT APP ID name. Localization worked.
  10. \n
  11. Deleted project. I then created a project outside the folder\n(put it in a folder on my desktop) with a different app id name.\nLocalization worked.
  12. \n
  13. Deleted project. I then created a project outside the folder\n(put it in a folder on my desktop) with the SAME APP ID.\nLocalization worked.
  14. \n
  15. Deleted project. I then created a project inside the folder I\nhad before with the SAME APP ID NAME. This time, localization\nworked!
  16. \n
\n

So my assumption is it's an issue with Titanium Developer. I'm\nnot familiar with how Ti Dev works enough to make a judgement call\non this.

{html}", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-04-15T03:24:27.000+0000", "updated": "2011-04-15T03:24:27.000+0000" }, { "id": "128947", "author": { "name": "bert", "key": "bert", "displayName": "Bert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I found that if I tried to use localization on a project\noriginally created with 1.4.x branch of the SDK you would run into\nthese issues.

\n

The key to getting it to work is to delete the build directory\nand touch the tiapp.xml in a text editor. I also copied over the\nnew tags from a tiapp.xml created by the developer using the 1.5\nSDK. After all that, it worked fine for me.

{html}", "updateAuthor": { "name": "bert", "key": "bert", "displayName": "Bert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:27.000+0000", "updated": "2011-04-15T03:24:27.000+0000" }, { "id": "128948", "author": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hey Guys,

\n
\n  I'm also experiencing this issue and it's intermittent.  Sometimes the localized strings are displayed after a build but most of the time they are not.  When it does work on the simulator, it never works deploying to the device.  I took the sample project attached to this ticket and tried to build, the localization doesn't work.  Tried to kill the build directory, retouch tiapp.xml, diff'd the xml structure with another 1.5.1 project, etc., no luck.  Then I created a new project, copied in the i18n directory manually and everything worked.  Was able to create three additional sample projects this way and every time the localization works.  If there are any log files or anything I can provide to help you troubleshoot the ticket, please let me know.  Thanks!\n
\n

Andreas

{html}", "updateAuthor": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:27.000+0000", "updated": "2011-04-15T03:24:27.000+0000" }, { "id": "128949", "author": { "name": "jacquescrocker", "key": "jacquescrocker", "displayName": "Jacques Crocker", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm having the same issue here. I attached another sample\nproject

\n

I followed the docs instructions, put the strings.xml within\n[root]/i18n/en/strings.xml. On starting the\napp, L(\"base_ui_title\") returns \"base_ui_title\" instead of the\nvalue specified in strings.xml

\n

I'm using Titanium Developer 1.2.2 along with the 1.5.1sdk

{html}", "updateAuthor": { "name": "jacquescrocker", "key": "jacquescrocker", "displayName": "Jacques Crocker", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:28.000+0000", "updated": "2011-04-15T03:24:28.000+0000" }, { "id": "128950", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Ticket hasn't gone through yet but this has been fixed.

\n

To test and close:

\n
{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:29.000+0000", "updated": "2011-04-15T03:24:29.000+0000" }, { "id": "128951", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [bc81d17959a8e369d92a3e402eaaa7a653b15c3a])\n[#2605 state:fixed-in-qa] Prevent unnecessary\nname mangling of .app bundle name. \nhttps://github.com/appcelerator/titanium_mobile/commit/bc81d17959a8...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:29.000+0000", "updated": "2011-04-15T03:24:29.000+0000" }, { "id": "128952", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Successful iOS Simulator test on 01/26/2011

\n

Tested both test applications in simulator and watched log for\nproper output.

\n\n
\n

Mobile SDK version: 1.6.0 (01/26/11 18:53 bd12917...)

\n

Simulator Version: 4.2 (235)

{html}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:29.000+0000", "updated": "2011-04-15T03:24:29.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }