No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / examples / hello-pascal / hello.pas
blobe5af3da681c04e08744672838165976e1f52bb98
1 { Example for use of GNU gettext.
2 Copyright (C) 2003 Free Software Foundation, Inc.
3 This file is in the public domain.
5 Source code of the Pascal program. }
7 program hello;
8 {$mode delphi}
10 uses gettext, { translateresourcestrings }
11 linux, { getpid }
12 sysutils; { format }
14 resourcestring
15 hello_world = 'Hello, world!';
16 running_as = 'This program is running as process number %d.';
18 begin
19 translateresourcestrings({$i %LOCALEDIR%}+'/%s/LC_MESSAGES/hello-pascal.mo');
20 writeln(hello_world);
21 writeln(format(running_as,[getpid]));
22 end.