Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-pascal / hello.pas
blob3a10bdc336c354e8d114ffa6e5c7000c8d398d00
1 { Example for use of GNU gettext.
2 This file is in the public domain.
4 Source code of the Pascal program. }
6 program hello;
7 {$mode delphi}
9 uses gettext, { translateresourcestrings }
10 sysutils; { format }
12 resourcestring
13 hello_world = 'Hello, world!';
14 running_as = 'This program is running as process number %d.';
16 begin
17 translateresourcestrings({$i %LOCALEDIR%}+'/%s/LC_MESSAGES/hello-pascal.mo');
18 writeln(hello_world);
19 writeln(format(running_as,[GetProcessID]));
20 end.