logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Locale::gettext_pp - Pure Perl Implementation of Uniforum Message Translation

Author

Copyright (C) 2002-2017 Guido Flohr <http://www.guido-flohr.net/> (<mailto:guido.flohr@cantanea.com>), all rights reserved. See the source code for details!code for details!

Constants

You can (maybe) get the same constants from POSIX(3); see there for a detailed description LC_CTYPELC_NUMERICLC_TIMELC_COLLATELC_MONETARYLC_MESSAGESLC_ALL See "CONSTANTS" in Locale::Messages for more information.

Description

The module Locale::gettext_pp is the low-level interface to message translation according to the Uniforum approach that is for example used in GNU gettext and Sun's Solaris. Normally you should not use this module directly, but the high level interface Locale::TextDomain(3) that provides a much simpler interface. This description is therefore deliberately kept brief. Please refer to the GNU gettext documentation available at <http://www.gnu.org/manual/gettext/> for in-depth and background information on the topic.

Export Tags

This module does not export anything unless explicitly requested. You can import groups of functions via two tags: useLocale::gettext_ppqw(':locale_h') Imports the functions that are normally defined in the C include file locale.h: gettext()dgettext()dcgettext()ngettext()dngettext()dcngettext()pgettext() Introduced with libintl-perl 1.17. dpgettext() Introduced with libintl-perl 1.17. dcpgettext() Introduced with libintl-perl 1.17. npgettext() Introduced with libintl-perl 1.17. dnpgettext() Introduced with libintl-perl 1.17. dcnpgettext() Introduced with libintl-perl 1.17. textdomain()bindtextdomain()bind_textdomain_codeset()useLocale::gettext_pp(':libintl_h') Imports the locale category constants: LC_CTYPELC_NUMERICLC_TIMELC_COLLATELC_MONETARYLC_MESSAGESLC_ALL

Functions

The module exports by default nothing. Every function has to be imported explicitly or via an export tag ("EXPORT TAGS"). gettextMSGID See "FUNCTIONS" in Locale::Messages. dgettextTEXTDOMAIN,MSGID See "FUNCTIONS" in Locale::Messages. dcgettextTEXTDOMAIN,MSGID,CATEGORY See "FUNCTIONS" in Locale::Messages. ngettextMSGID,MSGID_PLURAL,COUNT See "FUNCTIONS" in Locale::Messages. dngettextTEXTDOMAIN,MSGID,MSGID_PLURAL,COUNT See "FUNCTIONS" in Locale::Messages. dcngettextTEXTDOMAIN,MSGID,MSGID_PLURAL,COUNT,CATEGORY See "FUNCTIONS" in Locale::Messages. pgettextMSGCTXT,MSGID See "FUNCTIONS" in Locale::Messages. dpgettextTEXTDOMAIN,MSGCTXT,MSGID See "FUNCTIONS" in Locale::Messages. dcpgettextTEXTDOMAIN,MSGCTXT,MSGID,CATEGORY See "FUNCTIONS" in Locale::Messages. npgettextMSGCTXT,MSGID,MSGID_PLURAL,COUNT See "FUNCTIONS" in Locale::Messages. dnpgettextTEXTDOMAIN,MSGCTXT,MSGID,MSGID_PLURAL,COUNT See "FUNCTIONS" in Locale::Messages. dcnpgettextTEXTDOMAIN,MSGCTXT,MSGID,MSGID_PLURAL,COUNT,CATEGORY See "FUNCTIONS" in Locale::Messages. textdomainTEXTDOMAIN See "FUNCTIONS" in Locale::Messages. bindtextdomainTEXTDOMAIN,DIRECTORY See "FUNCTIONS" in Locale::Messages. bind_textdomain_codesetTEXTDOMAIN,ENCODINGnl_putenvENVSPEC See "FUNCTIONS" in Locale::Messages. setlocale See "FUNCTIONS" in Locale::Messages.

Name

Locale::gettext_pp - Pure Perl Implementation of Uniforum Message Translation

See Also

Locale::TextDomain(3pm), Locale::Messages(3pm), Encode(3pm), perllocale(3pm), POSIX(3pm), perl(1), gettext(1), gettext(3) perl v5.40.0 2025-02-15 Locale::gettext_pp(3pm)

Synopsis

use Locale::gettext_pp qw(:locale_h :libintl_h); gettext $msgid; dgettext $domainname, $msgid; dcgettext $domainname, $msgid, LC_MESSAGES; ngettext $msgid, $msgid_plural, $count; dngettext $domainname, $msgid, $msgid_plural, $count; dcngettext $domainname, $msgid, $msgid_plural, $count, LC_MESSAGES; pgettext $msgctxt, $msgid; dpgettext $domainname, $msgctxt, $msgid; dcpgettext $domainname, $msgctxt, $msgid, LC_MESSAGES; npgettext $msgctxt, $msgid, $msgid_plural, $count; dnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count; dcnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count, LC_MESSAGES; textdomain $domainname; bindtextdomain $domainname, $directory; bind_textdomain_codeset $domainname, $encoding; my $category = LC_CTYPE; my $category = LC_NUMERIC; my $category = LC_TIME; my $category = LC_COLLATE; my $category = LC_MONETARY; my $category = LC_MESSAGES; my $category = LC_ALL;

See Also