How to localize texts by pressing a button

Hi all,

I have localized into different languages. I can open my project using run -Culture command in cmd prompt. Now, I want to do this in Blueprint on pressing a button. Please find the attached pictures for more information.

I tried like this but not working for me. I really dont know where is the problem. Kindly help me :slight_smile:

Hi Vasanth,

I’m not exactly sure what you’re trying do. Are you trying to allow the user to change their current locale (between Spanish and Swedish in this case)?

You can do this in code quite easily, but I don’t believe the internationalization systems have been exposed to blueprints unfortunately. It was added to our list of todos recently.

If you have access to code then you’re looking for FInternationalization::SetCurrentCulture();


You can also swap between locale using the in-game console. Unfortunately, this is broken in previous versions of the engine (easy fix if you have access to code CL# 2532878), otherwise this is fixed in 4.8.

On the console do CULTURE=ko

Hi Sarge, Yes You are right. I am creating a button and on pressing that I want to change the language of the text to Spanish or Swedish. When I run the game in cmd prompt using “Path of editor” “path of project” -game -culture=“es” my game is opened in Spanish. I dont want the user to do this. just make is simple by just pressing the button on the settings page for changing the language.

I am not quite clear what I should try. I came to know through my friend that using “Execute console command” we can run in localized language in BP. Plz guide how I can proceed from here. Is this approach okay? if not what I should do?

While not ideal, using the “Execute console command” node in blueprints would be the best work around for now.

Unfortunately, as I mentioned, I don’t think it will actually work due to a bug unless you patch your code with CL# 2532878 or use the 4.8 engine.

How can I patch it up? can you plz give me some input?

You can only patch if you are using a GitHub build (not something you’ve downloaded through the launcher). Sounds like you probably aren’t.

4.8 is currently in preview and should be released soon. I would wait for 4.8.

When will it release? any approximation date?

I don’t believe we have any dates to provide. It’ll be released when it’s stable.

You can currently download the 4.8 Preview build from the launcher to test the functionality. I would highly recommend though that you open a clone of your project in 4.8 as once your project is converted to 4.8 it can’t be opened by older engine versions and 4.8 is currently considered to unstable for actual development.

You can follow 4.8’s release history and projections on our forums here: Unreal Engine 4.8 Preview - Announcements - Unreal Engine Forums

Thank you Sarge. I will give a try on 4.8 preview for now. I will definitely wait for the official release if nothing works out. Thank you so much for your kind replies :slight_smile:

Hi Sarge,
I have created a project in 4.8. I could able to see many bugs in Localization Dashboard. For example gather text paths are wrong and throws error. I even modified manually still it leads to error. If I use cmd prompt to gather and run it seems to be working… I used the forum you suggested (Localization Dashboard preview, and explanation of UE4's text localization process - Audio - Epic Developer Community Forums). The BP I have attached above works on a PC project but not on mobile project.

Notable thing is on mobile project, when I run the project on New Editor window translation could be done. But not on any other editors such as Selected viewport, Mobile preview nor standalone. I guess this is the bug you referred before? please give your views. Thank you!