File: template.tt

package info (click to toggle)
libtemplate-plugin-gettext-perl 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 352 kB
  • sloc: perl: 1,317; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
[% USE gtx = Gettext %]
[% gtx.gettext("Hello, world!\n") %]

[% # TRANSLATORS: A translator comment.
   gtx.gettext("Translator comment above.\n") %]

[% gtx.pxgettext("method", "Hello, {name}!", name => "N. N.") %]

[% FILTER xgettextp("filter", who => 'world') %]
Hello, {who}!
[% END %]

[% "Hello, {arg}!" | xgettextp("pipe", arg => 'world') %]