jenkins-bot has submitted this change and it was merged.
Change subject: Set translation fallback to False per default
......................................................................
Set translation fallback to False per default
i18n.translate() is used for L10N whereas i18n translations
are done by i18n.tntranslate. Because L10N is site-dependend and
not language-dependent, fallback must be False per default.
Otherwise the given results (templates, categories etc.) may be
wrong.
Change-Id: I15956db5490dec4ca9f7d55d53eb2ebc1a633790
---
M pywikibot/i18n.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py
index 879093e..3ec974b 100644
--- a/pywikibot/i18n.py
+++ b/pywikibot/i18n.py
@@ -264,7 +264,7 @@
return message
-def translate(code, xdict, parameters=None, fallback=True):
+def translate(code, xdict, parameters=None, fallback=False):
"""Return the most appropriate translation from a translation dict.
@param code The language code
--
To view, visit
https://gerrit.wikimedia.org/r/133455
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I15956db5490dec4ca9f7d55d53eb2ebc1a633790
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>