Skip to content

Commit

Permalink
Follow-up to last commit: fixed plural/singular in status bar extra
Browse files Browse the repository at this point in the history
Coin/Coins depending on if it's 1 or != 1
  • Loading branch information
cculianu committed Mar 8, 2019
1 parent b9a6687 commit c447a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/shuffle/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,8 @@ def balance_label_extra(self, window):
totShuf, nShuf = shuf
window.send_tab_shuffle_extra.refresh(shuf, unshuf, uprog)
if nShuf:
return _('Shuffled: {} {} in {} Coins').format(window.format_amount(totShuf).strip(), window.base_unit(), nShuf)
return (_('Shuffled: {} {} in {} Coin'),
_('Shuffled: {} {} in {} Coins'))[0 if nShuf == 1 else 1].format(window.format_amount(totShuf).strip(), window.base_unit(), nShuf)
return None

@hook
Expand Down

0 comments on commit c447a66

Please sign in to comment.