[Bug 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Nemo changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|wikibugs-l@lists.wikimedia. |kunalgrove...@gmail.com |org | --- Comment #32 from Nemo --- Not yet linked directly from this bug report: https://www.mediawiki.org/wiki/User:SPQRobin/Page_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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Nemo changed: What|Removed |Added Status|PATCH_TO_REVIEW |NEW -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #31 from Gerrit Notification Bot --- Change 136623 abandoned by Kunalgrover05: Front end for page language selector(DONT MERGE) Reason: Already merged https://gerrit.wikimedia.org/r/136623 -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #30 from Gerrit Notification Bot --- Change 135312 merged by jenkins-bot: First version of Page Language selector https://gerrit.wikimedia.org/r/135312 -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #29 from Gerrit Notification Bot --- Change 136623 had a related patch set uploaded by Kunalgrover05: Front end for page language selector(DONT MERGE) https://gerrit.wikimedia.org/r/136623 -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #28 from Gerrit Notification Bot --- Change 135312 had a related patch set uploaded by Anomie: First version of Page Language selector https://gerrit.wikimedia.org/r/135312 -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Gerrit Notification Bot changed: What|Removed |Added Status|NEW |PATCH_TO_REVIEW -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #27 from Gerrit Notification Bot --- Change 135312 had a related patch set uploaded by Nemo bis: First version of Page Language selector https://gerrit.wikimedia.org/r/135312 -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 KC Lau changed: What|Removed |Added CC||kc.kc...@gmail.com --- Comment #26 from KC Lau --- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #25 from SJ --- Nemo - Thank you. Cause for a core corps? Kunal - That's wonderful, and I see you have excellent mentors lined up. Good luck with this project. -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Bug 35489 depends on bug 10736, which changed state. Bug 10736 Summary: Parser function to override per-page language metadata https://bugzilla.wikimedia.org/show_bug.cgi?id=10736 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 kunalgrove...@gmail.com changed: What|Removed |Added CC||kunalgrove...@gmail.com --- Comment #24 from kunalgrove...@gmail.com --- Hey I would like to work on this bug as part of my GSoC project. Please review https://www.mediawiki.org/wiki/User:Kunalgrover05/GSoc_Proposal#The_page_language_for_multilingual_wikis_should_not_be_fixed -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Nemo changed: What|Removed |Added Depends on||9360 --- Comment #23 from Nemo --- (In reply to SJ from comment #22) > So yes: we need per-page language selection. Is there a separate bug for > this? Two even, see blockers. > Niklas: who are working on that part of MW core? Nobody, currently (as with most areas of core). -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #22 from SJ --- I would find this fix enormously useful. All of our shared spaces that are intended to be multilingual, have "English" as the default language. That is a convention; and is not meant to force translations to happen to/from English. So yes: we need per-page language selection. Is there a separate bug for this? Niklas: who are working on that part of MW core? I take it you don't recommend Maxime's patch, and instead recommend pushing for the update to core? Having our own Translate extension and being able to organize translation on the wiki is really wonderful. This is the only major drawback with the current process; but it is significant: and keeps many people from using Meta for translations at all (where they might have once done so). Tilman gave one example; people also face this in grantmaking, where the original source for reports is rarely English: https://meta.wikimedia.org/wiki/Grants:IEG/Learning/Round_1_2013/Impact#Tools_for_execution -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #21 from Niklas Laxström --- As said before, this is not currently a priority for the language team, and I don't have time to work on this personally. And, Translate extension basically supports this feature already. I'm hoping someone else will implement the missing piece, page content language selection in MediaWiki core. That someone is not watching this bug, I'm afraid. -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #20 from Tilman Bayer --- It would be great to see this getting resolved, or at least have its importance raised from "lowest". At the WMF staff All Hands meeting last month, a discussion took place about ways in which the Foundation succeeds or fails to be a truly international organization; I brought this bug up as an example of the latter (see e.g. https://commons.wikimedia.org/wiki/File:Wikimedia_Foundation_2013_All_Hands_Offsite_-_Day_1_-_Photo_41.jpg - right flip chart, third item from below). -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 SJ changed: What|Removed |Added CC||sje...@yahoo.com --- Comment #19 from SJ --- Wonderful to see this getting resolved. Thank you, Maxime. -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #18 from Maxime --- Thanks, I will do that next time. Should I do another commit to add this ? -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #17 from Andre Klapper --- Maxime: If you add "Bug: 35489" as the last line of the commit message, there will be an automatic notification in Bugzilla - see http://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #16 from Maxime --- I submitted a patch for this change. Commit number is Ifd838e962bb532c246d41b2322b2b5861cc46102 -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #15 from Maxime --- Nikerabbit in chat solved the issue with the tag. In messagegroups/WikiPageMessageGroup.php, simply change the getSourceLanguage() function so that it returns $this->getTitle()->getPageLanguage()->getCode(); instead of $wgLanguageCode. I hope this will get incorporated into Translate soon, and that somebody come up with a better way than categories to change the source language. This will however do the trick for our wiki for now. -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Maxime changed: What|Removed |Added CC||maxime.boissonneault@calcul ||quebec.ca --- Comment #14 from Maxime --- The source language can already be changed with MediaWiki. In 1.20.4, you can add something like this in LocalSettings.php : $wgHooks['PageContentLanguage'][] = 'onPageContentLanguage'; function onPageContentLanguage( $title, &$pageLang ) { $categories = $title->getParentCategories(); $pageLang = 'fr'; foreach ($categories as $i => $value) { if ( strpos($i,'English_documentation') !== false ) { $pageLang = 'en'; break; } } return true; } In MediaWiki 1.21, from what I understand, this hook has been moved to the ContentHandler class, but I assume the same kind of trick should work. Then, if you add [[Category:English documentation]] on a page, the source language will be considered as English, and it will be considered as French otherwise. The only drawback that I've seen so far is that Translate does not make use of this information quite correctly for the tag. While it shows the page as English first, with a possible translation in French, the language box does not show English unless you tell the extension that you want to translate both in English (which is a non-sense) and in French. If this could be fixed so that the PageContentLanguage always shows in the language box, this would work flawlessly. I assume someone could easily come up with a tag to add to the page instead of using categories. -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Matthew Roth changed: What|Removed |Added CC||mr...@wikimedia.org --- Comment #13 from Matthew Roth --- I would echo the comments on the usefulness of having translations from other languages to English. Right now, we're getting a lot of multilingual content on the Wikimedia Blog: http://blog.wikimedia.org/tag/multilingual-post/ But almost none of these translations are happening with the translate extension. The post authors are writing in their native language and then giving us their best English translation (which is sometimes clearly just Google Translate) on the blog page on Meta. https://meta.wikimedia.org/wiki/Wikimedia_Blog/Drafts I then spend a not insignificant amount of time re-writing the roughly translated English into more natural English. It would be amazing if we can get translations the "other way" with the awesome tool you've built. -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Michael Chidester changed: What|Removed |Added CC||mchides...@wiktenauer.com --- Comment #12 from Michael Chidester --- I was hoping to use this extension on an educational wiki to assist in the translation of foreign-language documents to English, and it wasn't until I had sorted out how to make it interact properly with Extension:Proofread Page (the transcription engine developed for Wikisource) that I realized there was no way to set the language of the document. It seems like this isn't going to happen any time soon, but I still want to express how useful this feature would be to my site if it's ever implemented. -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Niklas Laxström changed: What|Removed |Added CC||niklas.laxst...@gmail.com --- Comment #11 from Niklas Laxström --- (In reply to comment #10) > I understand this is not a priority, but what are the blocking issues here? Setting the content language of the page should be done in MediaWiki core. However, that is non-trivial to implement. See the blocker bug. It is trivial to change Translate extension to use the page content language, which already exists as concept in MediaWiki. Currently the page content language can only be changed via hooks or some hardcoded cases. -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #10 from Jean-Fred --- I understand this is not a priority, but what are the blocking issues here? It’s kind of frustrating to see the Translate extension become more and more awesome, and not being able to use it for translations :) -- 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 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Nemo changed: What|Removed |Added Assignee|niklas.laxst...@gmail.com |wikibugs-l@lists.wikimedia. ||org -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Tilman Bayer changed: What|Removed |Added CC||tba...@wikimedia.org --- Comment #9 from Tilman Bayer --- Confirming that this would be useful on Meta - another example: blog posts for the Wikimedia blog. I would just have used the Translate extension to enable the translation of a blog post draft from Portuguese into English if it hadn't been for this bug. -- You are receiving this mail because: You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #8 from Bence Damokos --- I think a big number of non-English to English translation of documents ending up on Meta is taking place in other venues partly because of the lack of feature and creating this feature could lead to an increase in such activity and reduce Anglo-centrism, as well as increase the ease of creating those non-English to English translations (see the workflow described by Jean-Fred...). -- You are receiving this mail because: You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 --- Comment #7 from Nemo --- Chapters are a very notable user of Translate extension, but last time I checked I had the impression that the pages translated from a non-English source are a fraction of the thousands affected pages on Meta. [[m:Meta:Translate_extension#Migration]] I desire this enhancement a lot but in all frankness I can't confidently say that the current priority is inaccurate... -- You are receiving this mail because: You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Jean-Fred changed: What|Removed |Added CC||jeanfrederic.w...@gmail.com --- Comment #6 from Jean-Fred --- Any hope for that one? I certainly can’t measure the hurdles Siebrand mentions, but I would like to second Bence: using as a start page a page in another language than English (French in my case) sounds like a very common use case (I am thinking of Meta here). Is there no other procedure than translating “manually” from French to English, marking the English version for translation, and pushing the original French chunks into the French translation? It kind of defeats the all purpose… -- You are receiving this mail because: You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 35489] The source language of a page should be arbitrary
https://bugzilla.wikimedia.org/show_bug.cgi?id=35489 Siebrand changed: What|Removed |Added Summary|Not possible to set source |The source language of a |language on multilingual|page should be arbitrary |wiki| Severity|minor |enhancement -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- 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