Jimmy Wales wrote:
wikiTextEn.php warns me:
# ATTENTION:
# To fit your local settings, PLEASE edit wikiText.php ONLY!
# Change settings here ONLY if they're to become global in all wikipedias!
But that seems a bit "opposite" to me... doesn't wikiTextEn mean
"wikiText English"?
If so, then changes here should ONLY affect the English wikipedia, not "global in
all wikipedias"?
My understanding is that wikiTextEn.php is going to contain all the
default values. For the other-language versions, alternate server name,
character set, message strings, etc. will be set in e.g. wikiTextDe.php
or wikiTextPl.php. The theory is that anything that's *not* set in the
language-specific file will get the default value; thus if a new feature
is added that needs a message string $wikiFooBar, the English message
defined in wikiTextEn.php will show up, rather than nothing, if the
local wikiTextXx.php isn't updated.
Ultimately, wikiText.php should probably be nothing more than:
include("wikiTextEn.php");
include("wikiTextSomeOtherLanguage.php");
Anything additional in that file might be for site-specific data; for
instance if somebody sets up a read-only mirror of Wikipedia, they could
customize just that file to include their alternate server name, a title
string that links to the live 'pedia, and a hypothetical
refuse-all-edits option.
But then, should it be called wikiText.php at all? Would
wikiSettings.php make more sense, maybe?
Also, whichever way it is supposed to be, I'm sure
I should only have to edit one file.
But I have to edit two.
Yeah, that's a little vague and needs to be worked out in better detail.
First, $wikiCurrentServer returns
http://wikipedia.com
in the default configuration, but
we prefer
http://www.wikipedia.com/ (see line 12 of wikiTextEn.php, I always edit to
hardcode this.)
And on the next line, $wikiSQLServer is different locallly: the database is named
"wiki" instead of "wikipedia".
So, should I just add those two things to wikiText.php? And that will override the
stuff in wikiTextEn.php?
I think the wikiTextEn.php defaults should be what you're actually using
on the English wikipedia!
-- brion vibber (brion @
pobox.com)