Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19860] Titanium local differ between simulator to device

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2015-11-04T21:30:39.000+0000
Affected Version/sRelease 5.0.2
Fix Version/sRelease 5.1.0
ComponentsiOS
Labelscommunity
ReporterMichael Bahl
AssigneeAngel Petkov
Created2015-10-13T08:15:51.000+0000
Updated2015-11-09T22:28:32.000+0000

Description

Steps to Reproduce

iPad ios 9.0.2 Ti.Locale.currentLanguage: de-DE Ti.Locale.currentLocale: de-DE ios 8.4 simulator Ti.Locale.currentLanguage: de Ti.Locale.currentLocale: de-DE

Actual Result

iPad ios 9.0.2 Ti.Locale.currentLanguage: de-DE Ti.Locale.currentLocale: de-DE ios 8.4 simulator Ti.Locale.currentLanguage: de Ti.Locale.currentLocale: de-DE

Expected Result

iPad ios 9.0.2 Ti.Locale.currentLanguage: de-DE Ti.Locale.currentLocale: de-DE ios 8.4 simulator Ti.Locale.currentLanguage: de << With 2 letters as documented Ti.Locale.currentLocale: de-DE

Attachments

FileDateSize
.log2015-10-13T08:16:11.000+00001919758
diagnostic3256469361645279029.log2015-10-13T08:16:28.000+0000302745

Comments

  1. Aminul Islam 2015-10-29

    Hi, I have tested this issue on simulator and device. It looks like the feature *Ti.Locale.currentLanguage* gives different log for iOS 8 and iOS 9. *Log for ios 9.0.2*
       Ti.API.info(Ti.Locale.currentLanguage);
       [INFO] :   en-US
       
    *Log for ios 8.1*
       Ti.API.info(Ti.Locale.currentLanguage);
       [INFO] :   en
       
    *Environment*
       Operating System
         Name                        = Mac OS X
         Version                     = 10.10.5
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 8589934592
       Node.js
         Node.js Version             = 0.10.37
         npm Version                 = 1.4.28
       Titanium CLI
         CLI Version                 = 5.0.5
       Titanium SDK
         SDK Version                 = 5.0.2.GA
         SDK Path                    = /Users/Raju/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA
         Target Platform             = iphone
       
    Thanks
  2. Angel Petkov 2015-11-04

    Hello, this is an older bug, we fixed the issue in the 5.1 release. Please download the newest SDK it will fix the issue. Thank you! http://builds.appcelerator.com.s3.amazonaws.com/index.html#5_1_X
  3. Eric Merriman 2015-11-09

    Closing as duplicate of linked ticket.

JSON Source