Navigation
Unreal Engine C++ API Reference > Developer > Localization
References
Module | Localization |
Header | /Engine/Source/Developer/Localization/Public/PortableObjectFormatDOM.h |
Include | #include "PortableObjectFormatDOM.h" |
Syntax
class FPortableObjectFormatDOM
Remarks
Contains all the info we need to represent files in the Portable Object format.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FPortableObjectFormatDOM
(
const FString& LanguageCode |
||
![]() |
FPortableObjectFormatDOM
(
const FPortableObjectFormatDOM& |
Copying is not supported |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | AddEntry
(
const TSharedRef< FPortableObjectEntry > LocEntry |
Adds a translation entry to the Portable Object. |
![]() |
void | CreateNewHeader
(
const FString& InCopyrightNotice |
Creates a header entry based on the project and language info. |
![]() ![]() |
TSharedPtr< FPortableObjectEntry > | FindEntry
(
const TSharedRef< const FPortableObjectEntry > LocEntry |
Returns the Portable Object entry that matches the passed in entry or NULL if not found |
![]() ![]() |
TSharedPtr< FPortableObjectEntry > | FindEntry
(
const FString& MsgId, |
Returns the Portable Object file entry that matches the passed in parameters or NULL if not found |
![]() |
bool | FromString
(
const FString& InStr, |
Parses Portable Object elements from a string. |
![]() ![]() |
FPortableObjectEntries::TConstIterator | ||
![]() ![]() |
FString | Sets the project name from the Project-Id-Version header entry | |
![]() |
void | SetHeaderValue
(
const FString& EntryKey, |
Sets a header entry value. Must be called after CreateNewHeader. |
![]() |
bool | SetLanguage
(
const FString& LanguageCode, |
Sets the language. |
![]() |
void | SetProjectName
(
const FString& ProjName |
Sets the project name that will appear in the Project-Id-Version header entry |
![]() |
void | SortEntries () |
|
![]() |
FString | ToString () |
Creates a string representation of the Portable Object. |
![]() |
void | ToString
(
FString& OutString |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FPortableObjectFormatDOM & | operator=
(
const FPortableObjectFormatDOM& |