Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2333] Need to have dialect-specific locale in Ti.Platform.locale

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:47.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M02
ComponentsAndroid
Labelsandroid, defect, rplist
ReporterKevin Whinnery
AssigneeDon Thorp
Created2011-04-15T03:16:57.000+0000
Updated2011-04-17T01:58:47.000+0000

Description

On Android, Ti.Platform.locale returns 'en' for standard English, which is fine. For Canadian and United Kingdom English, Ti.Platform.locale still returns 'en', when it should return 'en-CA' or 'en-GB' respectively. We should also, as much as possible, make sure the dialect strings for Android match exactly what is returned by iOS for cross-platform goodness. iOS seems to use the format 'en-CA' with the dialect capitalized at the end of the string, separated by a hyphen.

Comments

  1. Bill Dawson 2011-04-15

    (from [488efa794ecd718213543611ccc917d6d3d1961a]) [#2333 state:fixed-in-qa] Include country in locale string and standardize on dash (-) instead of underscore as separator for locale string parts https://github.com/appcelerator/titanium_mobile/commit/488efa794ecd718213543611ccc917d6d3d1961a"> https://github.com/appcelerator/titanium_mobile/commit/488efa794ecd...

  2. Matt Schmulen 2011-04-15

    Pass Titanium SDK version: 1.5.0 (12/01/10 09:30 ac7cfd8) drillbit test Android Sim 1.6/2.1

    android sim 1.6
    https://5111068499667359260-a-appcelerator-com-s-sites.googlegroups.com/a/appcelerator.com/android/screenshots/Screenshot2010-12-02at2.30.47AM.png?attachauth=ANoY7crKsfvMfdez3l27wnG_vOB0igXOd2AW8GVzP33R4KO4JNDSdg0wYeWx8OR34RLcQs0pfHxUiuoIsoVb5OClouqEI_CmWLRvbhD64WJg7KiGw4U6-679XjvXSqApaVCVyGqDjjfcHnceQepDqw0Wky44GDYZpomldZ1mAY0K0qqkI_BWhN2ETrFqCIPUjsjX6ZtLnuIJ5H1eYOg2P-M9OoYJKY6_TozjeA9AGUlbA3qoW-OTVh0%3D&;attredirects=0"> https://5111068499667359260-a-appcelerator-com-s-sites.googlegroups...

    android sim 2.1
    https://5111068499667359260-a-appcelerator-com-s-sites.googlegroups.com/a/appcelerator.com/android/screenshots/Screenshot2010-12-02at2.48.13AM.png?attachauth=ANoY7cqZMHs0_-0NFdd52s4sE13MK769EMBj1VEL9mkQdyPJ_1Lylg56ioZ3EKIhrSl7RMoVTCAI9cY4-jfDs6mOqdJOyP9mQrY28Zjh5vBQGQ6_377a21CU3cn9Al6-wi8damB2gpx5waY3FoILV9l9iIqifi6D5Jue3Rbig8yVLAwmls-q_qLFApWfmRmL9V7zuCx18cVF9-Om9uMmhzz7EKdEBj6cJ1MuzGF5vuOn6vTnexNmgr0%3D&;attredirects=0"> https://5111068499667359260-a-appcelerator-com-s-sites.googlegroups...

  3. Nikolai Derzhak 2011-04-15

    rollback wrong update

JSON Source