x

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 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 :-)

alt text

alt text

alt text

alt text

Product Version: Not Selected
Tags:
level bp.png (312.3 kB)
widget bp.png (318.5 kB)
more ▼

asked May 13 '15 at 01:51 PM in Packaging & Deployment

avatar image

Vasanth
46 5 7 9

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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: https://forums.unrealengine.com/showthread.php?69139-Unreal-Engine-4-8-Preview

more ▼

answered May 13 '15 at 02:52 PM

avatar image

Sarge STAFF
637 14 4 36

avatar image Vasanth May 13 '15 at 02:59 PM

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 :-)

avatar image Vasanth May 19 '15 at 10:05 AM

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 (https://forums.unrealengine.com/showthread.php?63394-Localization-Dashboard-preview-and-explanation-of-UE4-s-text-localization-process&p=250553#post250553). The BP I have attached above works on a PC project but not on mobile project.

avatar image Vasanth May 19 '15 at 10:11 AM

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!

(comments are locked)
10|2000 characters needed characters left

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

more ▼

answered May 13 '15 at 02:10 PM

avatar image

Sarge STAFF
637 14 4 36

avatar image Vasanth May 13 '15 at 02:39 PM

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?

avatar image Sarge STAFF May 13 '15 at 02:42 PM

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.

avatar image Vasanth May 13 '15 at 02:44 PM

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

avatar image Sarge STAFF May 13 '15 at 02:46 PM

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.

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

avatar image Vasanth May 13 '15 at 02:48 PM

When will it release? any approximation date?

(comments are locked)
10|2000 characters needed characters left
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