Manual talk:$wgLanguageCode


Outdated documentation?[edit]

Is this outdated at least from version 1.13? I don't see any Language.xx.php files. I have a ./languages/Labguage.php & many ./languages/messages/MessagesXX.php files.

Missing LanguageDe.php[edit]

I just installed xamp and mediawiki.

But LanguageDe.php is missing.

I cant find a forum about Media Wiki so i just ask this Question here.

where is rebuildmessages.php???[edit]


I downloaded the 1.9.3 and I can't find rebuildMessages.php in maintenance directory and I see the page as the mix of two languages Thai and English. Is this expected? 05:57, 22 April 2007 (UTC)Reply[reply]

rebildMessages is no longer required, starting with mw 1.9. Did you go through the full upgrade procedure? Did you accidentally change the content language of your wiki to english? -- Duesentrieb 11:04, 22 April 2007 (UTC)Reply[reply]

i found "rebuild" "-rebuild" and "--rebuild" on the web[edit]

Hello, I was a little confused over how to start rebuildMessages.php in order to update mediawiki message entries in the database to the new language.

I couldn't test myself so I wanted to guess right (I found "php rebuildMessages.php -rebuild", "php rebuildMessages.php rebuild" and "php rebuildMessages.php --rebuild" on the internet.

The command that worked (executed by my ISP) was php4-cgi rebuildMessages.php --rebuild ../languages/LanguageDe.php for the "De"-language file. I suppose that adding the filename isn't necessary, but it seems so far that it works.

And it seems there is no easy way to run this command if you don't have shell access and php safe mode is turned on.

I guess you'll have to create a file that just executes require_once( "" ); include_once( ""); if ( YOUWANTFILEBOOLEAN ) { $messages = loadLanguageFile( FILENAMESTRING ); } else { $messages = false; }

initialiseMessages( true, $messages );

and then you'll have to go through and delete for example the first some lines in as it cancels execution if you aren't coming from commandline. Maybe there are further changes needed. For example renaming .htaccess for the time you want to execute your new script. Or you put them in another directory. I guess both isn't fitting into the security concept of mediawiki.

I hope that could be more explicit in the future. (k, maybe noone needs it anymore since 1.9)


How can I disable the user's prefered language???[edit]

Hello, I want to have my wiki in a certain language, whatever the user's language is. How can I disable this switch? I googled a lot and could not find any solution. Nothing left than manual hacking, I would like to know where this happens in the code. I just need to override the freshly read user's value with the default language again. 20:46, 1 May 2008 (UTC)Reply[reply]