Last modified: 2010-05-15 15:41:18 UTC
Localized Block IP expiry terms all return "expiry time invalid" whatever is picked as
expiry term. The only thing that works, is to pick "other" and enter the period in
English, such as "2 weeks".
This may have something to do with localizing the Block messages and Block terms to
Danish in Special:Allmessages.
For the first time, I had to block someone today, so this caused a lot of frustration in
a few moments, when nothing would make the block acceptable.
Test in latest installment : localize block term texts in Special:Allmessages, and try to
block an IP.
Localizing this page apparently causes the problem : MediaWiki:Ipboptions
If you're having problems this usually means you have used invalid syntax, such as reversing the machine-readable and
localized names of the time units. Please be specific.
Does this mean that the machine-readable variables are also listed in
MediaWiki:Ipboptions (in English), along with the localized/translated terms?
In that case, that ought to be the problem then. I have localized all terms on
this page, not knowing which ones would appear where.
Yes this did the trick.
My MediaWiki:Ipboptions page now reads :
2 timer:2 hours,1 dag:1 day,3 dage:3 days,1 uge:1 week,2 uger:2 weeks,1 måned:1
month,3 måneder:3 months,6 måneder:6 months,1 år:1 year,ubestemt tid:infinite
As opposed to :
2 timer:2 timer,1 dag:1 dag,3 dage:3 dage,1 uge:1 uge,2 uger:2 uger,1 måned:1 måned,3
måneder:3 måneder,6 måneder:6 måneder,1 år:1 år,Uendeligt:Uendeligt
Or originally :
2 hours:2 hours,1 day:1 day,3 days:3 days,1 week:1 week,2 weeks:2 weeks,1 month:1
month,3 months:3 months,6 months:6 months,1 year:1 year,infinite:infinite
Posting this in case other users get the order wrong.
After this change, BlockIp works fine, but MediaWiki now provides the mixed language
text "blokerede "Bruger:184.108.40.206" med 2 weeks som udløbstid:", i.e. Danish text
mixed in with the English "2 weeks".
This is clearly a bug, as MW should use the localized database messages for this
report, not the machine-readable variable.
(In reply to comment #5)
> After this change, BlockIp works fine, but MediaWiki now provides the mixed
> text "blokerede "Bruger:220.127.116.11" med 2 weeks som udløbstid:", i.e. Danish
> mixed in with the English "2 weeks".
> This is clearly a bug, as MW should use the localized database messages for this
> report, not the machine-readable variable.
This is filed as bug 5387 --> marked this bug as dupe.
*** This bug has been marked as a duplicate of 5387 ***
Leaving this WORKSFORME, regarding the original issue (one issue per bug, please).