{ "id": "76882", "key": "TIMOB-4492", "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": "11360", "description": "Mobile 1.8.0 M07", "name": "Sprint 2011-28", "archived": true, "released": true, "releaseDate": "2011-07-18" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-07-11T16:17:04.000+0000", "created": "2011-06-24T13:04:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-07-15T00:05:37.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": "This works fine when built and deployed from Ti Studio!\r\n\r\nStep1: Copy the below code to app.js\r\nStep2: Create a folder 'il8n/en' and 'il8n/es' in the root of the project.\r\nStep3: Copy the strings.xml files(attached) to both the folders.\r\nStep4: Run the application. You can a see a welcome message.\r\nStep5: Go to 'build/iphone' directory and open the project in x-code.\r\nStep6: Build and run the application from x-code.\r\nStep7: The strings.xml is missing in the project and internationalization does not work.\r\n{code:javascript}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:Ti.Locale.getString(\"welcome_message\"),\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nwin1.open();\r\n\r\n{code}\r\n\r\nThe screenshot of the application is attached.\r\nAssociated Helpdesk Ticket:\r\nhttp://appc.me/c/APP-762623", "attachment": [ { "id": "21451", "filename": "i18n.zip", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-24T13:04:34.000+0000", "size": 1421, "mimeType": "application/zip" }, { "id": "21786", "filename": "Localized.png", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T13:58:12.000+0000", "size": 33803, "mimeType": "image/png" }, { "id": "21787", "filename": "NotLocalized.png", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T13:58:12.000+0000", "size": 31369, "mimeType": "image/png" }, { "id": "21452", "filename": "photo.PNG", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-24T13:04:34.000+0000", "size": 35075, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS:Internationalization of strings does not work on iphone if the project is built from xcode", "creator": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 4.3, Ti SDK 1.7.0", "comment": { "comments": [ { "id": "157941", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried these steps and could not reproduce the problem. The app when build with XCode displayed proper translations in the strings. I had QE visually verify this with me. Additionally, running projects from XCode is not a supported workflow, running from Studio is.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-28T10:59:02.000+0000", "updated": "2011-06-28T10:59:02.000+0000" }, { "id": "159215", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.2.v20110711111041 on iPhone 4 4.2.8\r\nWhen application is localized you see\r\n\"Welcome to Kitchen Sink for Titanium.\"\r\nWhen application is not localized you see\r\n\"welcome_message:\"\r\n(See attached image)\r\nWorks when build with Studio, but when build and ran with xcode string is not localized", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T13:57:50.000+0000", "updated": "2011-07-11T14:02:16.000+0000" }, { "id": "159241", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not a supported workflow. Validated with CE that this support (building outside of Studio) will not be provided.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T16:17:04.000+0000", "updated": "2011-07-11T16:17:04.000+0000" }, { "id": "159644", "author": { "name": "aaron@clearlyinnovative.com", "key": "aaron@clearlyinnovative.com", "displayName": "Aaron K. Saunders", "active": true, "timeZone": "America/New_York" }, "body": "honestly i think it is crazy that the solution to the problem is to not built the project in xcode... that is the best work around you can provide?\r\n\r\nI build in xcode because that is where I package and archive before sending out to clients for testing? What is the approved approach for that workflow?", "updateAuthor": { "name": "aaron@clearlyinnovative.com", "key": "aaron@clearlyinnovative.com", "displayName": "Aaron K. Saunders", "active": true, "timeZone": "America/New_York" }, "created": "2011-07-15T00:05:37.000+0000", "updated": "2011-07-15T00:05:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }