https://bugzilla.wikimedia.org/show_bug.cgi?id=61119
Web browser: ---
Bug ID: 61119
Summary: Querying allmessages always returns English values
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: nullzero.free(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
print api.Request(site=pywikibot.getSite(), action='query',
meta='allmessages|siteinfo', ammessages="january").submit()
returns
{u'query': {u'allmessages': [{u'*': u'January',
u'name': u'january'}], ......,
u'lang': u'th', u'wikiid': u'thwiki', ......}
Obviously, it queried in the correct site but got untranslated message.
----
print api.Request(site=pywikibot.getSite(), action='query',
meta='allmessages|siteinfo', ammessages="january",
amlang="th").submit()
returns
{u'query': {u'allmessages': [{u'*':
u'\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21',
u'name': u'january'}], ......}
Now it returns correct message.
----
http://th.wikipedia.org/w/api.php?action=query&meta=allmessages&amm…
returns
......
<message name="january"
xml:space="preserve">มกราคม</message>
......
It also returns correct message.
So, what happens here?
--
You are receiving this mail because:
You are the assignee for the bug.