[ALOY-1059] i18n from app must override i18n from widgets
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2015-02-13T18:28:03.000+0000 |
Affected Version/s | Alloy 1.5.0 |
Fix Version/s | Alloy 1.7.0 |
Components | I18N |
Labels | n/a |
Reporter | Tim Poulsen |
Assignee | Feon Sua Xin Miao |
Created | 2014-06-24T16:39:19.000+0000 |
Updated | 2015-02-13T18:28:03.000+0000 |
Description
Given a language string in the app's i18n strings.xml file with the same name as a value in a widget's strings.xml file, the app's string must override that of the widget.
To create a test app for this:
1. Copy the ALOY-967 test app
2. Modify the app's i18n/en/strings.xml file to add this new key:
<string name="language__intro_text">i18n from app overrides widget</string>
3. Build the app and you should see the above string.
Currently, with the 967 test app, you see "i18n from com.mylanguage.widget" which is coming from the widget.
Could the Alloy build system do some auto-namespacing for widget strings by prepending the widget identifier, to avoid these collisions in the first place?
Resolved by ALOY-858