Skip to content

TMOFile

Class providing access to a .mo file.

Declaration

Source position: gettext.pp line 60

type

  TMOFile = class
  public
    constructor Create(const AFilename: string);
    constructor Create(AStream: TStream);
    destructor Destroy;
    function Translate(AOrig: PAnsiChar; ALen: Integer; AHash: LongWord)
                   : RTLString;
    function Translate(const AOrig: RTLString; AHash: LongWord) : RTLString;
    function Translate(const AOrig: RTLString) : RTLString;
  end;

Inheritance

Description

TMOFile is a class providing easy access to a .mo file. It can be used to translate any of the strings that reside in the .mo file. The internal structure of the .mo is completely hidden.

Methods

Member Visibility Description
Create public Create a new instance of the TMOFile class.
Destroy public Removes the TMOFile instance from memory.
Translate public Translate a string.