[Wikidata-bugs] [Maniphest] [Commented On] T142906: Data access in user language doesn't obey the uselang get parameter

2016-09-16 Thread hoo
hoo added a comment.

In T142906#2641437, @Jarekt wrote:
F4472286: New Picture (2).bmp

It is still not working right. I just set my preferred language to Polish and executed lua code with


mw.message.new( "lang" ):plain()
mw.message.getDefaultLanguage():getCode()

both returned "en" instead of "pl". At the same time call to message "{{int:lang}}" without LUA returns correctly "pl".



mw.message.* is not part of Wikibase, thus not affected by this. The changes mentioned here only affect the functionality to access data from the Wikibase repository (Wikidata) (mw.wikibase.*).TASK DETAILhttps://phabricator.wikimedia.org/T142906EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hooCc: gerritbot, Zppix, Jarekt, Geagea, Raymond, zhuyifei1999, aude, daniel, hoo, Zolo, Aklapper, D3r1ck01, Izno, Wikidata-bugs, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T142906: Data access in user language doesn't obey the uselang get parameter

2016-09-15 Thread Jarekt
Jarekt added a comment.
F4472286: New Picture (2).bmp

It is still not working right. I just set my preferred language to Polish and executed lua code with


mw.message.new( "lang" ):plain()
mw.message.getDefaultLanguage():getCode()


botch returned "en" instead of "pl". at the same time call to message "{{int:lang}}" without LUA returns correctly "pl"TASK DETAILhttps://phabricator.wikimedia.org/T142906EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hoo, JarektCc: gerritbot, Zppix, Jarekt, Geagea, Raymond, zhuyifei1999, aude, daniel, hoo, Zolo, Aklapper, D3r1ck01, Izno, Wikidata-bugs, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T142906: Data access in user language doesn't obey the uselang get parameter

2016-08-24 Thread gerritbot
gerritbot added a comment.
Change 305439 merged by jenkins-bot:
Don't abuse ParserOptions::getUser()->getOption( 'language' ) to get the user lang

https://gerrit.wikimedia.org/r/305439TASK DETAILhttps://phabricator.wikimedia.org/T142906EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hoo, gerritbotCc: gerritbot, Zppix, Jarekt, Geagea, Raymond, zhuyifei1999, aude, daniel, hoo, Zolo, Aklapper, Lewizho99, Maathavan, D3r1ck01, Izno, Wikidata-bugs, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T142906: Data access in user language doesn't obey the uselang get parameter

2016-08-17 Thread gerritbot
gerritbot added a comment.
Change 305439 had a related patch set uploaded (by Hoo man):
Don't abuse ParserOptions::getUser()->getOption( 'language' ) to get the user lang

https://gerrit.wikimedia.org/r/305439TASK DETAILhttps://phabricator.wikimedia.org/T142906EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, Zppix, Jarekt, Geagea, Raymond, zhuyifei1999, aude, daniel, hoo, Zolo, Aklapper, D3r1ck01, Izno, Wikidata-bugs, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T142906: Data access in user language doesn't obey the uselang get parameter

2016-08-13 Thread hoo
hoo added a comment.

In T142906#2550418, @zhuyifei1999 wrote:
= T140792 ?


Merged the other task into this one, as this has more technical details.TASK DETAILhttps://phabricator.wikimedia.org/T142906EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hooCc: Zppix, Jarekt, Geagea, Raymond, zhuyifei1999, aude, daniel, hoo, Zolo, Aklapper, D3r1ck01, Izno, Wikidata-bugs, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T142906: Data access in user language doesn't obey the uselang get parameter

2016-08-13 Thread zhuyifei1999
zhuyifei1999 added a comment.
= T140792 ?TASK DETAILhttps://phabricator.wikimedia.org/T142906EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: zhuyifei1999, aude, daniel, hoo, Zolo, Aklapper, D3r1ck01, Izno, Wikidata-bugs, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs