jenkins-bot has submitted this change and it was merged.
Change subject: synchronize i18n.py with compat
......................................................................
synchronize i18n.py with compat
Change-Id: Ic04a243a2f120145b572f7d3013694ce32a44495
---
M pywikibot/i18n.py
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py
index 4a96bbe..d2d9cef 100644
--- a/pywikibot/i18n.py
+++ b/pywikibot/i18n.py
@@ -384,7 +384,7 @@
Support is implemented like in MediaWiki extension. If the tw message
contains a plural tag inside which looks like
{{PLURAL:<number>|<variant1>|<variant2>[|<variantn>]}}
- it takes that variant calculated by the plural_func depending on the number
+ it takes that variant calculated by the plural_rules depending on the number
value.
Examples:
@@ -502,6 +502,7 @@
default is os locale setting
"""
- code = config.userinterface_lang or
locale.getdefaultlocale()[0].split('_')[0]
+ code = config.userinterface_lang or \
+ locale.getdefaultlocale()[0].split('_')[0]
trans = twtranslate(code, twtitle, parameters)
return pywikibot.input(trans, password)
--
To view, visit
https://gerrit.wikimedia.org/r/91415
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic04a243a2f120145b572f7d3013694ce32a44495
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot