TDefaultTranslator.Create constructor
Constructor for the class instance.
Declaration
constructor Create(MOFileName: string)
constructor Create(aMOFile: TMOFile)Arguments
MOFileName | .mo file name used in the class instance. |
aMOFile | .mo file (TMOFile) instance used in the class. |
Description
Create is an overloaded constructor in
TDefaultTranslator. The overloaded variants allow an MO file to be
specified for the translator as either a path to a file name or as a TMOFile
instance.
One variant includes the MOFileName argument which specifies a
qualified file name with the .MO file content used to translate string
properties. UTF8ToSys is called to convert any UTF-8-encoded values in
MOFileName to the default encoding used for the platform or OS.
Another variant allows a TMOFile instance to be passed to the class.
Both variants call the inherited constructor, and initialize and / or store the TMOFile instance used in the class instance.
Modified in LCL version 4.5 to include a constructor which accepts a TMOFile instance.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
