Bug#724495: [liblocale-maketext-lexicon-perl] xgettext.pl should extract 'c.loc' from .tt/.tt2 files

Florian Schlichting fsfs at debian.org
Wed Mar 5 22:24:21 UTC 2014


On Tue, Sep 24, 2013 at 09:01:37PM +0400, Max V. Stotsky wrote:
> The simplest way to reproduce the problem:
> 
> % ls
> test.tt
> % cat test.tt
> 
> [% c.loc("first") %]
> [% c.l("second") %]
> [% l("third") %]
> [% loc("fourth") %]
> 
> % xgettext.pl --directory=.
> % ls
> messages.po  test.tt
> % cat messages.po
> # ... po headers ...
> 
> #: test.tt:5
> msgid "fourth"
> msgstr ""
> 
> #: test.tt:3
> msgid "second"
> msgstr ""
> 
> #: test.tt:4
> msgid "third"
> msgstr ""

this is interesting - thanks a lot for the example. For me, xgettext.pl
extracts all four msgids when libtemplate-perl is *not* installed, using
the Perl plugin. When Template is installed, though, the TT2 plugin is
used and only three strings are extracted.

Even though the POD claims "l and loc are interchangeable", c.loc does
not seem to be supported.

I'll forward this upstream, in the hope that they're willing to add
support for c.loc.

Florian



More information about the pkg-perl-maintainers mailing list