[TIMOB-2605] Localization not setting in some instances
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M05 |
Components | iOS |
Labels | ios, localization, release-1.6.0, rplist |
Reporter | Rick Blalock |
Assignee | Blain Hamon |
Created | 2011-04-15T03:24:12.000+0000 |
Updated | 2011-04-17T01:59:35.000+0000 |
Description
I'm working with a customer that is having the same issue I am
having with using localization. Kevin W helped troubleshoot it with
me. We walked through the identical same steps and it worked for
him but not myself nor the customer. Tested on 1.5.0 GC and
1.5.1.
Attached is the project I was tweaking on trying to get it to work. Kevin had basically the same project and it worked for him.
the getString() always defaulted to the second arguement (The fallback text).
Any ideas on this one?
Attachments
File | Date | Size |
---|---|---|
i18n-wtf.zip | 2011-04-15T03:24:13.000+0000 | 855907 |
localization-test.zip | 2011-04-15T03:24:21.000+0000 | 18641533 |
Forgot to mention. Customer ticket located here: http://developer.appcelerator.com/helpdesk/view/60311">http://developer.appcelerator.com/helpdesk/view/60311
Unable to duplicate this. Could be a TiDev issue of some kind - I built off of the command line using that script. master/HEAD, iOS 4.2, simulator.
Gonna bump this to needs-more-info and post a possible workaround on the HD ticket.
Hi Steve,
Ok so I spent several hours this morning trying to debug this. I now think it's an issue with Titanium Developer. Here are the steps I took this morning:
So my assumption is it's an issue with Titanium Developer. I'm not familiar with how Ti Dev works enough to make a judgement call on this.
I found that if I tried to use localization on a project originally created with 1.4.x branch of the SDK you would run into these issues.
The key to getting it to work is to delete the build directory and touch the tiapp.xml in a text editor. I also copied over the new tags from a tiapp.xml created by the developer using the 1.5 SDK. After all that, it worked fine for me.
Hey Guys,
Andreas
I'm having the same issue here. I attached another sample project
I followed the docs instructions, put the strings.xml within [root]/i18n/en/strings.xml. On starting the app, L("base_ui_title") returns "base_ui_title" instead of the value specified in strings.xml
I'm using Titanium Developer 1.2.2 along with the 1.5.1sdk
Ticket hasn't gone through yet but this has been fixed.
To test and close:
(from [bc81d17959a8e369d92a3e402eaaa7a653b15c3a]) [#2605 state:fixed-in-qa] Prevent unnecessary name mangling of .app bundle name. https://github.com/appcelerator/titanium_mobile/commit/bc81d17959a8e369d92a3e402eaaa7a653b15c3a"> https://github.com/appcelerator/titanium_mobile/commit/bc81d17959a8...
Successful iOS Simulator test on 01/26/2011
Tested both test applications in simulator and watched log for proper output.
Mobile SDK version: 1.6.0 (01/26/11 18:53 bd12917...)
Simulator Version: 4.2 (235)