Skip to content

Reference for unit 'GetText'

Unit implementing resource string translation using gettext files.

uses

Used units Description
System
sysutils
Classes
Types

Overview

The gettext unit can be used to hook into the resource string mechanism of Free Pascal to provide translations of the resource strings, based on the GNU gettext mechanism. The unit provides a class (TMOFile) to read the .mo files with localizations for various languages. It also provides a couple of calls to translate all resource strings in an application based on the translations in a .mo file.