Git::I18N - Perl interface to Git's Gettext localizations
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;
Git's internal Perl interface to gettext via Locale::Messages. If Locale::Messages 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.
info '(gettext)Perl'
Locale::Messages's gettext function if all goes well, otherwise our passthrough fallback function.
Locale::Messages's ngettext function or passthrough fallback function.
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.
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Copyright 2010 Ævar Arnfjörð Bjarmason <avarab@gmail.com>
To install Git, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git
CPAN shell
perl -MCPAN -e shell install Git
For more information on module installation, please visit the detailed CPAN module installation guide.