#include <Internationalization.h>
Definition at line 23 of file Internationalization.h.
◆ FImplementation
◆ FInternationalization()
FInternationalization::FInternationalization |
( |
| ) |
|
|
private |
◆ ~FInternationalization()
FInternationalization::~FInternationalization |
( |
| ) |
|
|
private |
◆ AddCustomCulture()
◆ BackupCultureState()
Backup the current culture state to the given snapshot struct.
◆ BroadcastCultureChanged()
void FInternationalization::BroadcastCultureChanged |
( |
| ) |
|
|
inlineprivate |
◆ ClearCurrentAssetGroupCulture()
void FInternationalization::ClearCurrentAssetGroupCulture |
( |
const FName & | InAssetGroupName | ) |
|
Clear the given asset group category culture.
◆ ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText()
static FText FInternationalization::ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText |
( |
const TCHAR * | InTextLiteral, |
|
|
const TCHAR * | InNamespace, |
|
|
const TCHAR * | InKey ) |
|
static |
◆ Get()
◆ GetAvailableCultures()
Given some culture names, populate a list of cultures that are available to be used. If bIncludeDerivedCultures, include cultures that are derived from those we passed.
◆ GetCulture()
Get the culture corresponding to the given name.
- Returns
- The culture for the given name, or null if it couldn't be found.
◆ GetCultureNames()
void FInternationalization::GetCultureNames |
( |
TArray< FString > & | CultureNames | ) |
const |
◆ GetCulturesWithAvailableLocalization()
Given some paths to look at, populate a list of cultures that we have available localization information for. If bIncludeDerivedCultures, include cultures that are derived from those we have localization data for.
- Note
- This function was deprecated as it only provides cultures that use localization resources. FTextLocalizationManager::GetLocalizedCultureNames provides a more complete list when using alternate sources, and FInternationalization::GetAvailableCultures can be used to build a culture array from that list.
◆ GetCurrentAssetGroupCulture()
Get the given asset group category culture.
- Note
- Returns the current language if the group category doesn't have a culture override.
◆ GetCurrentCulture()
FCultureRef FInternationalization::GetCurrentCulture |
( |
| ) |
const |
|
inline |
Get the current culture.
- Note
- This function exists for legacy API parity with SetCurrentCulture and is equivalent to GetCurrentLanguage. It should never be used in internal localization/internationalization code!
Definition at line 59 of file Internationalization.h.
◆ GetCurrentCultures()
Get the current cultures in use, optionally including the current language, locale, and any asset groups.
◆ GetCurrentLanguage()
FCultureRef FInternationalization::GetCurrentLanguage |
( |
| ) |
const |
|
inline |
◆ GetCurrentLocale()
FCultureRef FInternationalization::GetCurrentLocale |
( |
| ) |
const |
|
inline |
◆ GetCustomCulture()
Get a new custom culture from its name
◆ GetDefaultCulture()
FCultureRef FInternationalization::GetDefaultCulture |
( |
| ) |
const |
|
inline |
Get the default culture specified by the OS.
- Note
- This function exists for legacy API parity with GetCurrentCulture and is equivalent to GetDefaultLanguage. It should never be used in internal localization/internationalization code!
Definition at line 123 of file Internationalization.h.
◆ GetDefaultLanguage()
FCultureRef FInternationalization::GetDefaultLanguage |
( |
| ) |
const |
|
inline |
◆ GetDefaultLocale()
FCultureRef FInternationalization::GetDefaultLocale |
( |
| ) |
const |
|
inline |
◆ GetInvariantCulture()
FCultureRef FInternationalization::GetInvariantCulture |
( |
| ) |
const |
|
inline |
Get the invariant culture that can be used when you don't care about localization/internationalization.
Definition at line 147 of file Internationalization.h.
◆ GetPrioritizedCultureNames()
◆ Initialize()
void FInternationalization::Initialize |
( |
| ) |
|
|
private |
◆ IsAvailable()
static bool FInternationalization::IsAvailable |
( |
| ) |
|
|
static |
Checks to see that an internationalization instance exists, and has been initialized. Usually you would use Get(), however this may be used to work out whether TearDown() has been called when cleaning up on shutdown.
◆ IsCultureAllowed()
Is the given culture enabled or disabled in this build?
◆ IsCultureRemapped()
Has the given culture been remapped in this build?
◆ IsInitialized()
bool FInternationalization::IsInitialized |
( |
| ) |
const |
|
inline |
◆ LoadAllCultureData()
void FInternationalization::LoadAllCultureData |
( |
| ) |
|
Load and cache the data needed for every culture we know about (this is usually done per-culture as required)
◆ OnCultureChanged()
◆ RefreshCachedConfigData()
void FInternationalization::RefreshCachedConfigData |
( |
| ) |
|
Refresh any config data that has been cached
◆ RefreshCultureDisplayNames()
void FInternationalization::RefreshCultureDisplayNames |
( |
const TArray< FString > & | InPrioritizedDisplayCultureNames | ) |
|
Refresh the display names of the cached cultures
◆ RestoreCultureState()
Restore a previous culture state from the given snapshot struct.
◆ SetCurrentAssetGroupCulture()
Set the given asset group category culture by name.
◆ SetCurrentCulture()
Set the current culture by name.
- Note
- This function is a sledgehammer, and will set both the language and locale, as well as clear out any asset group cultures that may be set.
-
SetCurrentCulture should be avoided in Core/Engine code as it may stomp over Editor/Game user-settings.
◆ SetCurrentLanguage()
Set only the current language (for localization) by name.
- Note
- Unless you're doing something advanced, you likely want SetCurrentLanguageAndLocale or SetCurrentCulture instead.
◆ SetCurrentLanguageAndLocale()
bool FInternationalization::SetCurrentLanguageAndLocale |
( |
const FString & | InCultureName | ) |
|
Set the current language (for localization) and locale (for internationalization) by name.
◆ SetCurrentLocale()
Set only the current locale (for internationalization) by name.
- Note
- Unless you're doing something advanced, you likely want SetCurrentLanguageAndLocale or SetCurrentCulture instead.
◆ TearDown()
◆ Terminate()
void FInternationalization::Terminate |
( |
| ) |
|
|
private |
◆ FLazySingleton
◆ FLegacyInternationalization
◆ FTextChronoFormatter
◆ bIsInitialized
bool FInternationalization::bIsInitialized = false |
|
private |
◆ CultureChangedEvent
◆ CurrentAssetGroupCultures
The currently active asset group cultures (for package localization).
- Note
- This is deliberately an array for performance reasons (we expect to have a very small number of groups).
Definition at line 251 of file Internationalization.h.
◆ CurrentLanguage
◆ CurrentLocale
◆ CustomCultures
◆ DefaultLanguage
◆ DefaultLocale
◆ Implementation
◆ InvariantCulture
An invariant culture that can be used when you don't care about localization/internationalization.
Definition at line 266 of file Internationalization.h.
The documentation for this class was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASA/AsaApi/AsaApi/Core/Public/API/UE/Internationalization/Internationalization.h