Skip to content

Commit

Permalink
stick to current language
Browse files Browse the repository at this point in the history
  • Loading branch information
agitator committed Jun 17, 2019
1 parent 220772d commit 9ae4f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/taxonomy/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def translate(self, msgid, mapping=None, context=None,

if target_language is None or \
target_language not in self.inverted_data:
target_language = self.default_language
target_language = str(api.portal.get_current_language())

if msgid not in self.inverted_data[target_language]:
return ''
Expand Down

0 comments on commit 9ae4f36

Please sign in to comment.