Name : perl-Gettext
| |
Version : 0.01
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 7.75
| Date : 2024-08-05 17:46:51
|
Group : Development/Libraries/Perl
| Source RPM : perl-Gettext-0.01-7.75.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Perl extension for emulating gettext-related API.
|
Description :
Gettext.pm emulates the gettext library routines in Perl, although it calls the external utility program gettext to actually read .mo files.
man gettext on Solaris has pretty good documentation.
The steps to use this module are:
* *
install the gnu gettext package if necessary (not needed on Solaris or Red Hat)
* *
set TEXTDOMAINDIR, LANGUAGE, LANG, and LC_* if needed in your env.
* *
use xgettext on your script that contains gettext calles to make the .po (portable message object) file, run msgfmt to make the .mo (message object) file, and move the .mo file to where you want it, normally $TEXTDOMAINDIR/lang/LC_MESSAGES.
* *
call setlocale before calling these functions.
use Gettext;
my $gt = new Gettext;
$gt->textdomain(\'domainname\');
$gt->bindtextdomain(\'domainname\', \'dirname\');
$gt->gettext(\'msgid\');
$gt->dgettext(\'domainname\', \'msgid\');
$gt->dcgettext(\'domainname\', \'msgid\', \'category (locale)\');
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-G/openSUSE_Tumbleweed/noarch |