jenkins-bot has submitted this change and it was merged.
Change subject: Remove fallback from Persian to Arabic (update from compat)
......................................................................
Remove fallback from Persian to Arabic (update from compat)
As a Persian I need to say, Arabic and Persian just have the writing system in common and even they belong to different lingual groups.fa belongs to Indio-Europian and Arabic is Semetic. Returning to Arabic when fa message doesn't exists make Persian people angryBecaue they don't like to be mistaken as Arabs and this retuning has no advantage for Persian, Persians know English better than Arabic
https://gerrit.wikimedia.org/r/#/c/93025/
Change-Id: Iac4534c72bfc0b66959eba5442d882f4244f7c9c
---
M pywikibot/i18n.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py
index 4a96bbe..b2952d7 100644
--- a/pywikibot/i18n.py
+++ b/pywikibot/i18n.py
@@ -43,7 +43,7 @@
if code in ['aa', 'ti']:
return ['am']
#Arab
- if code in ['arc', 'arz', 'fa', 'so']:
+ if code in ['arc', 'arz', 'so']:
return ['ar']
if code == 'kab':
return ['ar', 'fr']
--
To view, visit https://gerrit.wikimedia.org/r/93028
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iac4534c72bfc0b66959eba5442d882f4244f7c9c
Gerrit-PatchSet: 1
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
jenkins-bot has submitted this change and it was merged.
Change subject: Fixup 920ba1f - make -help work again
......................................................................
Fixup 920ba1f - make -help work again
We need to explicitly use pywikibot.argvu, or else two
copies of this array will be floating around (pywikibot.argvu
and pywikibot.bot.argvu). Setting it explicitly on pywikibot
makes sure the second one doesn't exist. Furthermore, make sure
the script name parser uses the working argvu.
Lastly, make the generic argument parser call pywikibot.argvu
instead of re-importing argvu locally.
Change-Id: I35ce3582bb74037d517a714d9d5f467d6b868bdb
---
M pywikibot/bot.py
1 file changed, 3 insertions(+), 4 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index bb793c8..ca06ce0 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -40,7 +40,7 @@
% config.userinterface,
fromlist=['UI'])
ui = uiModule.UI()
-argvu = ui.argvu()
+pywikibot.argvu = ui.argvu()
# Logging module configuration
@@ -501,7 +501,7 @@
"""
# get commandline arguments
- called = argvu[0].strip()
+ called = pywikibot.argvu[0].strip()
if ".py" in called: # could end with .pyc, .pyw, etc. on some platforms
# clip off the '.py?' filename extension
called = called[:called.rindex('.py')]
@@ -523,8 +523,7 @@
if not args:
# it's the version in pywikibot.__init__ that is changed by scripts,
# not the one in pywikibot.bot.
- from pywikibot import argvu
- args = argvu[1:]
+ args = pywikibot.argvu[1:]
# get the name of the module calling this function. This is
# required because the -help option loads the module's docstring and because
# the module name will be used for the filename of the log.
--
To view, visit https://gerrit.wikimedia.org/r/93103
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I35ce3582bb74037d517a714d9d5f467d6b868bdb
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot