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"

Localization: OK in Standalone, missing after packaging

I've created some translations in Localization Dashboard and set them up. They work correctly in Standalone game mode (I can change localization in-game via console commands), but after packaging it doesn't work. I have polish as my native language set up, but I want english to be default language after packaging. Here are my settings:

alt text

"Package default localization" is set to "en" and it works correctly when playing in Standalone mode (everything is in english), but in packaged game it starts in polish and I can't change the language in-game just like I can in Standalone mode.

Product Version: UE 4.9
notitle.jpg (79.3 kB)
more ▼

asked Oct 19 '15 at 09:14 PM in Packaging & Deployment

avatar image

2k 157 153 208

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

2 answers: sort voted first

I don't know solution for this problem but it is possible to bypass it. It is impossible to achieve with blueprint only but C++ code is quite easy.

Short version: use FInternationalization::Get().SetCurrentCulture(TEXT("pl"));

Long version:

1.File -> New C++ Class -> Blueprint Function Library, name of class basically doesn't matter from blueprint perspective.

2.In my case code looks like:


 #pragma once
 #include "Kismet/BlueprintFunctionLibrary.h"
 #include "LocalizationChange.generated.h"

 class MYPROJECT2_API ULocalizationChange : public UBlueprintFunctionLibrary
     UFUNCTION(BlueprintCallable, meta = (FriendlyName = "Set culture to PL"), Category = "Localization")
         static void SetCultureToPl();
     UFUNCTION(BlueprintCallable, meta = (FriendlyName = "Set culture to En"), Category = "Localization")
         static void SetCultureToEn();


 #include "MyProject2.h"
 #include "LocalizationChange.h"
 void ULocalizationChange::SetCultureToPl()
 void ULocalizationChange::SetCultureToEn()

3.After compilation you'll be able to simply call your functions from blueprint alt text

Call it after level Event BeginPlay and it should be fine. With bit of extending its possible to create language selection thanks to this.

culture change.png (14.6 kB)
more ▼

answered Oct 26 '15 at 03:48 PM

avatar image

66 3 5 7

avatar image Slavq Oct 26 '15 at 08:46 PM

Thank you very much, it worked! :)

avatar image 6r0m Jan 31 '17 at 06:14 PM

there are errors http://joxi.ru/12M13qpsMk68a2 how to fix they?

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

How would you treat it if you're not using the localization files for translation, but for text formatting and text storage?

How do you add them?

This is also happening to me. It works fine in play in Editor AND Standalone. However, I just launched it and packaged it and both have this string tables gone (I'm using the 4.18 String Table Assets btw) and thus not loaded.

Any fixes?

more ▼

answered Jan 06 '18 at 11:43 AM

avatar image

255 15 18 21

(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