extensions: Fix ngettext convenience

It is hooked up to the extension's 'gettext' function rather
than 'ngettext'.

Fixes: f59d523694 ("extensions: Add static defineTranslationFunctions() method")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2952>
This commit is contained in:
Florian Müllner 2023-09-15 15:06:05 +02:00
parent 405b549a05
commit 41907e9a56

View File

@ -227,7 +227,7 @@ export class GettextWrapper {
#ngettext(str, strPlural, n) {
const extension = this.#lookupExtension('ngettext');
return extension.gettext(str, strPlural, n);
return extension.ngettext(str, strPlural, n);
}
#pgettext(context, str) {