Hi all,
I'd like to do an automated replacement in
ca.wikipedia.org<http://ca.wikipedia.org>for include geographic data
of about 500 cities in Valencia (Spain) and for
not getting nuts I was trying to do a *.bat file for making changes like
this:
replace.py -page:Ademús "{{Predomini lingüístic" "{{Coordenades geogràfiques
del municipi|40|04|15|1|17|06}}\n{{Predomini lingüístic"
replace.py -page:Ador "{{Predomini lingüístic" "{{Coordenades geogràfiques
del municipi|38|55|05|0|13|31}}\n{{Predomini lingüístic"
etc...
But Win2000 changes the stressed letters into artifacts. For this reason I
was thinking that maybe I could use the -file:xxx option, is there some way
for making a different change in each page included in the file? Besides,
the code '\n' is not properly interpreted, which code should I use instead?
I hope you can help me to solve this little problem.
Thanks,
David
hi!
have you ever thought about using the uselang parameter
introduced with mediawiki 1.5 to change the language a bot
uses to parse mediawiki messages?
using a non-default language has one advantage:
the messages change much less often, because afaik only
people with CVS access can change the LanguageXXX.php
files, whereas normal messages can be changed by normal
admins on the wiki itself.
one could even write a LanguageBot.php which simply
returns the name of the message itself with some marker.
brion doesn't seem to like this idea, though ;)
at the moment i use uselang=nds for the jEdit plugin, and
it works just fine.
daniel
Yann wrote:
> There is a need for bots on Wikisource, especially since the
> creation of subdomains for languages.
>
Hi Yann,
The last CVS version support the wikisource family, try in
user-config.py:
usernames['wikisource']['en'] = 'Yann'
usernames['wikisource']['de'] = 'Yann'
Thanks,
Leonardo.