Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6863] iOS: UI - picker values not affected by system language

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2013-10-29T19:53:18.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/s2012 Sprint 25, 2012 Sprint 25 Core, 2013 Sprint 23, 2013 Sprint 23 API
ComponentsiOS
Labelsmodule_picker, qe-3.1.3, qe-port, qe-testadded
ReporterAnthony
AssigneePedro Enrique
Created2011-11-17T00:39:10.000+0000
Updated2017-03-23T22:46:07.000+0000

Description

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();

Comments

  1. Anthony 2011-11-18

    File added : app.js
  2. Anthony 2011-12-13

    no news ?
  3. Paul Dowsett 2011-12-25

    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.
  4. Max Stepanov 2012-12-11

    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
           <ios>
               <plist>
                   <dict>
                       <key>CFBundleDevelopmentRegion</key>
                       <string>France</string>
                   </dict>
               </plist>
           </ios>
       
       
  5. Anshu Mittal 2012-12-14

    Tested with: SDK: 3.0.0.v20121211174657 Studio: 3.0.0.201212112036
  6. Priya Agarwal 2013-07-11

    Reopening just to update the label
  7. Priya Agarwal 2013-07-11

    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
  8. Pragya Rastogi 2013-08-05

    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)
  9. Eric Merriman 2013-09-03

    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.
  10. Pedro Enrique 2013-10-29

    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)
  11. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source