Commit 4e3a6245 authored by Michal Čihař's avatar Michal Čihař

Always convert to int before comparing

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent c40389a2
......@@ -139,7 +139,7 @@ def format_translation(value, language, diff=None, search_match=None,
plurals = split_plural(value)
# Show plurals?
if num_plurals <= 1:
if int(num_plurals) <= 1:
plurals = plurals[:1]
# Newline concatenator
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment