Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Locale-Maketext-Lexicon CPAN distribution.

Report information
The Basics
Id: 36496
Status: resolved
Priority: 0/
Queue: Locale-Maketext-Lexicon

People
Owner: Nobody in particular
Requestors: ask [...] develooper.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Support [% "foobar" | l %] template toolkit filter
Currently xgettext.pl only supports this variant of using template toolkit filters: [% |l %]foobar[% END %] It'd be nice if it'd also support [% 'foobar' | l %]
Subject: Support also [% "foobar" | loc %] template toolkit filter
This request is great, but we should not forget the "loc" version. So: [% 'foobar' | loc %] should also work. On Thu Jun 05 18:35:18 2008, ask@develooper.com wrote: Show quoted text
> Currently xgettext.pl only supports this variant of using template > toolkit filters: > > [% |l %]foobar[% END %] > > It'd be nice if it'd also support [% 'foobar' | l %] > >
Subject: Support [% "foobar" | loc %] template toolkit filter
There is also the: [% FILTER loc ...%] ... [%END%] and [% FILTER l ...%] ... [%END%] versions that need to be supported. Also, there may be parameters that are being passed to "loc" (or "l"). So it's no necessarily whitespace until the '%]'. So, to sum it up, the following forms need support for template toolkit: [%|loc ..%] ... [%END%] [%|l ..%] ... [%END%] [% ... | loc ..%] [% ... | l ..%] [%FILTER loc ..%] ... [%END%] [%FILTER l ..%] ... [%END%] Here, three dots(...) reperesents a localizable string whereas two dots (..) represent a sequence of parameters that are passed to the filter.
From: felix.ostmann [...] thewar.de
You can also chain filters! [% | loc | html_line_break -%] lokate this! [% END -%]
On Mon Jul 21 19:43:28 2008, AULUSOY wrote: Show quoted text
> There is also the: > > [% FILTER loc ...%] ... [%END%] > and > [% FILTER l ...%] ... [%END%] > > versions that need to be supported. > > Also, there may be parameters that are being passed to "loc" (or "l"). > So it's no necessarily whitespace until the '%]'. > > So, to sum it up, the following forms need support for template toolkit: > > [%|loc ..%] ... [%END%] > [%|l ..%] ... [%END%] > > [% ... | loc ..%] > [% ... | l ..%] > > [%FILTER loc ..%] ... [%END%] > [%FILTER l ..%] ... [%END%] > > > Here, three dots(...) reperesents a localizable string whereas two dots > (..) represent a sequence of parameters that are passed to the filter. > > >