From 85ca43d2ee279af20cbbcbae1cdd56db5898052c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 18 Feb 2006 15:07:02 +0000 Subject: [PATCH] * Restriction types now use restriction-* messages instead of ui messages * Don't try to link to current page on protection tab --- RELEASE-NOTES | 2 ++ includes/DefaultSettings.php | 1 + includes/ProtectionForm.php | 3 ++- languages/Messages.php | 9 +++++++-- languages/MessagesFi.php | 18 ++++++++++-------- 5 files changed, 22 insertions(+), 11 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 410b16ad7a..e99b6ea325 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -238,6 +238,7 @@ i18n / Languages: * (bug 5015) Update magic words translation in LanguageBe.php * (bug 4859) Update for Portuguese messages (pt) * (bug 4788) One string for MessagesPl +* Restriction types now use restriction-* messages instead of ui messages Parser: * (bug 2522) {{CURRENTDAY2}} now shows the current day number with two digits @@ -634,6 +635,7 @@ fully support the editing toolbar, but was found to be too confusing. * Avoid corrupting inside * Remove legacy PHPTal code, hasn't been maintained in ages. * Tweak Userlogin include order for APC issue +* Don't try to link to current page on protection tab === Caveats === diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index f44971c526..c2f5cb51c9 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -856,6 +856,7 @@ $wgGroupPermissions['bureaucrat']['userrights'] = true; /** * Set of available actions that can be restricted via Special:Protect * You probably shouldn't change this. + * Translated trough restriction-* messages. */ $wgRestrictionTypes = array( 'edit', 'move' ); diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 5cddb69ec0..65cbfa8c03 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -132,7 +132,8 @@ class ProtectionForm { $out .= ""; $out .= "\n"; foreach( $this->mRestrictions as $action => $required ) { - $out .= "" . wfMsgHtml( $action ) . "\n"; + /* Not all languages have V_x <-> N_x relation */ + $out .= "" . wfMsgHtml( 'restriction-' . $action ) . "\n"; } $out .= "\n"; $out .= "\n"; diff --git a/languages/Messages.php b/languages/Messages.php index fc72632fb2..78bd394dab 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -1130,14 +1130,18 @@ See [[Project:Protected page]] for more information.", 'confirmunprotect' => 'Confirm unprotection', 'unprotectcomment' => 'Reason for unprotecting', 'protect-unchain' => 'Unlock move permissions', -'protect-text' => 'You may view and change the protection level here for the page [[$1]]. +'protect-text' => 'You may view and change the protection level here for the page $1. Please be sure you are following the [[Project:Protected page|project guidelines]].', 'protect-viewtext' => 'Your account does not have permission to change -page protection levels. Here are the current settings for the page [[$1]]:', +page protection levels. Here are the current settings for the page $1:', 'protect-default' => '(default)', 'protect-level-autoconfirmed' => 'Block unregistered users', 'protect-level-sysop' => 'Sysops only', +# restrictions (nouns) +'restriction-edit' => 'Edit', +'restriction-move' => 'Move', + # Undelete 'undelete' => 'View deleted pages', @@ -1934,6 +1938,7 @@ Please confirm that really want to recreate this article.', 'youhavenewmessagesmulti' => "You have new messages on $1", 'newtalkseperator' => ',_', + ); diff --git a/languages/MessagesFi.php b/languages/MessagesFi.php index a83867f480..0ed0823133 100644 --- a/languages/MessagesFi.php +++ b/languages/MessagesFi.php @@ -921,17 +921,21 @@ Palaute ja lisäapu osoitteessa: 'confirmprotecttext' => 'Haluatko varmasti suojata tämän sivun?', 'confirmprotect' => 'Vahvista suojaus', 'protectmoveonly' => 'Suojaa vain siirroilta', -'protectcomment' => 'Suojauksen syy', +'protectcomment' => 'Suojauksen syy:', 'unprotectsub' => 'Suojauksen poisto sivulta $1', 'confirmunprotecttext'=> 'Haluatko varmasti poistaa tämän sivun suojauksen?', 'confirmunprotect' => 'Vahvista suojauksen poisto', 'unprotectcomment' => 'Syy suojauksen poistoon', 'protect-unchain' => 'Käytä siirtosuojausta', -'protect-text' => 'Voit katsoa ja muuttaa sivun [[$1]] suojauksia.', -'protect-viewtext' => 'Et voi muuttaa sivun [[$1]] suojauksia. Alla näet nykyiset suojaukset.', -'protect-default' => '(oletus)', -'protect-level-autoconfirmed' => 'Estä vain rekisteröimättömät käyttäjät', -'protect-level-sysop' => 'vain ylläpitäjät', +'protect-text' => 'Voit katsoa ja muuttaa sivun ”$1” suojauksia:', +'protect-viewtext' => 'Et voi muuttaa sivun ”$1” suojauksia. Alla on sivun nykyiset suojaukset:', +'protect-default' => '(ei rajoituksia)', +'protect-level-autoconfirmed' => 'Estä uudet ja anonyymit käyttäjät', +'protect-level-sysop' => 'Vain ylläpitäjät', + +# restrictions (nouns) +'restriction-edit' => 'muokkaus', +'restriction-move' => 'siirto', # Undelete @@ -1644,6 +1648,4 @@ Ole hyvä ja varmista, että haluat luoda sivun uudelleen.', ); - - ?> -- 2.20.1