{
"id": "107104",
"key": "AC-1983",
"fields": {
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
},
"project": {
"id": "12217",
"key": "AC",
"name": "Appcelerator - INBOX",
"projectCategory": {
"id": "10000",
"description": "",
"name": "Customer Service"
}
},
"resolution": {
"id": "8",
"description": "",
"name": "Needs more info"
},
"resolutiondate": "2013-04-04T20:34:36.000+0000",
"created": "2012-12-27T07:20:57.000+0000",
"labels": [],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "mpmiranda",
"key": "mpmiranda",
"displayName": "Mauro Parra-Miranda",
"active": true,
"timeZone": "America/Mexico_City"
},
"updated": "2016-03-08T07:40:55.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": "14548",
"name": "Titanium SDK & CLI",
"description": "Please enter tickets related to the MobileSDK here."
}
],
"description": "*Problem description*\r\nI tried to get the app name localization working on Android and iOS and walked through the guide provided and cross-compared it with the example on github.\r\n\r\nI've re-checked the AndroidManifest XML file from the build folder and the android:label='@string/app_name' attributes are set as documented.\r\n\r\nWhen I deploy it on an Android device it takes the package string as app name (e.g. org.myapp.) and not the localized app string from the strings.xml in the platform folder.\r\n\r\n*platform/android/res/values-de/strings.xml*\r\n{code}\r\n\r\n\r\n Meine App\r\n\r\n{code}\r\n*platform/android/res/values-en/strings.xml*\r\n{code}\r\n\r\n\r\n My App\r\n\r\nplatform/android/AndroidManifest.xml\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nAfter a lot of testing I think I know what part breaks the localization. I'm able to reproduce it in the github Example from Appcelerator. Just do following:\r\n\r\n1. Add support for German by adding a app name localization file (i18n/de/app.xml, platform/android/res/values-de/strings.xml).\r\n2. After that app name localization works in German on iOS and Android.\r\n3. Now add a strings.xml file to the i18n language folders for each language with the following content:\r\n{code}\r\n\r\n\r\n Hallo Welt\r\n\r\n{code}\r\n\r\nInstall the app again on an Android device and suddenly the app name that was e.g. 'Katze' in German before now displays e.g. org.myapp. If I switch the language on the Android phone it still works for English, but every other language fails.",
"attachment": [],
"flagged": false,
"summary": "Android: App name localization error",
"creator": {
"name": "ripcurlx",
"key": "ripcurlx",
"displayName": "Christoph Atteneder",
"active": true,
"timeZone": "Europe/Berlin"
},
"subtasks": [],
"reporter": {
"name": "ripcurlx",
"key": "ripcurlx",
"displayName": "Christoph Atteneder",
"active": true,
"timeZone": "Europe/Berlin"
},
"environment": "Titanium SDK: 3.0.0.v20121130200208\r\nPlatform & version: iOS 6.0, Android 2.3.3\r\nDevice: Apple iPhone 4, Samsung Nexus\r\nHost Operating System: OSX 10.7.5\r\nTitanium Studio: 3.0.1.v20121214153201",
"comment": {
"comments": [
{
"id": "236737",
"author": {
"name": "egomez",
"key": "egomez",
"displayName": "Eduardo Gomez",
"active": false,
"timeZone": "America/Los_Angeles"
},
"body": "h6.Work around\n\n- File: i18n//strings.xml\n\nmy App\n\n- File: androidmanifestfile.xml\n\nUse @string/android_app_name in application tag as cited below:\n\n\n",
"updateAuthor": {
"name": "egomez",
"key": "egomez",
"displayName": "Eduardo Gomez",
"active": false,
"timeZone": "America/Los_Angeles"
},
"created": "2013-01-31T17:23:23.000+0000",
"updated": "2013-01-31T17:23:23.000+0000"
}
],
"maxResults": 1,
"total": 1,
"startAt": 0
}
}
}