Hi,
the faq says:
- Change the value of $wgLanguageCode - Run rebuildMessages.php.
I don't have rebuildMessages.php, but I find in MW 1.9.3
ls rebuild* rebuildImages.php rebuildInterwiki.php rebuildrecentchanges.inc rebuildtextindex.inc rebuildInterwiki.inc rebuildall.php rebuildrecentchanges.php rebuildtextindex.php
I tried:
$ php ./rebuildall.php DB connection error: Access denied for user 'klaus'@'localhost' (using password: NO) (localhost)
Il this the right script? How can I pass another username and passwort?
Klaus
Klaus Becker wrote:
<SNIP>
$ php ./rebuildall.php DB connection error: Access denied for user 'klaus'@'localhost' (using password: NO) (localhost)
Il this the right script? How can I pass another username and passwort?
Klaus
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi, Try editing AdminSettings.php. There is a sample file too.
Am Donnerstag, 17. Mai 2007 20:27 schrieb Georgi Hristozov:
Klaus Becker wrote:
<SNIP>
$ php ./rebuildall.php DB connection error: Access denied for user 'klaus'@'localhost' (using password: NO) (localhost)
Il this the right script? How can I pass another username and passwort?
Klaus
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi, Try editing AdminSettings.php. There is a sample file too.
This is to complicated for me.
I found in maintenance/language rebuildLanguage.php. I choose "$wgLanguageCode = "fr";" I saved and then I ran the script, but it says: Generated and wrote messages in language de. Why?
Klaus
On 17/05/07, Klaus Becker colonius@free.fr wrote:
Hi,
the faq says:
- Change the value of $wgLanguageCode
- Run rebuildMessages.php.
The FAQ is out of date; we no longer populate the MediaWiki namespace. Just changing $wgLanguageCode ought to do it.
Rob Church
Am Donnerstag, 17. Mai 2007 20:55 schrieb Rob Church:
On 17/05/07, Klaus Becker colonius@free.fr wrote:
Hi,
the faq says:
- Change the value of $wgLanguageCode
- Run rebuildMessages.php.
The FAQ is out of date; we no longer populate the MediaWiki namespace. Just changing $wgLanguageCode ought to do it.
Rob Church
Hi Rob,
that's why I put this question: I first installed MW 1.9.3 in german, but the final version has to be french. So for image location, I wrote "Bild" and I want "Image" instead now. I hoped a script would do this for me, but after changing $wgLanguageCode in french, there is always "Bild" and images are not found of course. Must I really change every "Bild" in "Image" manually ?
Klaus
If you have any [[Bild:some-image-name.jpg]] links in your pages, yeah - you'll have to change those by hand ... unless someone has a tool to get the job done.
-- Jim R. Wilson (jimbojw)
On 5/17/07, Klaus Becker colonius@free.fr wrote:
Am Donnerstag, 17. Mai 2007 20:55 schrieb Rob Church:
On 17/05/07, Klaus Becker colonius@free.fr wrote:
Hi,
the faq says:
- Change the value of $wgLanguageCode
- Run rebuildMessages.php.
The FAQ is out of date; we no longer populate the MediaWiki namespace. Just changing $wgLanguageCode ought to do it.
Rob Church
Hi Rob,
that's why I put this question: I first installed MW 1.9.3 in german, but the final version has to be french. So for image location, I wrote "Bild" and I want "Image" instead now. I hoped a script would do this for me, but after changing $wgLanguageCode in french, there is always "Bild" and images are not found of course. Must I really change every "Bild" in "Image" manually ?
Klaus
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 17/05/07, Klaus Becker colonius@free.fr wrote:
that's why I put this question: I first installed MW 1.9.3 in german, but the final version has to be french. So for image location, I wrote "Bild" and I want "Image" instead now. I hoped a script would do this for me, but after changing $wgLanguageCode in french, there is always "Bild" and images are not found of course. Must I really change every "Bild" in "Image" manually ?
Add the following line to LocalSettings.php:
$wgNamespaceAliases["Bild"] = NS_IMAGE;
You'll need to purge the cache of affected pages, but with a LocalSettings.php file generated with a modern version of MediaWiki, this will be done when editing that file.
Rob Church
Good call Rob! (I didn't know about the namespace aliasing - that's a good one to know)
Regarding purging - if you want a quick way to purge everything (assuming you're using MySQL and no squid/memcache) is to issue the command "truncate objectcache" against the database instance you're using for MW.
-- Jim
On 5/17/07, Rob Church robchur@gmail.com wrote:
On 17/05/07, Klaus Becker colonius@free.fr wrote:
that's why I put this question: I first installed MW 1.9.3 in german,
but the
final version has to be french. So for image location, I wrote "Bild"
and I
want "Image" instead now. I hoped a script would do this for me, but
after
changing $wgLanguageCode in french, there is always "Bild" and images
are not
found of course. Must I really change every "Bild" in "Image" manually ?
Add the following line to LocalSettings.php:
$wgNamespaceAliases["Bild"] = NS_IMAGE;
You'll need to purge the cache of affected pages, but with a LocalSettings.php file generated with a modern version of MediaWiki, this will be done when editing that file.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Am Donnerstag, 17. Mai 2007 21:48 schrieb Rob Church:
On 17/05/07, Klaus Becker colonius@free.fr wrote:
that's why I put this question: I first installed MW 1.9.3 in german, but the final version has to be french. So for image location, I wrote "Bild" and I want "Image" instead now. I hoped a script would do this for me, but after changing $wgLanguageCode in french, there is always "Bild" and images are not found of course. Must I really change every "Bild" in "Image" manually ?
Add the following line to LocalSettings.php:
$wgNamespaceAliases["Bild"] = NS_IMAGE;
You'll need to purge the cache of affected pages, but with a LocalSettings.php file generated with a modern version of MediaWiki, this will be done when editing that file.
that works, fine !
Klaus
Rob Church
mediawiki-l@lists.wikimedia.org