Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by Gillissie · Dec 05, 2011 at 06:36 AM · ioslocale

detecting locale on iOS

Is there any way to detect the current locale of the iOS device? It's sort of important when localizing a game. I don't see anything in the docs.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image farmcp · Jan 21, 2016 at 07:15 AM 0
Share

@Gillissie - were you able to figure this out?

3 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by flarb · Feb 12, 2012 at 01:20 PM

How about Application.systemLanguage?

http://unity3d.com/support/documentation/ScriptReference/Application-systemLanguage.html

I think this will do the trick.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image semiessessi · Aug 14, 2013 at 02:00 PM 1
Share

this is not the same as the locale. for instance on my system this returns "English" - what I really want is to be able to tell if I am, e.g. en-GB or en-US... lets say I want to use pound signs or dollar signs depending (as bitmaps say, not as some string)

avatar image karthiksaligrama · Feb 07, 2015 at 01:46 AM 0
Share

@semiessessi did you get any way to do this?

avatar image Skflowne · Mar 30, 2015 at 04:18 PM 0
Share

Interested in this aswell but I feel like I'm gonna have to make conversion table...

avatar image tiagomelobr · May 09, 2015 at 08:03 AM 0
Share

Anyone has got any answer on this?

avatar image
2

Answer by Piotrku · Jun 30, 2016 at 10:43 PM

You might find this plugin helpful: http://u3d.as/vXf

You can differentiate between e.g. en_US and en_GB using its API

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
-2

Answer by roderic · Dec 07, 2011 at 07:56 PM

[NSLocale currentLocale]

It's in the documentation: http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSLocale_Class/Reference/Reference.html#//apple_ref/occ/clm/NSLocale/currentLocale

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gillissie · Dec 08, 2011 at 05:30 AM 1
Share

This is the Unity Answers, so my question pertains to the Unity API. I know how to get anything from the iOS when coding in native Objective-C. This is also why I followed this question up with this one: http://answers.unity3d.com/questions/192063/compiling-plugin-for-ios-need-more-info.html

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Two letter ISO language code for mobile devices. 1 Answer

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

FullScreenMovieScalingMode.AspectFit not working on iOS and Android 0 Answers

Enable or Disable Autorotation Animation option 2 Answers

About Japanese dynamic font indication in iOS8.2. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges