syncthing-gtk icon indicating copy to clipboard operation
syncthing-gtk copied to clipboard

Use ngettext

Open afranke opened this issue 4 years ago • 0 comments

For cases such as https://github.com/syncthing/syncthing-gtk/blob/master/syncthing_gtk/editordialog.py#L432 where a string is used with a numeric value, you need to use ngettext instead of regular gettext + conditions. Not all languages have the same plural rules as English (which just has one vs many) and ngettext takes care of that for you.

More info is available at https://wiki.gnome.org/TranslationProject/DevGuidelines/Plurals

afranke avatar Oct 09 '19 16:10 afranke