https://bugzilla.wikimedia.org/show_bug.cgi?id=35489
KC Lau <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #26 from KC Lau <[email protected]> --- I am looking into using MediaWiki for a new wiki site to encourage people to submit articles. They may prefer to submit in their native languages and have them translated to English and other major languages if possible. So a fix to this bug is most desirable. I am using MediaWiki 1.22.5 with the patch already in place, see Comments 15 and 16 above: In messagegroups/WikiPageMessageGroup.php, simply change the getSourceLanguage() function so that it returns $this->getTitle()->getPageLanguage()->getCode(); instead of $wgLanguageCode. But I cannot get it working. I tried with the following change to use User interface language instead: // return $this->getTitle()->getPageLanguage()->getCode(); return RequestContext::getMain()->getLanguage()->getCode(); as I expect that it would come from the Language setting in the User Preference and can be modified ad-hoc by appending ?uselang=xyz or &uselang=xyz to the current URL. It did not work either. As I am new to MediaWiki (and php), may be I have got it wrong and would appreciate if someone can point out my mistake. Anyway, it is great to hear that a fix is upcoming and I look forward to trying it. -- 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 [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
