GNOME Bugzilla – Bug 763742
Bad handle with plural forms
Last modified: 2016-03-16 12:38:52 UTC
if (nargs_min != nargs_max) *out_error = g_strdup_printf (_("option %s expects between %u and %u arguments"), params[0], nargs_min, nargs_max); else if (nargs_min == 0) *out_error = g_strdup_printf (_("option %s expects no arguments"), params[0]); else if (nargs_min == 1) *out_error = g_strdup_printf (_("option %s expects exactly one argument"), params[0]); else *out_error = g_strdup_printf (_("option %s expects exactly %u arguments"), params[0], nargs_min); from properties/import-export.c is completely wrong in terms of translation. You need use ngettext function: https://wiki.gnome.org/TranslationProject/DevGuidelines/Plurals https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html A right code would be e.g. this: if (nargs_min != nargs_max) *out_error = g_strdup_printf (ngettext("option %s expects between %u and %u argument", "option %s expects between %u and %u arguments", nargs_max), params[0], nargs_min, nargs_max); else if (nargs_min == 0) *out_error = g_strdup_printf (_("option %s expects no arguments"), params[0]); else *out_error = g_strdup_printf (ngettext("option %s expects exactly one argument", "option %s expects exactly %u arguments", nargs_min), params[0], nargs_min);
Fixed: https://git.gnome.org/browse/network-manager-openvpn/commit/?id=7579f5544648fc43f02a5c1714a0e1209ec3972f Thank you