Unit 'gettext' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TranslateResourceStrings

Translate the resource strings of the application.

Declaration

Source position: gettext.pp line 79

procedure TranslateResourceStrings(

  AFile: TMOFile

);

procedure TranslateResourceStrings(

  const AFilename: AnsiString

);

Arguments

AFile

  

TMOfile instance with translated strings.

Arguments

AFilename

  

Name of .mo file with translated strings.

Description

TranslateResourceStrings translates all the resource strings in the application based on the values in the .mo file AFileName or AFile. The procedure creates an TMOFile instance to read the .mo file if a filename is given.

Errors

If the file does not exist or is an invalid .mo file.

See also

TranslateUnitResourceStrings

  

Translate the resource strings of a unit.

TMOFile

  

Class providing access to a .mo file.


Documentation generated on: Dec 22 2024