Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10834] iOS: when the device is set to Slovenian language (SL), Ti.Locale.getCurrentLanguage() returns SK (Slovak)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNot Our Bug
Resolution Date2012-09-13T20:59:52.000+0000
Affected Version/sRelease 2.1.2
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterDavide Cassenti
AssigneeNeeraj Gupta
Created2012-09-11T02:25:52.000+0000
Updated2017-03-09T23:46:23.000+0000

Description

Problem description

When the iOS device is set to Slovenian (SL), Ti.Locale.getCurrentLanguage() returns the code for Slovak (SK). This makes the i18n translation files unreadable by the app.

Steps to reproduce

- create the i18n folder and add a string for the Slovenian language (folder must be called 'sl') - alert the L('sentence') value, or the Ti.Locale.getCurrentLanguage() response, in the app.js

Expected results

The app uses the correct langage code (SL) and the translation is displayed correctly.

Current result

The language code returned is SK, so the translation is not working properly.

Comments

  1. Davide Cassenti 2012-09-13

    This looks to be a problem with Apple: I've created a native app, and the Slovak language file is loaded when the device is set to Slovenian.
  2. Lee Morris 2017-03-09

    Closing this ticket as it is not our bug.

JSON Source