[TIMOB-17205] Android: (Parity) Ti.Locale.getString for not existing entry in i18n xml is showing null/empty on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | parity |
Reporter | Jungwook Son |
Assignee | Unknown |
Created | 2014-06-09T17:00:45.000+0000 |
Updated | 2018-02-28T20:03:32.000+0000 |
Description
$.textLabel.text = L("not_existing_key");
For Android, render nothing on screen (null string).
For iOS, render 'not_existing_key' (i18n xml name property value itself).
Hi, For your case, seems like there is miss match between your code and i18n xml file, as I had tested your code, it works well for me. So would you please try the following suggestion: 1. Double check your xml name property spelling. 2. Replace the your code with
Then check the output, if the output is
Leaving priority to none, Platform will reassign it as needed.
I believe this ticket should be picked up. It is not in line with how iOS handles missing translations in Appcelerator. On iOS the key will be displayed for missing translations, on Android it will display *false*. In terms of Parity, this should be the same for both platforms.