Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to fetch the mobile/OS language?

Hi all,

I am a newbie to Unreal Engine and currently localizing a small mobile game. I have localized to few languages and and need to open the game in that language (if translated) by just comparing the Mobile language.

Can we fetch the mobile language in Unreal? if yes how? Please give some suggestions.

Thank you!

Product Version: Not Selected
more ▼

asked May 08 '15 at 02:00 PM in Packaging & Deployment

avatar image

46 5 7 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Sounds like you've rolled your own localization system for your game. Unreal does provide one that you can read about here:

https://docs.unrealengine.com/latest/INT/Gameplay/Localization/index.html https://forums.unrealengine.com/showthread.php?63394-Localization-Dashboard-preview-and-explanation-of-UE4-s-text-localization-process&p=250553#post250553

If you want to use your own localization system you can still use Unreal's internationalization system which provides the device/OS desired locale information for you.


FInternationalization also has a OnCultureChanged() event that you can listen to if you allow your users to change their locale in-game.

more ▼

answered May 08 '15 at 02:21 PM

avatar image

632 14 5 36

avatar image Vasanth May 08 '15 at 02:32 PM

Wow! Thank you Sarge. I will try to follow the forum and get back to you if I have any problem. Have a nice weekend!

avatar image Vasanth May 08 '15 at 02:50 PM

Hi Sarge, I am using the version UE 4.7.6. Should I need to upgrade to 4.8 (as explained in the forum) to do this task? Any possibilities in the old version?

Also please suggest using BP way for (FInternationalization::Get().GetCurrentCulture();) Where should I use this command in the project? Please give some input on this :-)

Thank you!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey Vasanth,

  1. is still in preview and I don't recommend updating to that version until it's closer to it's stable release. In versions before 4.8 the localization dashboard doesn't exist, but you can go through the same process using the command line setup explained in the documentation I've linked. Your choice you can wait for 4.8 or dive into the command line setup.

As for BP only way of accessing the current culture... I don't believe there is an option. I'll add a ticket to get it exposed to blueprints. I'm unsure if this will make it into the 4.8 release though.

more ▼

answered May 08 '15 at 02:53 PM

avatar image

632 14 5 36

avatar image Vasanth May 08 '15 at 03:13 PM

Thats good. I will stick with the current version and do the cmd line setup. I am bit confused where exactly I can use the code in cmd line setup.

Defaultgame.ini maybe?

avatar image Vasanth May 19 '15 at 09:57 AM

I am still not getting any idea how to localize it. I did able to localize on a PC project but getting some error in Mobile content projects. Can you plz give some input on how to use C++ code [FInternationalization::Get().GetCurrentCulture();] to fetch the mobile language.

Can we use C++ for a Blueprint project?

I have my project in all BP and I am not sure where exactly I can use this code on C++. Any tutorial regarding this would be appreciable.

Thank you so much!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question