Thread:Project:Support desk/Multilanguage and Special Pages

Hello!

OS: FreeBSD 8.2; MediaWiki 1.16.4; PHP 5.3.6; MySQL 5.1.56

Necessary: two languages (English and Russian).

Problem: I can't create new user or article in one of version of wiki

httpd.conf

...

DocumentRoot "/usr/local/www/mediawiki"

...

LocalSettings.php:

<?php

$callingurl = strtolower($_SERVER['REQUEST_URI']); //get the calling url

if ( strpos( $callingurl, 'en', 0) ) { require_once( 'LocalSettings_en.php' );}

else if ( strpos( $callingurl, 'ru', 0) ) { require_once( 'LocalSettings_ru.php' );}

else {       require_once( 'LocalSettings_en.php' );}

LocalSettings_en.php:

...

$wgScriptPath      = "";

$wgScriptExtension = ".php";

$wgArticlePath = "/en/$1";

$wgUsePathInfo = true;

...

$wgDBprefix        = "en_";

...

$wgLanguageCode = "en";

In LocalSettings_ru.php en changed to ru.

If English is a default version of wiki, then I can't create user in Russian version:

There is currently no text in this page. You can search for this page title in other pages, search the related logs, or edit this page.

And URL is http://xxx.xx/index.php?title=...

How can I fix this problem?