From b46780506abcfebdc086d30bf49eb58631d99fdb Mon Sep 17 00:00:00 2001 From: Frisk Date: Mon, 19 Sep 2022 13:23:52 +0200 Subject: [PATCH] Critical typo --- src/api/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/context.py b/src/api/context.py index 8da32b2..55ab4c6 100644 --- a/src/api/context.py +++ b/src/api/context.py @@ -35,7 +35,7 @@ class Context: self.comment_page = None self._ = language.gettext # Singular translations (ex. ctx._("Large goat")) self.gettext = language.gettext # In case you dislike _ or using "protected field" of ctx - self.ngettext = language.npgettext # Plural translations depending on amount (ex. ctx.ngettext("{} action", "{} actions", action_amount)) + self.ngettext = language.ngettext # Plural translations depending on amount (ex. ctx.ngettext("{} action", "{} actions", action_amount)) self.pgettext = language.pgettext # Translation with context (ex. ctx.pgettext("From mediawiki module", "Blocked {} user")) self.npgettext = language.npgettext # Plural translation with context (ex. ctx.npgettext("From mediawiki module", "Edited {} time", "Edited {} times", edit_amoint) self.settings = settings