UKismetInternationalizationLibrary::GetSuitableCulture

Given a list of available cultures, try and find the most suitable culture from the list based on culture prioritization.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetInternationalizationLibrary.h

Include

#include "Kismet/KismetInternationalizationLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetInternationalizationLibrary.cpp

Syntax

static FString GetSuitableCulture
(
    const TArray < FString > & AvailableCultures,
    const FString & CultureToMatch,
    const FString & FallbackCulture
)

Remarks

Given a list of available cultures, try and find the most suitable culture from the list based on culture prioritization. eg) If your list was [en, fr, de] and the given culture was "en-US", this function would return "en". eg) If your list was [zh, ar, pl] and the given culture was "en-US", this function would return the fallback culture.

Returns

The culture as an IETF language tag (eg, "zh-Hans-CN").

Parameters

Parameter

Description

AvailableCultures

List of available cultures to filter against (see GetLocalizedCultures).

CultureToMatch

Culture to try and match (see GetCurrentLanguage).

FallbackCulture

The culture to return if there is no suitable match in the list (typically your native culture, see GetNativeCulture).

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback