Added new testcase
--HG--
branch : trunk
diff --git a/jinja2/ext.py b/jinja2/ext.py
index ddab4fb..ceb3895 100644
--- a/jinja2/ext.py
+++ b/jinja2/ext.py
@@ -327,7 +327,7 @@
vars_referenced, num_called_num):
"""Generates a useful node from the data provided."""
# no variables referenced? no need to escape for old style
- # gettext invocations
+ # gettext invocations only if there are vars.
if not vars_referenced and not self.environment.newstyle_gettext:
singular = singular.replace('%%', '%')
if plural: