Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Git::I18N

Name Git::I18N
Version
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/Git/I18N.pm
Is Core No
Search CPAN for this module Git::I18N
Documentation Git::I18N
Module Details Git::I18N

NAME

Git::I18N - Perl interface to Git's Gettext localizations


SYNOPSIS

        use Git::I18N;
        print __("Welcome to Git!\n");
        printf __("The following error occurred: %s\n"), $error;
        printf __n("committed %d file\n", "committed %d files\n", $files), $files;


DESCRIPTION

Git's internal Perl interface to gettext via the Locale::Messages manpage. If the Locale::Messages manpage can't be loaded (it's not a core module) we provide stub passthrough fallbacks.

This is a distilled interface to gettext, see info '(gettext)Perl' for the full interface. This module implements only a small part of it.


FUNCTIONS

__($)

the Locale::Messages manpage's gettext function if all goes well, otherwise our passthrough fallback function.

__n($$$)

the Locale::Messages manpage's ngettext function or passthrough fallback function.

N__($)

No-operation that only returns its argument. Use this if you want xgettext to extract the text to the pot template but do not want to trigger retrival of the translation at run time.


AUTHOR

Ævar Arnfjörð Bjarmason <avarab@gmail.com>


COPYRIGHT

Copyright 2010 Ævar Arnfjörð Bjarmason <avarab@gmail.com>

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024