PGetText - pure perl i18n routines


Locale-PGetText documentation  | view source Contained in the Locale-PGetText distribution.

Index


NAME

Top

PGetText - pure perl i18n routines

SYNOPSIS

Top

 


  use Locale::PGetText;

  Locale::PGetText::setLocaleDir('/usr/local/perl/locale');
  Locale::PGetText::setLanguage('ru-koi8r');

  print gettext("Welcome!"), "\n";

DESCRIPTION

Top

PGetText provides the same functionality as GNU gettext does, but it is written in pure perl and doesn't require any system locale stuff.

setLocaleDir() sets directory where messages database is stored (there are no default and no domains).

setLanguage() switches languages.

gettext() retrieves message in local language corresponding to given message.

SEE ALSO

Top

MsgFormat(1)

AUTHOR

Top

Mike Shoyher <msh@corbina.net>, <msh@apache.lexa.ru>


Locale-PGetText documentation  | view source Contained in the Locale-PGetText distribution.