On 03/04/2015 02:27 PM, Scott MacLeod wrote:
Brad, Legoktm and All,

Interesting and thanks. And how does ContentHandler -
https://phabricator.wikimedia.org/T89733 -  "Allow ContentHandler to expose
structured data to the search engine" work generally, and particularly
vis-a-vis adding further languages to Wikipedia's 288, for example? What's
the process for "wiki-adding" languages here hypothetically?

Each page has a defined language. By default it is wgContLang (a global variable).

However, ContentHandler has a getPageLanguage method (https://git.wikimedia.org/blob/mediawiki%2Fcore.git/631186747a916454c71ee49c7d078c5faa1a009b/includes%2Fcontent%2FContentHandler.php#L641) that allows customizing how this works.

MediaWiki interfaces (menus, tabs, button text), etc. are also documented into many languages.

Separately, the WMF process for adding new project languages (e.g. NewLanguage Wikipedia) begins at https://meta.wikimedia.org/wiki/Requests_for_new_languages .

Matt Flaschen

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to