{ GPC demo program for the GetText feature of the
  internationalization unit.

  Copyright (C) 2001-2002 by Eike Lange

  Author: Eike Lange <eike.lange@uni-essen.de>

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License as
  published by the Free Software Foundation, version 2.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; see the file COPYING. If not, write to
  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.

  As a special exception, if you incorporate even large parts of the
  code of this demo program into another program with substantially
  different functionality, this does not cause the other program to
  be covered by the GNU General Public License. This exception does
  not however invalidate any other reasons why it might be covered
  by the GNU General Public License. }

program GetTextDemo;

uses GPC, Intl;

var
  Dummy: TString;

begin
  WriteLn (
'This demo translates the string `Exit'' to the representation of
your locale.

It assumes that you have `mutt'' (an email client) installed. If you
have not, please change the sources to another program with `.mo''
files installed. The path to the `.mo'' file is hard coded. Please
change if its different on your system.

For a German locale, the output should be as follows:
de_DE
Verlassen

Starting:');
  WriteLn (SetLocale (LC_MESSAGES, ''));
  Dummy := BindTextDomain ('mutt', '/usr/share/locale');
  Dummy := TextDomain ('mutt');
  WriteLn (GetText ('Exit'))
end.
