[PATCH 5/5] gettext docs: the Git::I18N Perl interface
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Sep 10, 2010, 19:35 UTC
- Message-ID
- <1284147353-18000-6-git-send-email-avarab@gmail.com>
- In-Reply-To
- <AANLkTikdHZFmXAdABvS9hPXtbXNJU5NdCOrw5_KP73bX@mail.gmail.com>
Change po/README's "Marking strings for translation" section so that it covers the Git::I18N Perl interface.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- po/README | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/po/README b/po/README index 513cf32..0d1cfa0 100644 --- a/po/README +++ b/po/README @@ -178,3 +178,14 @@ Shell: command to be translated) for examples is also useful: git log --reverse -p --grep=gettextize git-am.sh + +Perl: + + - The Git::I18N module provides a limited subset of the + Locale::Messages functionality, e.g.: + + use Git::I18N; + print __("Welcome to Git!\n"); + printf __("The following error occured: %s\n"), $error; + + Run `perldoc perl/Git/I18N.pm` for more info.
-- 1.7.2.3.313.gcd15