Hi @all,
can somebody tell me how to change the "default fallback language"?
I tried to replace the 'en' language-code in the following lines (Language.php) to realise it. But seems there are more changes to do.
if ( $code != 'en' ) { $fallback = 'en'; } else { $fallback = false; }
This leads to the following warning-message on the one hand:
Warning: array_slice() [function.array-slice]: The first argument should be an array in F:\xampp\htdocs\mediawiki-1.11.0\languages\Language.php on line 1153
and to a incorrect output of the 'edit'-links like this on the other hand:
<editsection-brackets>
On 10/30/07, demagggus magggus@gmx.de wrote:
Hi @all,
can somebody tell me how to change the "default fallback language"?
You're not supposed to. There's no guarantee that any language other than English will have every single message. It might be a good idea to have some kind of "intermediate default fallback language", but there's not really any support for that currently, so you'll have to hack it up yourself. It might be easiest to write a shell script of a couple of lines that will just append a new fallback language to all the message files: that way you won't have to deal with a million places where we've silently assumed English is the ultimate default fallback, which we probably have.
wikitech-l@lists.wikimedia.org