Class TCastleMOFile

Unit

Declaration

type TCastleMOFile = class(TMOFile)

Description

TMOFile descendant that allows iterating through all strings.

Hierarchy

Overview

Methods

Public constructor Create(const Stream: TStream);
Public constructor Create(const Url: String);
Public function ContainsKey(const TranslationId: String): Boolean;
Public function ContainsKeyWithContext(const Context, Id: String): Boolean;
Public function TranslateWithContext(const Context, Id: String): String;

Properties

Public property Count: Cardinal read StringCount;
Public property Keys[constAIndex:Cardinal]: String read GetKey;
Public property Values[constAIndex:Cardinal]: String read GetValue;

Description

Methods

Public constructor Create(const Stream: TStream);
 
Public constructor Create(const Url: String);
 
Public function ContainsKey(const TranslationId: String): Boolean;

Does the given id exist in MO file. Using it is much slower than just attempting to translate using Translate method, but allows to recognize when a key is missing (as opposed to when a key translation is empty).

Public function ContainsKeyWithContext(const Context, Id: String): Boolean;
 
Public function TranslateWithContext(const Context, Id: String): String;
 

Properties

Public property Count: Cardinal read StringCount;
 
Public property Keys[constAIndex:Cardinal]: String read GetKey;
 
Public property Values[constAIndex:Cardinal]: String read GetValue;
 

Generated by PasDoc 0.16.0.