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;
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.