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 do I support Norwegian ("no")?

Unreal only supports Norwegian Bokmal (nb) and Norwegian Nynorsk (nn)...but the PS4 only supports generic Norwegian (no). So how do I make Unreal use the correct culture?

Product Version: UE 4.19
Tags:
more ▼

asked May 18 '18 at 04:58 PM in Packaging & Deployment

avatar image

Chris Payne
75 5 9 9

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

1 answer: sort oldest

You could try a culture mapping your DefaultGame.ini file:

 [Internationalization]
 +CultureMappings="no;nb"

or

 [Internationalization]
 +CultureMappings="no;nn"
more ▼

answered May 18 '18 at 05:02 PM

avatar image

Jamie Dale STAFF
7.4k 176 66 304

avatar image Jamie Dale STAFF May 18 '18 at 05:04 PM

Alternatively, we handle those mappings ourselves so you can change the default in FPS4Misc::GetDefaultLocale. I don't know how we ended up using "no" as it's not even a valid culture code... I'll fix that.

Edit: Weirdly ICU has "no.res" and "nb.res", but no "nn.res"... curious.

It looks like ICU itself lets you select and use "no" as a culture if you do it manually, but the call to getAvailableLocales in ICU doesn't include it (which is why you can use it, but not select it as a language in the localization dashboard).

avatar image Jamie Dale STAFF May 18 '18 at 06:53 PM

If you go to ICUInternationalization.cpp and add the following:

 // getAvailableLocales doesn't always cover all languages that ICU supports, so we spin the language list too and add any that were missed
 // Note: getISOLanguages returns the start of an array of const char* null-terminated strings, with a null string signifying the end of the array
 for (const char* const* AvailableLanguages = icu::Locale::getISOLanguages(); *AvailableLanguages; ++AvailableLanguages)
 {
     FString LanguageCode = UTF8_TO_TCHAR(*AvailableLanguages);
     LanguageCode.ToLowerInline();

     // Only care about 2-letter codes
     if (LanguageCode.Len() == 2)
     {
         AppendCultureData(LanguageCode, FString(), FString());
     }
 }

Before this comment:

 // Also add our invariant culture if it wasn't found when processing the ICU locales

You should find that "no" now appears as something you can select in the Localization Dashboard.

avatar image Chris Payne May 18 '18 at 05:05 PM

Aha! Will try that, thanks Jamie....

(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