FPortableObjectCulture

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

Windows
MacOS
Linux

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

Name Description

Public function

FPortableObjectCulture()

Public function

FPortableObjectCulture

(
    const FString& LangCode,
    const FString& PluralForms
)

Functions

Name Description

Public function Const

FString

 

Country()

Retrieves the country info of the culture

Public function Const

FString

 

DisplayName()

Retrieves the display name for the language.

Public function Const

FString

 

EnglishName()

Retrieves the English name for the language.

Public function Const

FCulturePtr

 

GetCulture()

Retrieves the culture equivalent that matches the set language code.

Public function Const

const FStrin...

 

GetLanguageCode()

Retrieves the language code

Public function Const

FString

 

GetPluralForms()

Retrieves the language plural forms.

Public function Const

bool

 

IsValid()

Checks to see if we have a language code and if we were able to match a culture to that code

Public function Const

FString

 

Language()

Retrieves the two or three letter language code for the culture

Public function

void

 

SetLanguageCode

(
    const FString& LangCode
)

Sets the language code

Public function

void

 

SetPluralForms

(
    const FString& InPluralForms
)

Sets the language plural forms.

Public function Const

FString

 

Variant()

Retrieves the variant info for the culture

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss