Hey guys and first of all thanks for the great work on MediaWiki, i would like to request of you three things that need to be done on the Icelandic wikipedia regarding technical issues to bring it up to par with the larger wikipedias.
1. Insert the LanguageIs.php Thanks a lot for previous help on this file, it's already in CVS and ready to roll;=)
2. Post-LanguageIs.php insertation
After namespaces have been translated to Icelandic we'll have a lot of broken wikilinks, [[Category:foo]] instead of [[Flokkur:foo]] and so on, i understand that instead of falling over gracefully the system will break due to this, so it would like to request that a bot be run which replaces English namespace text inn all wikitext to the Icelandic equivalents.
Timwi previously pointed out to me that i could use some Perl scripts ( http://meta.wikimedia.org/wiki/Useless_Perl_Scripts ) to do this myself, however i would prefer not to as i don't have experience with those and it could lead to some undesired consequences.
3. Make Wikilinks work correctly, Currently, if i write wikilinks on is. they will not behave in the correct way, [[a]]b will only make a href="" for a but not b, see http://is.wikipedia.org/wiki/Wikipedia:Sandkassinn for a demo of this, could all letters listed in the Icelandic alphabet at http://en.wikipedia.org/wiki/Icelandic_alphabet be put in some sort of list for allowed characters to expand on?
On Wed, Jul 21, 2004 at 05:11:53AM +0000, ?var Arnfj?r? Bjarmason wrote:
- Insert the LanguageIs.php
Thanks a lot for previous help on this file, it's already in CVS and ready to roll;=)
- Post-LanguageIs.php insertation
After namespaces have been translated to Icelandic we'll have a lot of broken wikilinks, [[Category:foo]] instead of [[Flokkur:foo]] and so on, i understand that instead of falling over gracefully the system will break due to this,
No, it won't break any more. It used to in the past, but the current version of the script accepts the English names and automatically redirects to the local name. Try for example
http://de.wikipedia.org/wiki/Template:URV
- Make Wikilinks work correctly,
Currently, if i write wikilinks on is. they will not behave in the correct way, [[a]]b will only make a href="" for a but not b, see http://is.wikipedia.org/wiki/Wikipedia:Sandkassinn for a demo of this, could all letters listed in the Icelandic alphabet at http://en.wikipedia.org/wiki/Icelandic_alphabet be put in some sort of list for allowed characters to expand on?
This list is at MediaWiki:Linktrail. The format is a regular expression, see the setting for the German wikipedia for how to do this: http://de.wikipedia.org/wiki/MediaWiki:Linktrail
Regards,
JeLuF
On Wed, 21 Jul 2004 07:40:53 +0200, Jens Frank jeluf@gmx.de wrote:
On Wed, Jul 21, 2004 at 05:11:53AM +0000, ?var Arnfj?r? Bjarmason wrote:
- Insert the LanguageIs.php
Thanks a lot for previous help on this file, it's already in CVS and ready to roll;=)
- Post-LanguageIs.php insertation
After namespaces have been translated to Icelandic we'll have a lot of broken wikilinks, [[Category:foo]] instead of [[Flokkur:foo]] and so on, i understand that instead of falling over gracefully the system will break due to this,
No, it won't break any more. It used to in the past, but the current version of the script accepts the English names and automatically redirects to the local name. Try for example
http://de.wikipedia.org/wiki/Template:URV
Nice, would still be nice to have some kind of bot but it wont be an imporant issue like i thought it would be.
- Make Wikilinks work correctly,
Currently, if i write wikilinks on is. they will not behave in the correct way, [[a]]b will only make a href="" for a but not b, see http://is.wikipedia.org/wiki/Wikipedia:Sandkassinn for a demo of this, could all letters listed in the Icelandic alphabet at http://en.wikipedia.org/wiki/Icelandic_alphabet be put in some sort of list for allowed characters to expand on?
This list is at MediaWiki:Linktrail. The format is a regular expression, see the setting for the German wikipedia for how to do this: http://de.wikipedia.org/wiki/MediaWiki:Linktrail
Changed it to /^([á|ð|é|í|ó|ú|ý|þ|æ|ö|a-z]+)(.*)$/sD , works like a charm
Regards,
JeLuF _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Now the only thing is just to drop in the languageIs.php file and it will work like a charm, thanks alot for your advice and input
Ævar Arnfjörð Bjarmason wrote:
Changed it to /^([á|ð|é|í|ó|ú|ý|þ|æ|ö|a-z]+)(.*)$/sD , works like a charm
I'm not sure, but this looks like it would also expand on the | character.
You want just: /^([áðéíóúýþæöa-z]+)(.*)$/sD
Timwi
Timwi wrote:
Ævar Arnfjörð Bjarmason wrote:
Changed it to /^([á|ð|é|í|ó|ú|ý|þ|æ|ö|a-z]+)(.*)$/sD , works like a charm
I'm not sure, but this looks like it would also expand on the | character. You want just: /^([áðéíóúýþæöa-z]+)(.*)$/sD
I actually am sure now. I tried it on the German Wikipedia, and indeed the | character becomes part of the link this way. http://de.wikipedia.org/wiki/MediaWiki_Diskussion:Linktrail
Timwi
Timwi wrote:
Ævar Arnfjörð Bjarmason wrote:
Changed it to /^([á|ð|é|í|ó|ú|ý|þ|æ|ö|a-z]+)(.*)$/sD , works like a charm
I'm not sure, but this looks like it would also expand on the | character.
You want just: /^([áðéíóúýþæöa-z]+)(.*)$/sD
That won't work with UTF-8.
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
Timwi wrote:
Ævar Arnfjörð Bjarmason wrote:
Changed it to /^([á|ð|é|í|ó|ú|ý|þ|æ|ö|a-z]+)(.*)$/sD , works like a charm
I'm not sure, but this looks like it would also expand on the | character.
You want just: /^([áðéíóúýþæöa-z]+)(.*)$/sD
That won't work with UTF-8.
Brion, you're too quick to reply again. I have to admit that I didn't think of UTF-8, but:
(a) it *does* work with UTF-8, albeit accidentally, and (b) either way it's more correct than the other version. You do *not* want a "|" character inside square(!) brackets.
Given the concerns with UTF-8, Ævar, I suggest you use:
/^((?:á|ð|é|í|ó|ú|ý|þ|æ|ö|[a-z])+)(.*)$/sD
Greetings, Timwi
Timwi wrote:
Brion Vibber wrote:
Changed it to /^([á|ð|é|í|ó|ú|ý|þ|æ|ö|a-z]+)(.*)$/sD , works like a charm
You want just: /^([áðéíóúýþæöa-z]+)(.*)$/sD
That won't work with UTF-8.
Brion, you're too quick to reply again. I have to admit that I didn't think of UTF-8, but:
(a) it *does* work with UTF-8, albeit accidentally, and
It will catch the correct characters, but also incorrect characters. False positives are not correct functioning.
(b) either way it's more correct than the other version. You do *not* want a "|" character inside square(!) brackets.
Quite right about the first version, but unrelated to the correctness of the second version.
Given the concerns with UTF-8, Ævar, I suggest you use:
/^((?:á|ð|é|í|ó|ú|ý|þ|æ|ö|[a-z])+)(.*)$/sD
As already established in the other language files.
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org