Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1059] i18n from app must override i18n from widgets

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2015-02-13T18:28:03.000+0000
Affected Version/sAlloy 1.5.0
Fix Version/sAlloy 1.7.0
ComponentsI18N
Labelsn/a
ReporterTim Poulsen
AssigneeFeon Sua Xin Miao
Created2014-06-24T16:39:19.000+0000
Updated2015-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.

Comments

  1. Alex Montgomery 2014-08-13

    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?
  2. Tim Poulsen 2015-02-13

    Resolved by ALOY-858

JSON Source