[Bug 56920] wgPageContentLanguage broken on Incubator, returns "en" always
https://bugzilla.wikimedia.org/show_bug.cgi?id=56920 Robin Pepermans (SPQRobin) changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #4 from Robin Pepermans (SPQRobin) --- (In reply to Aravind K N from comment #3) > Is it the last line which is creating the problem? This is on > WikimediaIncubator/IncubatorUnitTests.php Those are unit tests, i.e. meant to test the actual code but is not part of the actual code so cannot create any problems. (In reply to Hydriz Scholz from comment #2) > It seems to me that it is an intended behavior. If the language isn't > localized in MediaWiki, MediaWiki doesn't know what the language is, it > wouldn't be able to display wgPageContentLanguage correctly. Do correct me > if I am wrong. Indeed, the code tries to make a language object for xyz in Wx/xyz/Title, but MediaWiki only does that if it recognizes the language. There is some inconsistency however, because the lang attribute in the mw-content-text div tag is always set to the language code. E.g. on Wp/grc the page content language is always "grc", but on e.g. Wp/lkt it's "en" except for the mentioned attribute (maybe more). Since we expect active languages to be localized, there "shouldn't" be any issue. Closing as WORKSFORME, feel free to reopen if needed. -- 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 56920] wgPageContentLanguage broken on Incubator, returns "en" always
https://bugzilla.wikimedia.org/show_bug.cgi?id=56920 Aravind K N changed: What|Removed |Added CC||arav...@gmail.com --- Comment #3 from Aravind K N --- function testOnPageContentLanguage() { $title = Title::newFromText( 'Wp/nl/Test' ); $this->assertEquals( $title->getPageLanguage()->getCode(), 'nl'); $title = Title::newFromText( 'Template:Wp/be-tarask/Test' ); $this->assertEquals($title->getPageLanguage()->getCode()'betarask' ); $title = Title::newFromText( 'Project:Wp/nl/Test' ); $this->assertEquals( $title->getPageLanguage()->getCode(), 'en'); } Is it the last line which is creating the problem? This is on WikimediaIncubator/IncubatorUnitTests.php -- 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 56920] wgPageContentLanguage broken on Incubator, returns "en" always
https://bugzilla.wikimedia.org/show_bug.cgi?id=56920 Hydra changed: What|Removed |Added CC||hy...@alphacorp.tk --- Comment #2 from Hydra --- It seems to me that it is an intended behavior. If the language isn't localized in MediaWiki, MediaWiki doesn't know what the language is, it wouldn't be able to display wgPageContentLanguage correctly. Do correct me if I am wrong. -- 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 56920] wgPageContentLanguage broken on Incubator, returns "en
https://bugzilla.wikimedia.org/show_bug.cgi?id=56920 Andre Klapper changed: What|Removed |Added Summary|wgPageContentLanguage |wgPageContentLanguage |broken on Incubator |broken on Incubator, ||returns "en -- 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 56920] wgPageContentLanguage broken on Incubator
https://bugzilla.wikimedia.org/show_bug.cgi?id=56920 Andre Klapper changed: What|Removed |Added Keywords||i18n Priority|Unprioritized |Normal -- 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 56920] wgPageContentLanguage broken on Incubator, returns "en" always
https://bugzilla.wikimedia.org/show_bug.cgi?id=56920 Andre Klapper changed: What|Removed |Added Summary|wgPageContentLanguage |wgPageContentLanguage |broken on Incubator,|broken on Incubator, |returns "en |returns "en" always -- 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 56920] wgPageContentLanguage broken on Incubator
https://bugzilla.wikimedia.org/show_bug.cgi?id=56920 --- Comment #1 from Yair Rand --- I'm not sure whether this was the case before, but right now it seems that it's only broken for languages not localized in Mediawiki. Other languages have wgPageContentLanguage set correctly. -- 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