kozec / syncthing-gtk

GTK3 & python based GUI for Syncthing
GNU General Public License v2.0
1.29k stars 140 forks source link

Use ngettext #533

Open afranke opened 4 years ago

afranke commented 4 years ago

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