From f0018d2ba9615a9ac53c0d7679f358cb97aa7fec Mon Sep 17 00:00:00 2001 From: ldaverio Date: Fri, 1 May 2015 19:09:46 +0200 Subject: Provide a testcase for pull request #18. --- test/templates/gettext.mako | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/templates/gettext.mako b/test/templates/gettext.mako index ad07c5d..947d76c 100644 --- a/test/templates/gettext.mako +++ b/test/templates/gettext.mako @@ -97,3 +97,13 @@ ${_(u'bar')} ## TRANSLATOR: we still ignore comments too far from the string

${_("No action at a distance.")}

+ +## TRANSLATOR: this block should be ignored during extraction + +% if 1==1: +

One is one!

+% elif 1==2: +

One is two!

+% else: +

How much is one?

+% endif -- cgit v1.2.3