Multi language activation
To enable multi language site in Mediawiki, it requires Mediawiki installation per language. For example, enabling mutual linkage for corresponded words in English, simplified Chinese and Thai is requiring three Mediawiki installations.
- To do so, install mediawiki for the number of language you need, and specify unique prefix for each of database table prefix during installation.
- After installation, open MySQL to replace column in interwiki table to be recognized of each identity as follows:
For Chinese version, the following lets them identify English, its URL and some attributions:
SELECT cw_interwiki.iw_prefix FROM cw_interwiki;
REPLACE INTO cw_interwiki (iw_prefix,iw_url,iw_local,iw_trans) VALUES(’en’,'http://www.URL.com/wiki/index.php?title=$1′,0,0);For English version, just do vice versa way:
SELECT mw_interwiki.iw_prefix FROM mw_interwiki;
REPLACE INTO mw_interwiki (iw_prefix,iw_url,iw_local,iw_trans) VALUES(’zh-cn’,'http://www.URL.com/ch_wiki/index.php?title=$1′,0,0); - After all done, go somewhere you can edit page, and link to somewhere in other language, like for example, you have created page named "test" in both English and Chinese… In Chinese page, it may be specified as [[en:test]] to go to corresponded page in English, and vice versa in English page, like [[zh-cn:test]]
