Problem
Regardless of the language configured in iOS system settings, [Titanium.UI.Picker](
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Picker-object) is always displayed in English
Test Case
In the iOS simulator:
Go to Settings
General
International
Language > French
Run the following code, and "Today" should be displayed as "Aujourd'hui"
Titanium.UI.setBackgroundColor('#000');
var win1 = Ti.UI.createWindow({
backgroundColor:'white',
fullscreen:false,
exitOnClose:true
});
var minDate = new Date(2011,11,1);
var maxDate = new Date(2012,11,31);
var value = new Date();
var picker = Ti.UI.createPicker({
type:Ti.UI.PICKER_TYPE_DATE_AND_TIME,
minDate:minDate,
maxDate:maxDate,
value:value
});
Ti.API.info('The current picker value is: ' + picker.value)
win1.add(picker);
win1.open();
File added : app.js
no news ?
Anthony Note the changes that have been made in order for this ticket to be escalated. Hence, please kindly read the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) before raising any more tickets. Thank you for your understanding.
UIDatePicker iOS localization is kind of weird. Basically, for dates user should set corresponding Regional Format (e.g France) Today label is handled separately by both language setting (French) in System Preferences and (!) CFBundleDevelopmentRegion property in Info.plist. Titanium devs should use the example below in their tiapp.xml to set CFBundleDevelopmentRegion
Tested with: SDK: 3.0.0.v20121211174657 Studio: 3.0.0.201212112036
Reopening just to update the label
Updated label and verified: Titanium Studio:3.1.2.201307091843 Titanium SDK: 3.1.2.v20130710144553 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:iPhone 4(v 5.1) Xcode: 4.5.1
Issue still appears for iPhone5(v6.1.4) Works fine for iPhone4 Verified using: OSX: 10.8.4 Xcode:4.6.3 Appcelerator Studio, build: 3.1.2.201308021524 SDK:3.1.2.v20130802180729 Device: iPhone5(v6.1.4)
Issue occurred with: Xcode 5 iPhone 5 6.1.3 iPhone 5 iOS 7 beta 6 Titanium Studio, build: 3.1.3.201308302431 Titanium SDK: 3.1.3.v20130902103448 I used the tiapp.xml sample above, and tried not only as shown, but also incorporated it in another fashion, both seem to make no difference. With iOS set to French on device, the picker is in English.
As mentioned in the comments above, this normal behavior. There are two language settings on iOS, the main OS language and the region language. To have the date picker on a different language the user needs to go into Settings. Settings -> General -> International -> Region Format -> pick a region (and language if applicable)
Closing ticket as Won't Fix with reference to the above comments.