Skip to content

Commit

Permalink
Convert things that are False to None
Browse files Browse the repository at this point in the history
  • Loading branch information
do3cc committed Jun 4, 2010
1 parent 64f317d commit 80e5677
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/z3c/pt/pagetemplate.py
Expand Up @@ -121,6 +121,8 @@ def render(target_language=None, request=request, **kwargs):
# bind translation-method to request
def translate(
msgid, domain=None, mapping=None, target_language=None, default=None):
if not msgid:
msgid = None
return fast_translate(
msgid, domain, mapping, request, target_language, default)
context[config.SYMBOLS.translate] = translate
Expand Down

0 comments on commit 80e5677

Please sign in to comment.