GNOME Bugzilla – Bug 742491
Plural forms in the countdown
Last modified: 2015-01-07 19:57:30 UTC
Message "Settings will be reverted in %d seconds" in countdown take no account of plural forms.
Created attachment 294046 [details] [review] Use ngettext in settings revert warning
Review of attachment 294046 [details] [review]: Please factor this into a helper function so that we don't need to have the strings repeated. Fine to push with that change
Review of attachment 294046 [details] [review]: ::: gtweak/tweaks/tweak_group_windows.py @@ +81,3 @@ + self._second_message = gettext.ngettext(_("Settings will be reverted in %d second"), + _("Settings will be reverted in %d seconds"), + self._countdown); drop the ;
Created attachment 294049 [details] [review] Use ngettext in settings revert warning
Pushed the patch with the requested changes. Attachment 294049 [details] pushed as d2085e4 - Use ngettext in settings revert warning
This code calls gettext (macro _ ) inside ngettext. I fixed this omission in git.
Whoops, thanks for spotting that.