Class TCastleMOFile

Unit

Declaration

type TCastleMOFile = class(TMOFile)

Description

TMOFile descendant that allows iterating through all strings.

Hierarchy

  • TObject
  • TMOFile
  • TCastleMOFile

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[const AIndex: Cardinal]: String read GetKey;
Public property Values[const AIndex: Cardinal]: String read GetValue;

Description

Methods

Public constructor Create(const Stream: TStream);

This item has no description.

Public constructor Create(const Url: String);

This item has no description.

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;

This item has no description.

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

This item has no description.

Properties

Public property Count: Cardinal read StringCount;

This item has no description.

Public property Keys[const AIndex: Cardinal]: String read GetKey;

This item has no description.

Public property Values[const AIndex: Cardinal]: String read GetValue;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.