FPortableObjectFormatDOM

Contains all the info we need to represent files 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 FPortableObjectFormatDOM  

Remarks

Contains all the info we need to represent files in the Portable Object format.

Constructors

Type Name Description
  FPortableObjectFormatDOM ()  
  FPortableObjectFormatDOM ( const FString& LanguageCode )  
  FPortableObjectFormatDOM ( const FPortableObjectFormatDOM& ) Copying is not supported

Functions

Type Name Description
bool AddEntry ( const TSharedRef< FPortableObjectEn... ) 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< ... FindEntry ( const TSharedRef< const FPortableOb... ) Returns the Portable Object entry that matches the passed in entry or NULL if not found
TSharedPtr< ... FindEntry ( const FString& MsgId, const FString& MsgIdPlural, const FString& MsgCtxt ) Returns the Portable Object file entry that matches the passed in parameters or NULL if not found
bool FromString ( const FString& InStr, FText* OutErrorMsg ) Parses Portable Object elements from a string.
FPortableObj... GetEntriesIterator ()  
FString GetProjectName () Sets the project name from the Project-Id-Version header entry
void SetHeaderValue ( const FString& EntryKey, const FString& EntryValue ) Sets a header entry value. Must be called after CreateNewHeader.
bool SetLanguage ( const FString& LanguageCode, const FString& LangPluralForms ) 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.

Operators

Type Name Description
FPortableObj... operator= ( const FPortableObjectFormatDOM& )  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library