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@lists.wikimedia.org Reporter: nullzero.free@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&amme...
returns
...... <message name="january" xml:space="preserve">มกราคม</message> ......
It also returns correct message.
So, what happens here?