[Bug 61119] Querying allmessages always returns English values

2014-02-11 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

xqt  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #12 from xqt  ---
fixed with https://gerrit.wikimedia.org/r/#/c/112604/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-11 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

xqt  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
  Component|API |General
Version|1.23-git|core (2.0)
 Resolution|WORKSFORME  |---
   Assignee|wikibugs-l@lists.wikimedia. |pywikipedia-b...@lists.wiki
   |org |media.org
Product|MediaWiki   |Pywikibot
 Ever confirmed|0   |1

--- Comment #11 from xqt  ---
back to pywikibot. There is an enhencement.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

Brad Jorsch  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #10 from Brad Jorsch  ---
I think it makes as much sense as anything else, and changing it would cause
trouble for people using the current behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

--- Comment #9 from Sorawee Porncharoenwase  ---
Aha! It's English. Changing to Thai solves the problem. However, I think that
it doesn't make sense that the language depends on the personal setting.
Instead, it should depend on the site.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

--- Comment #8 from Brad Jorsch  ---
What is the user language preference set to for your bot on that wiki? One easy
way to check this is to use action=query&meta=userinfo&uiprop=options and look
for "language".

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

--- Comment #7 from Sorawee Porncharoenwase  ---
action=query&meta=allmessages&ammessages=about on thwiki

If I query it with my bot, I got untranslated text. Otherwise (on other sites
or with different account), I got translated text.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

--- Comment #6 from Brad Jorsch  ---
I doubt this is a bug in the API. What is the exact request you are sending?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

Sorawee Porncharoenwase  changed:

   What|Removed |Added

 CC||bjor...@wikimedia.org,
   ||bryan.tongm...@gmail.com,
   ||roan.katt...@gmail.com,
   ||s...@reedyboy.net
  Component|General |API
Version|core (2.0)  |1.23-git
   Assignee|pywikipedia-b...@lists.wiki |wikibugs-l@lists.wikimedia.
   |media.org   |org
Product|Pywikibot   |MediaWiki

--- Comment #5 from Sorawee Porncharoenwase  ---
This is not a bug of pywikibot. I used curl
(https://www.mediawiki.org/wiki/API:Client_code/Bash) and found the very same
problem. Perhaps it's API's fault.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

--- Comment #4 from Sorawee Porncharoenwase  ---
Okay, I further tested many things and found interesting results.

I at first remove pywikibot.lwp. if I run that code, I will get translated
message.

Then, I remove pywikibot.lwp. I run site.login(False) and then that code. Now I
get untranslated message.

Then, I remove pywikibot.lwp. I run site.login(True) and then that code. I get
translated message.

Have no idea at all why this happens.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

--- Comment #3 from xqt  ---
I cannot reproduce it:

>>> import pwb
>>> import pywikibot
>>> from pywikibot.data import api
>>> print api.Request(site=pywikibot.getSite(), action='query', 
>>> meta='allmessages|siteinfo', 
>>> ammessages="january").submit()['query']['allmessages']
[{u'*': u'\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21', u'name': u'january'}]
>>> print api.Request(site=pywikibot.getSite(), action='query', 
>>> meta='allmessages|siteinfo', 
>>> ammessages="january").submit()['query']['general']['wikiid']
thwiki

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

--- Comment #2 from Sorawee Porncharoenwase  ---
I'm sure. See the result from my first query. 

u'lang': u'th', u'wikiid': u'thwiki', ..

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 61119] Querying allmessages always returns English values

2014-02-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=61119

--- Comment #1 from xqt  ---
Are you sure that your default site is 'th'?

try again with site=pywikibot.getSite('th')

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l