[ 
https://issues.apache.org/jira/browse/CB-7924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247463#comment-14247463
 ] 

Rocco Georgi commented on CB-7924:
----------------------------------

This is not an actual bug but related to the way iOS8/XCode6 handle 
localizations differently from previous versions.

Apparently just changing language and regional setting under "Settings" in your 
simulator is not enough to test localizations. In XCode you need to:

- "Edit Scheme"
- under "Run" select "Options"
- a bit down there's a select field called Application Language ... change this 
from "System Language" to whatever language you need to test

Now in simulator the plugin reports the correct language; even 
"navigator.language" does - just like on iOS7.

If you want to debug, set a breakpoint on [NSLocale currentLocale] within the 
plugin and you can easily see it behaves differently on iOS7 vs. 8 when just 
changing system language and settings in simulator.

However: on an actual device the plugin (any my app only using 
navigator.language) everything works correctly whenever you set system language 
and/or regional settings. That's why I wouldn't say it's a bug ... merely a 
regression change that requires to test differently (too bad it becomes more 
complicated).

So for me simulator behaves differently from actual device.

> Globalization shows always en-US @ iOS Simulator
> ------------------------------------------------
>
>                 Key: CB-7924
>                 URL: https://issues.apache.org/jira/browse/CB-7924
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Globalization
>         Environment: iOS
>            Reporter: Xairoo
>
> Works on a real device but not inside the simulator. But all other apps (by 
> Apple) does show up with the new language when i change it.
> Returns always en-US.
> Using the latest globalization plugin version.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to