FPortableObjectCulture

Class for handling language codes used in the Portable Object format.

Unreal Engine C++ API Reference > Developer > Localization

References

   
Module Localization
Header /Engine/Source/Developer/Localization/Public/PortableObjectFormatDOM.h
Include #include "PortableObjectFormatDOM.h"

Syntax

class FPortableObjectCulture  

Remarks

Class for handling language codes used in the Portable Object format.

Constructors

Type Name Description
  FPortableObjectCulture ()  
  FPortableObjectCulture ( const FString& LangCode, const FString& PluralForms )  

Functions

Type Name Description
FString Country () Retrieves the country info of the culture
FString DisplayName () Retrieves the display name for the language.
FString EnglishName () Retrieves the English name for the language.
FCulturePtr GetCulture () Retrieves the culture equivalent that matches the set language code.
const FStrin... GetLanguageCode () Retrieves the language code
FString GetPluralForms () Retrieves the language plural forms.
bool IsValid () Checks to see if we have a language code and if we were able to match a culture to that code
FString Language () Retrieves the two or three letter language code for the culture
void SetLanguageCode ( const FString& LangCode ) Sets the language code
void SetPluralForms ( const FString& InPluralForms ) Sets the language plural forms.
FString Variant () Retrieves the variant info for the culture

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library