jenkins-bot has submitted this change and it was merged.
Change subject: [L10N] Revert "set fallback to False for L10N, update from trunk
r11428"
......................................................................
[L10N] Revert "set fallback to False for L10N, update from trunk r11428"
fallback is set to False by default
This reverts commit 9cf605628c9458cd7269df3f448520d36de23e38.
Change-Id: Ie343c69dff4dc492702bb89eefc9fbe63dbddcde
---
M scripts/clean_sandbox.py
1 file changed, 3 insertions(+), 6 deletions(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py
index d284f4a..78b3272 100755
--- a/scripts/clean_sandbox.py
+++ b/scripts/clean_sandbox.py
@@ -150,8 +150,7 @@
self.site.login()
if self.getOption('user'):
localSandboxTitle = pywikibot.translate(self.site,
- user_sandboxTemplate,
- fallback=False)
+ user_sandboxTemplate)
localSandbox = pywikibot.Page(self.site, localSandboxTitle)
content.update(user_content)
sandboxTitle[self.site.lang] = [item.title() for item in
@@ -171,8 +170,7 @@
while True:
wait = False
now = time.strftime("%d %b %Y %H:%M:%S (UTC)", time.gmtime())
- localSandboxTitle = pywikibot.translate(self.site, sandboxTitle,
- fallback=False)
+ localSandboxTitle = pywikibot.translate(self.site, sandboxTitle)
if type(localSandboxTitle) is list:
titles = localSandboxTitle
else:
@@ -183,8 +181,7 @@
% sandboxPage.title(asLink=True))
try:
text = sandboxPage.get()
- translatedContent = pywikibot.translate(self.site, content,
- fallback=False)
+ translatedContent = pywikibot.translate(self.site, content)
translatedMsg = i18n.twtranslate(self.site,
'clean_sandbox-cleaned')
subst = 'subst:' in translatedContent
--
To view, visit
https://gerrit.wikimedia.org/r/133673
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie343c69dff4dc492702bb89eefc9fbe63dbddcde
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 <>