Next: Modula-2, Previous: Lua, Up: Individual Programming Languages [Contents][Index]
fpc
fp-compiler, fp-units-fcl
pp, pas
'abc'
automatic
—, use ResourceString data type instead
—, use TranslateResourceStrings function instead
—, use TranslateResourceStrings function instead
automatic, but uses only LANG, not LC_MESSAGES or LC_ALL
{$mode delphi} or {$mode objfpc}uses gettext;
emulate partially
ppc386 followed by xgettext or rstconv
uses sysutils;format "%1:d %0:d"
?
—
The Pascal compiler has special support for the ResourceString data
type. It generates a .rst file. This is then converted to a
.pot file by use of xgettext or rstconv. At runtime,
a .mo file corresponding to translations of this .pot file
can be loaded using the TranslateResourceStrings function in the
gettext unit.
An example is available in the examples directory: hello-pascal.