-
-
10 Oct 2017 00:27:47 UTC
- Distribution: Git
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (4)
- Testers (2773 / 0 / 1)
- Kwalitee
Bus factor: 0- % Coverage
- License: open_source
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (78.01KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
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 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.FUNCTIONS
__($)
Locale::Messages's gettext function if all goes well, otherwise our passthrough fallback function.
__n($$$)
Locale::Messages'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>
Module Install Instructions
To install Git, copy and paste the appropriate command in to your terminal.
cpanm Git
perl -MCPAN -e shell install Git
For more information on module installation, please visit the detailed CPAN module installation guide.