Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1128] region-specific i18n files need to be copied to res with "r" in front of region

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-07-14T15:59:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio, Titanium SDK & CLI
LabelsAndroid,, i18n,, localization,
ReporterBrian Burgess
AssigneeMauro Parra-Miranda
Created2014-05-25T05:04:04.000+0000
Updated2016-03-08T07:37:29.000+0000

Description

This is happening just as in TIMOB-2563 once again in 3.2.0 on thru 3.2.3: Android: region-specific i18n files need to be copied to res with "r" in front of region. As mentioned this does NOT occur for iOS, so the folder needs to be renamed back again, in order to build for iOS.

Comments

  1. Motiur Rahman 2014-07-08

    Hi, It’s not a bug. It’s working as expected. But keep in mind that in the i18n folder you have to create supported language sort code folder according to the [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1) standard for example, en for English is the default. And XML file will be added inside that folder . !http://www.2imgs.com/779f5872a1!

    Testing Environment

    Titanium SDK: 3.2.3, 3.3.0.RC, Titanium CLI: 3.3.0 –rc, Android SDK: 4.2.2, 4.4.2 OS X Version: 10.9.3, Appcelerator Studio: 3.2.3

    Steps to test

    1. Create a classic project. 2. Paste this code in app.js file. 3. In i18n folder, create [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1) standard language folder. 4. Change your device language according to your i18n folder. 5. Run this code with the testing environment.

    Test Code

       var win = Titanium.UI.createWindow({
       	title : 'Tab 1',
       	backgroundColor : '#fff'
       });
       
       var label = Titanium.UI.createLabel({
       	color : '#999',
       	text : 'I am Window 1, here is my message: ' + L('hello'),
       	font : {
       		fontSize : 20,
       		fontFamily : 'Helvetica Neue'
       	},
       	textAlign : 'center',
       	width : 'auto'
       });
       
       win.add(label);
       
       win.open();
       
       <?xml version="1.0" encoding="UTF-8"?>
       <resources>
         <string name="hello">hello in belgian french</string>
       </resources>
       
    For detail info follow [this link](http://docs.appcelerator.com/titanium/latest/#!/guide/Internationalization).

JSON Source