Last modified: 2013-02-06 14:57:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35028, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33028 - Languages not supported in MediaWiki should not fall back to English
Languages not supported in MediaWiki should not fall back to English
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikimediaIncubator (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks: incubator
  Show dependency treegraph
 
Reported: 2011-12-13 13:51 UTC by Robin Pepermans (SPQRobin)
Modified: 2013-02-06 14:57 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Robin Pepermans (SPQRobin) 2011-12-13 13:51:05 UTC
The WikimediaIncubator extension makes use of the PageContentLanguage hook, for setting the page language based on the test wiki, so e.g. [[incubator:Wp/khw/%D8%AF%D8%B9%D8%A7]] is parsed in Khowar (khw), with lang="khw" and dir="rtl" attributes on the content div. Thanks to this, Narayam and WebFonts also know which language it is.

That is all perfect as long as the language is defined. Because the hook passes it through a language object, unknown languages fall back to English (wgContLang). So on [[incubator:Wp/saz/ꢓꢾꢥꢶꢥ꣄]] (Sourashtra), it is currently lang="en".

Two possible solution I can come up with:

Relatively simple solution: add a possibility to force literal language codes to avoid fallback to English, by adding a parameter to the hook and make some changes to wfGetLangObj() etc.

Ideal solution: make it in one way or another possible to (easily) add languages (stub MessagesXx files and/or wgExtraLanguageNames) to Incubator that are not yet in MW core but have translatewiki.net support. This could also make LocalisationUpdate work for these languages so users benefit early of their translations.


PS: this bug report belongs to several products/components (but I have to take one so I took WikimediaIncubator)
Comment 1 Robin Pepermans (SPQRobin) 2011-12-13 14:17:57 UTC
And the current supposed workflow is that translatewiki.net languages with most used messages translated are committed, and then can/should be MFT to 1.18wmf1, but in the case of Sourasthra (and other languages too), the translations are not sufficient to be committed (yet).

We could use r105922 so it can be committed only for use on Incubator, but I suppose it would require a lot of work maintaining and merging to the live site.
Comment 2 Hydriz Scholz 2012-10-11 13:40:27 UTC
Reword bug summary (testing RSS anyways).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links