On Thu, Dec 13, 2012 at 04:25:56PM +0400, Свистунов Сергей wrote:
> xgettext не умеет работать с шаблонами TT:
>
> $ cat test.tt2
> [% gettext('test') %]
> 'Hello [% gettext('world') %]'
>
> $ xgettext -Lperl test.tt2 -o-
...
Вы прочитали моё письмо?
$ xgettext -Lperl --keyword=gettext:1 test.tt2 -o-
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-12-13 17:10+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: test.tt2:1
msgid "test"
msgstr ""
--
Vladimir Lettiev aka crux ✉ [email protected]
--
Moscow.pm mailing list
[email protected] | http://moscow.pm.org