cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-10345) Date picker buttons don't use locale
Date Fri, 15 Jan 2016 11:42:39 GMT

     [ https://issues.apache.org/jira/browse/CB-10345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

jcesarmobile closed CB-10345.
-----------------------------
    Resolution: Not A Problem

Native elements will be displayed on the language of the project, not the language of the
device.
Cordova projects are created with just english language (it's the default language on xcode
projects, not a cordova thing)

You can add other languages adding this inside the info.plist (with a plugin or a hook)

{code}
<key>CFBundleLocalizations</key>
      <array>
          <string>es</string>
          <string>fr</string>
          <string>...</string>
      </array>

{code}

or if you just want to support one language, but not english, you can change the CFBundleDevelopmentRegion
key inside the info.plist

{code}
<key>CFBundleDevelopmentRegion</key>
    <string>Other</string>

{code}



> Date picker buttons don't use locale
> ------------------------------------
>
>                 Key: CB-10345
>                 URL: https://issues.apache.org/jira/browse/CB-10345
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>         Environment: iOS 9
>            Reporter: Nathan Hazout
>            Assignee: jcesarmobile
>         Attachments: Cordova.png, Safari.png
>
>
> Make a simple Cordova app with just this:
> <input type="date"/>
> Switch your iphone language to anything other than English (I tested with French).
> Launch the app, and tap on the date field.
> You will see that the native date picker shows the dates in French (as expected), however
the buttons "Clear" and "Done" stay in English!
> On the other hand, if you open safari to https://jsfiddle.net/oe03gLmb/
> Tap on the small date picker, and you will see the buttons are in the correct language.
> I've tested this on various versions of Cordova between 3.4 and 6.0.0-dev



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message