Skip to content

Commit

Permalink
No decimals on badge
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jan 14, 2015
1 parent f299cdd commit ce8011a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/trans/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def render(self):
font = get_font(11, False, is_base(translated_text))
translated_width = font.getsize(translated_text)[0] + 12

percent_text = self.get_text('%(percent)s%%')
percent_text = '{0}%'.format(int(self.percent))
font = get_font(11, False, is_base(percent_text))
percent_width = font.getsize(percent_text)[0] + 7

Expand Down

0 comments on commit ce8011a

Please sign in to comment.