{
"id": "172674",
"key": "TIMOB-26612",
"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": "20429",
"name": "Release 7.5.1",
"archived": false,
"released": true,
"releaseDate": "2019-02-26"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2018-12-18T14:58:24.000+0000",
"created": "2018-11-27T18:20:19.000+0000",
"priority": {
"name": "Critical",
"id": "1"
},
"labels": [
"ios",
"locale",
"regression"
],
"versions": [
{
"id": "20238",
"description": "",
"name": "Release 7.5.0",
"archived": false,
"released": true,
"releaseDate": "2018-11-15"
}
],
"issuelinks": [],
"assignee": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2018-12-18T20:59:04.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": [],
"description": "Ti.Locale.currentLanguage returns wrong language\r\nTi.Locale.currentLocale return correct language\r\nLocalized strings L(\"key\") are replaced incorrectly\r\n(Works fine with SDK 7.4.x)\r\n\r\nSteps to reproduce:\r\n1. Create strings.xml within folder i18n/de and add _deutsch_ into resources node. Create strings.xml within i18n/en folder and add _english_ into resources node.\r\n2. Set simulator device language and region to \"German\"\r\n3. Add lines to app.js:\r\nconsole.log(Ti.Locale.currentLanguage);\r\nconsole.log(Ti.Locale. Ti.Locale.currentLocale);\r\n4. Add label with a localized string e. g. L(\"test\") to view\r\n\r\n*Expected results:*\r\nConsole:\r\nde\r\nde-DE\r\n\r\nLabel text:\r\ndeutsch\r\n\r\n*Current results*:\r\nConsole:\r\nen\r\nde-DE\r\n\r\nLabel text:\r\nenglish",
"attachment": [],
"flagged": false,
"summary": "Problem with Internationalization ",
"creator": {
"name": "tw",
"key": "tw",
"displayName": "Thomas Weber",
"active": true,
"timeZone": "Europe/Berlin"
},
"subtasks": [],
"reporter": {
"name": "tw",
"key": "tw",
"displayName": "Thomas Weber",
"active": true,
"timeZone": "Europe/Berlin"
},
"environment": "Ti SDK 7.5.0 GA\r\nOS Simulator / Xcode 10.1",
"comment": {
"comments": [
{
"id": "443986",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "This might be issue due to [this PR|https://github.com/appcelerator/titanium_mobile/pull/10227]. Need to look in this.",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-11-28T10:20:06.000+0000",
"updated": "2018-11-28T10:20:06.000+0000"
},
{
"id": "444029",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "PR(master)- https://github.com/appcelerator/titanium_mobile/pull/10499\r\n\r\nTest Case 1-\r\n Test case mentioned TIMOB-13966.\r\n\r\nTest Case 2-\r\n After changing language in device/ simulator it should log proper value, as mentioned in this ticket.\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n Ti.API.info(Ti.Locale.currentLanguage);\r\n Ti.API.info(Ti.Locale.currentLocale);\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-11-29T05:03:31.000+0000",
"updated": "2018-12-18T03:51:20.000+0000"
},
{
"id": "444334",
"author": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Closing ticket. Fix verified in SDK version {{8.0.0.v20181207074202}}.\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10499",
"updateAuthor": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-12-07T16:47:05.000+0000",
"updated": "2018-12-07T16:47:05.000+0000"
},
{
"id": "444672",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "[~lchoudhary]\r\nPR (7_5_X) - https://github.com/appcelerator/titanium_mobile/pull/10545",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-12-18T03:51:28.000+0000",
"updated": "2018-12-18T03:53:35.000+0000"
},
{
"id": "444686",
"author": {
"name": "jlongton",
"key": "jlongton",
"displayName": "Josh Longton",
"active": true,
"timeZone": "Europe/London"
},
"body": "*FR Passed 7_5_X*",
"updateAuthor": {
"name": "jlongton",
"key": "jlongton",
"displayName": "Josh Longton",
"active": true,
"timeZone": "Europe/London"
},
"created": "2018-12-18T14:58:24.000+0000",
"updated": "2018-12-18T14:58:24.000+0000"
},
{
"id": "444716",
"author": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Verified the fix in SDK 7.5.1.v20181218070137.\r\nClosing.",
"updateAuthor": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-12-18T20:59:00.000+0000",
"updated": "2018-12-18T20:59:00.000+0000"
}
],
"maxResults": 6,
"total": 6,
"startAt": 0
}
}
}