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
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.
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?
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.
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
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!