Index: tags/extensions/ApprovedRevs/REL_0_3_1/maintenance/approveAllPages.php |
— | — | @@ -0,0 +1,72 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * This script approves the current revision of all pages that are in an |
| 6 | + * approvable namespace, and do not already have an approved revision. |
| 7 | + * |
| 8 | + * Usage: |
| 9 | + * no parameters |
| 10 | + * |
| 11 | + * This program is free software; you can redistribute it and/or modify |
| 12 | + * it under the terms of the GNU General Public License as published by |
| 13 | + * the Free Software Foundation; either version 2 of the License, or |
| 14 | + * (at your option) any later version. |
| 15 | + * |
| 16 | + * This program is distributed in the hope that it will be useful, |
| 17 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | + * GNU General Public License for more details. |
| 20 | + * |
| 21 | + * You should have received a copy of the GNU General Public License along |
| 22 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 23 | + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 24 | + * http://www.gnu.org/copyleft/gpl.html |
| 25 | + * |
| 26 | + * @author Jeroen De Dauw |
| 27 | + * @author Yaron Koren |
| 28 | + * @ingroup Maintenance |
| 29 | + */ |
| 30 | + |
| 31 | +require_once( dirname( __FILE__ ) . '/../../../maintenance/Maintenance.php' ); |
| 32 | + |
| 33 | +class ApproveAllPages extends Maintenance { |
| 34 | + |
| 35 | + public function __construct() { |
| 36 | + parent::__construct(); |
| 37 | + |
| 38 | + $this->mDescription = "Approve the current revision of all pages that do not yet have an approved revision."; |
| 39 | + } |
| 40 | + |
| 41 | + public function execute() { |
| 42 | + global $wgTitle; |
| 43 | + |
| 44 | + $dbr = wfGetDB( DB_SLAVE ); |
| 45 | + |
| 46 | + $pages = $dbr->select( |
| 47 | + 'page', |
| 48 | + array( |
| 49 | + 'page_id', |
| 50 | + 'page_latest' |
| 51 | + ) |
| 52 | + ); |
| 53 | + |
| 54 | + while ( $page = $pages->fetchObject() ) { |
| 55 | + $title = Title::newFromID( $page->page_id ); |
| 56 | + // some extensions, like Semantic Forms, need $wgTitle |
| 57 | + // set as well |
| 58 | + $wgTitle = $title; |
| 59 | + if ( ApprovedRevs::pageIsApprovable( $title ) && |
| 60 | + ! ApprovedRevs::hasApprovedRevision( $title ) ) { |
| 61 | + ApprovedRevs::setApprovedRevID( $title, $page->page_latest, true ); |
| 62 | + $this->output( wfTimestamp( TS_DB ) . ' Approved the last revision of page "' . $title->getFullText() . '".' ); |
| 63 | + } |
| 64 | + } |
| 65 | + |
| 66 | + |
| 67 | + $this->output( "\n Finished setting all current revisions to approved. \n" ); |
| 68 | + } |
| 69 | + |
| 70 | +} |
| 71 | + |
| 72 | +$maintClass = "ApproveAllPages"; |
| 73 | +require_once( DO_MAINTENANCE ); |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/maintenance/approveAllPages.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 74 | + native |
Index: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs_body.php |
— | — | @@ -0,0 +1,172 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Main class for the Approved Revs extension. |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + * |
| 9 | + * @author Yaron Koren |
| 10 | + */ |
| 11 | + |
| 12 | +class ApprovedRevs { |
| 13 | + /** |
| 14 | + * Gets the approved revision ID for this page, or null if there isn't |
| 15 | + * one. |
| 16 | + */ |
| 17 | + public static function getApprovedRevID( $title ) { |
| 18 | + if ( ! self::pageIsApprovable( $title ) ) { |
| 19 | + return null; |
| 20 | + } |
| 21 | + $dbr = wfGetDB( DB_SLAVE ); |
| 22 | + $page_id = $title->getArticleId(); |
| 23 | + $rev_id = $dbr->selectField( 'approved_revs', 'rev_id', array( 'page_id' => $page_id ) ); |
| 24 | + return $rev_id; |
| 25 | + } |
| 26 | + |
| 27 | + /** |
| 28 | + * Returns whether or not this page has a revision ID. |
| 29 | + */ |
| 30 | + public static function hasApprovedRevision( $title ) { |
| 31 | + $revision_id = self::getApprovedRevID( $title ); |
| 32 | + return ( ! empty( $revision_id ) ); |
| 33 | + } |
| 34 | + |
| 35 | + /** |
| 36 | + * Returns the content of the approved revision of this page, or null |
| 37 | + * if there isn't one. |
| 38 | + */ |
| 39 | + public static function getApprovedContent( $title ) { |
| 40 | + $revision_id = ApprovedRevs::getApprovedRevID( $title ); |
| 41 | + if ( empty( $revision_id ) ) { |
| 42 | + return null; |
| 43 | + } |
| 44 | + $article = new Article( $title, $revision_id ); |
| 45 | + return( $article->getContent() ); |
| 46 | + } |
| 47 | + |
| 48 | + /** |
| 49 | + * Helper function - determine whether a boolean page property is |
| 50 | + * set; the regular getProperty() function isn't working here, for |
| 51 | + * some reason, so just make a database call. |
| 52 | + */ |
| 53 | + public static function isPagePropertySet( $title, $propName ) { |
| 54 | + $dbr = wfGetDB( DB_SLAVE ); |
| 55 | + $res = $dbr->select( 'page_props', 'COUNT(*)', |
| 56 | + array( |
| 57 | + 'pp_page' => $title->getArticleID(), |
| 58 | + 'pp_propname' => $propName, |
| 59 | + 'pp_value' => 'y' |
| 60 | + ) |
| 61 | + ); |
| 62 | + $row = $dbr->fetchRow( $res ); |
| 63 | + return ( $row[0] == 1 ); |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * Returns whether this page can be approved - either because it's in |
| 68 | + * a supported namespace, or because it's been specially marked as |
| 69 | + * approvable. Also stores the boolean answer as a field in the page |
| 70 | + * object, to speed up processing if it's called more than once. |
| 71 | + */ |
| 72 | + public static function pageIsApprovable( $title ) { |
| 73 | + // if this function was already called for this page, the |
| 74 | + // value should have been stored as a field in the $title object |
| 75 | + if ( isset( $title->isApprovable ) ) { |
| 76 | + return $title->isApprovable; |
| 77 | + } |
| 78 | + |
| 79 | + // check the namespace |
| 80 | + global $egApprovedRevsNamespaces; |
| 81 | + if ( in_array( $title->getNamespace(), $egApprovedRevsNamespaces ) ) { |
| 82 | + $title->isApprovable = true; |
| 83 | + return true; |
| 84 | + } |
| 85 | + |
| 86 | + // it's not in an included namespace, so check for the page |
| 87 | + // property. |
| 88 | + $isApprovable = self::isPagePropertySet( $title, 'approvedrevs' ); |
| 89 | + $title->isApprovable = $isApprovable; |
| 90 | + return $isApprovable; |
| 91 | + } |
| 92 | + |
| 93 | + /** |
| 94 | + * Sets a certain revision as the approved one for this page in the |
| 95 | + * approved_revs DB table; calls a "links update" on this revision |
| 96 | + * so that category information can be stored correctly, as well as |
| 97 | + * info for extensions such as Semantic MediaWiki; and logs the action. |
| 98 | + */ |
| 99 | + public static function setApprovedRevID( $title, $rev_id, $is_latest = false ) { |
| 100 | + $dbr = wfGetDB( DB_MASTER ); |
| 101 | + $page_id = $title->getArticleId(); |
| 102 | + $old_rev_id = $dbr->selectField( 'approved_revs', 'rev_id', array( 'page_id' => $page_id ) ); |
| 103 | + if ( $old_rev_id ) { |
| 104 | + $dbr->update( 'approved_revs', array( 'rev_id' => $rev_id ), array( 'page_id' => $page_id ) ); |
| 105 | + } else { |
| 106 | + $dbr->insert( 'approved_revs', array( 'page_id' => $page_id, 'rev_id' => $rev_id ) ); |
| 107 | + } |
| 108 | + |
| 109 | + // if the revision being approved is definitely the latest |
| 110 | + // one, there's no need to call the parser on it |
| 111 | + if ( !$is_latest ) { |
| 112 | + $parser = new Parser(); |
| 113 | + $parser->setTitle( $title ); |
| 114 | + $article = new Article( $title, $rev_id ); |
| 115 | + $text = $article->getContent(); |
| 116 | + $options = new ParserOptions(); |
| 117 | + $parser->parse( $text, $title, $options, true, true, $rev_id ); |
| 118 | + $u = new LinksUpdate( $title, $parser->getOutput() ); |
| 119 | + $u->doUpdate(); |
| 120 | + } |
| 121 | + |
| 122 | + $log = new LogPage( 'approval' ); |
| 123 | + $rev_url = $title->getFullURL( array( 'old_id' => $rev_id ) ); |
| 124 | + $rev_link = Xml::element( |
| 125 | + 'a', |
| 126 | + array( 'href' => $rev_url ), |
| 127 | + $rev_id |
| 128 | + ); |
| 129 | + $logParams = array( $rev_link ); |
| 130 | + $log->addEntry( |
| 131 | + 'approve', |
| 132 | + $title, |
| 133 | + '', |
| 134 | + $logParams |
| 135 | + ); |
| 136 | + |
| 137 | + wfRunHooks( 'ApprovedRevsRevisionApproved', array( $parser, $title, $rev_id ) ); |
| 138 | + } |
| 139 | + |
| 140 | + public static function deleteRevisionApproval( $title ) { |
| 141 | + $dbr = wfGetDB( DB_MASTER ); |
| 142 | + $page_id = $title->getArticleId(); |
| 143 | + $dbr->delete( 'approved_revs', array( 'page_id' => $page_id ) ); |
| 144 | + } |
| 145 | + |
| 146 | + /** |
| 147 | + * Unsets the approved revision for this page in the approved_revs DB |
| 148 | + * table; calls a "links update" on this page so that category |
| 149 | + * information can be stored correctly, as well as info for |
| 150 | + * extensions such as Semantic MediaWiki; and logs the action. |
| 151 | + */ |
| 152 | + public static function unsetApproval( $title ) { |
| 153 | + self::deleteRevisionApproval( $title ); |
| 154 | + |
| 155 | + $parser = new Parser(); |
| 156 | + $parser->setTitle( $title ); |
| 157 | + $article = new Article( $title ); |
| 158 | + $text = $article->getContent(); |
| 159 | + $options = new ParserOptions(); |
| 160 | + $parser->parse( $text, $title, $options ); |
| 161 | + $u = new LinksUpdate( $title, $parser->getOutput() ); |
| 162 | + $u->doUpdate(); |
| 163 | + |
| 164 | + $log = new LogPage( 'approval' ); |
| 165 | + $log->addEntry( |
| 166 | + 'unapprove', |
| 167 | + $title, |
| 168 | + '' |
| 169 | + ); |
| 170 | + |
| 171 | + wfRunHooks( 'ApprovedRevsRevisionUnapproved', array( $parser, $title ) ); |
| 172 | + } |
| 173 | +} |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs_body.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 174 | + native |
Index: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.i18n.php |
— | — | @@ -0,0 +1,686 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalization file for the Approved Revs extension. |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | +*/ |
| 9 | + |
| 10 | +$messages = array(); |
| 11 | + |
| 12 | +/** English |
| 13 | + * @author Yaron Koren |
| 14 | + */ |
| 15 | +$messages['en'] = array( |
| 16 | + // user messages |
| 17 | + 'approvedrevs-desc' => 'Set a single revision of a page as approved', |
| 18 | + 'approvedrevs-logname' => 'Revision approval log', |
| 19 | + 'approvedrevs-logdesc' => 'This is the log of revisions that have been approved.', |
| 20 | + 'approvedrevs-approve' => 'approve', |
| 21 | + 'approvedrevs-unapprove' => 'unapprove', |
| 22 | + 'approvedrevs-approvesuccess' => 'This revision of the page has been set as the approved version.', |
| 23 | + 'approvedrevs-unapprovesuccess' => 'There is no longer an approved version for this page. |
| 24 | +Instead, the most recent revision will be shown.', |
| 25 | + 'approvedrevs-approveaction' => 'set $2 as the approved revision for "[[$1]]"', |
| 26 | + 'approvedrevs-unapproveaction' => 'unset approved revision for "[[$1]]"', |
| 27 | + 'approvedrevs-notlatest' => 'This is the approved revision of this page; it is not the most recent.', |
| 28 | + 'approvedrevs-approvedandlatest' => 'This is the approved revision of this page, as well as being the most recent.', |
| 29 | + 'approvedrevs-viewlatest' => 'View most recent revision.', |
| 30 | + 'approvedpages' => 'Approved pages', |
| 31 | + 'approvedrevs-approvedpages-docu' => 'The following are the pages in the wiki that have an approved revision.', |
| 32 | + 'right-approverevisions' => 'Set a certain revision of a wiki page as approved', |
| 33 | + 'right-viewlinktolatest' => 'View explanatory text at the top of pages that have an approved revision', |
| 34 | +); |
| 35 | + |
| 36 | +/** Message documentation (Message documentation) |
| 37 | + * @author EugeneZelenko |
| 38 | + */ |
| 39 | +$messages['qqq'] = array( |
| 40 | + 'approvedrevs-approve' => '{{Identical|Approve}}', |
| 41 | +); |
| 42 | + |
| 43 | +/** Afrikaans (Afrikaans) |
| 44 | + * @author Naudefj |
| 45 | + */ |
| 46 | +$messages['af'] = array( |
| 47 | + 'approvedrevs-approve' => 'keur goed', |
| 48 | + 'approvedrevs-viewlatest' => 'Wys mees onlangse hersiening.', |
| 49 | + 'approvedpages' => 'Goedgekeurde bladsye', |
| 50 | +); |
| 51 | + |
| 52 | +/** Arabic (العربية) |
| 53 | + * @author Moemin05 |
| 54 | + */ |
| 55 | +$messages['ar'] = array( |
| 56 | + 'approvedrevs-approve' => 'موافقة', |
| 57 | + 'approvedrevs-unapprove' => 'إزالة موافقة', |
| 58 | + 'approvedpages' => 'صفحات تمّت الموافقة عليها', |
| 59 | + 'approvedrevs-approvedpages-docu' => 'صفحات الويكي التالية لها مراجعات موافق عليها.', |
| 60 | +); |
| 61 | + |
| 62 | +/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
| 63 | + * @author EugeneZelenko |
| 64 | + * @author Jim-by |
| 65 | + * @author Wizardist |
| 66 | + */ |
| 67 | +$messages['be-tarask'] = array( |
| 68 | + 'approvedrevs-desc' => 'Зацьвердзіць адну вэрсію старонкі', |
| 69 | + 'approvedrevs-logname' => 'Журнал зацьверджаньня вэрсіяў', |
| 70 | + 'approvedrevs-logdesc' => 'Гэта журнал зацьверджаных вэрсіяў.', |
| 71 | + 'approvedrevs-approve' => 'зацьвердзіць', |
| 72 | + 'approvedrevs-unapprove' => 'адхіліць', |
| 73 | + 'approvedrevs-approvesuccess' => 'Гэтая вэрсія старонкі была зацьверджаная.', |
| 74 | + 'approvedrevs-unapprovesuccess' => 'Болей не існуе зацьверджанай вэрсіі гэтай старонкі. |
| 75 | +Замест яе будзе паказаная апошняя вэрсія.', |
| 76 | + 'approvedrevs-approveaction' => 'зацьвердзіць $2 як зацьверджаную вэрсію старонкі «[[$1]]»', |
| 77 | + 'approvedrevs-unapproveaction' => 'зьняць зацьверджаньне з вэрсіі старонкі «[[$1]]»', |
| 78 | + 'approvedrevs-notlatest' => 'Гэта зацьверджаная вэрсія гэтай старонкі; гэта не апошняя вэрсія.', |
| 79 | + 'approvedrevs-approvedandlatest' => 'Гэта зацьверджаная вэрсія гэтай старонкі, адначасова яна зьяўляецца апошняй вэрсіяй.', |
| 80 | + 'approvedrevs-viewlatest' => 'Паказаць апошнюю вэрсію.', |
| 81 | + 'approvedpages' => 'Зацьверджаныя старонкі', |
| 82 | + 'approvedrevs-approvedpages-docu' => 'Ніжэй пададзеныя старонкі {{GRAMMAR:родны|{{SITENAME}}}}, якія маюць зацьверджаныя вэрсіі.', |
| 83 | + 'right-approverevisions' => 'зацьверджаньне вызначаных вэрсіяў вікі-старонак', |
| 84 | + 'right-viewlinktolatest' => 'прагляд тлумачальнага тэксту ў версе старонак, якія маюць зацьверджаныя вэрсіі', |
| 85 | +); |
| 86 | + |
| 87 | +/** Breton (Brezhoneg) |
| 88 | + * @author Y-M D |
| 89 | + */ |
| 90 | +$messages['br'] = array( |
| 91 | + 'approvedrevs-desc' => 'Merkañ un adweladenn hepken eus ur bajenn evel aprouet', |
| 92 | + 'approvedrevs-logname' => 'Marilh aprouadennoù an adweladennoù', |
| 93 | + 'approvedrevs-logdesc' => 'Marilh an adweladennoù bet merket evel aprouet eo.', |
| 94 | + 'approvedrevs-approve' => 'aprouiñ', |
| 95 | + 'approvedrevs-unapprove' => 'Dizaprouiñ', |
| 96 | + 'approvedrevs-approvesuccess' => 'An adweladenn-mañ eus ar bajenn a zo bet merket evel ar stumm aprouet.', |
| 97 | + 'approvedrevs-unapprovesuccess' => "N'eus stumm aprouet ebet ken eus ar bajenn-mañ. |
| 98 | +E plas e vo lakaet an adweladenn nevesañ.", |
| 99 | + 'approvedrevs-approveaction' => 'en deus merket $2 evel adweladenn aprouet "[[$1]]"', |
| 100 | + 'approvedrevs-unapproveaction' => 'en deus nullet merkadur un adweladenn aprouet evit "[[$1]]"', |
| 101 | + 'approvedrevs-notlatest' => "Adweladenn aprouet ar bajenn-mañ eo ; n'eo ket an hini nevesañ.", |
| 102 | + 'approvedrevs-approvedandlatest' => 'Adweladenn aprouet ar bajenn-mañ eo, hag ivez an hini nevesañ.', |
| 103 | + 'approvedrevs-viewlatest' => 'Gwelet an adweladenn nevesañ.', |
| 104 | + 'approvedpages' => 'Pajennoù aprouet', |
| 105 | + 'approvedrevs-approvedpages-docu' => 'Setu ar pajennoù wiki hag o deus un adweladenn aprouet.', |
| 106 | + 'right-approverevisions' => 'Merkañ un adweladenn bennak eus ur bajenn wiki evel aprouet', |
| 107 | + 'right-viewlinktolatest' => 'Gwelet an destenn displegañ e penn uhelañ ar pajennoù hag o deus un adweladenn aprouet', |
| 108 | +); |
| 109 | + |
| 110 | +/** Bosnian (Bosanski) |
| 111 | + * @author CERminator |
| 112 | + * @author Palapa |
| 113 | + */ |
| 114 | +$messages['bs'] = array( |
| 115 | + 'approvedrevs-desc' => 'Postavljanje jedne revizije stranice kao odobrene', |
| 116 | + 'approvedrevs-logname' => 'Zapisnik odobravanje revizija', |
| 117 | + 'approvedrevs-logdesc' => 'Ovo je zapis revizija koje su odobrene.', |
| 118 | + 'approvedrevs-approve' => 'odobri', |
| 119 | + 'approvedrevs-unapprove' => 'neodobreno', |
| 120 | + 'approvedrevs-approvesuccess' => 'Ova revizija stranice je postavljena kao odobrena verzija.', |
| 121 | + 'approvedrevs-unapprovesuccess' => 'Više ne postoji odobrena verzija ove stranice. |
| 122 | +Umjesto toga, zadnja revizija će biti prikazana.', |
| 123 | + 'approvedrevs-approveaction' => 'postavi $2 kao odobrenu reviziju za "[[$1]]"', |
| 124 | + 'approvedrevs-unapproveaction' => 'ukloni odobrenu reviziju za "[[$1]]"', |
| 125 | + 'approvedrevs-notlatest' => 'Ovo je odobrena verzija ove stranice; to nije najnovija verzija.', |
| 126 | + 'approvedrevs-approvedandlatest' => 'Ovo je odobrena verzija ove stranice, a ujedno i najnovija.', |
| 127 | + 'approvedrevs-viewlatest' => 'Pogledaj zadnju reviziju.', |
| 128 | + 'approvedpages' => 'Odobrene stranice', |
| 129 | + 'approvedrevs-approvedpages-docu' => 'Slijede stranice na ovoj wiki koje imaju odobrene revizije.', |
| 130 | + 'right-approverevisions' => 'Postavi određenu reviziju wiki stranice kao odobrenu', |
| 131 | + 'right-viewlinktolatest' => 'Vidi tekst objašnjenja na vrhu stranica koje imaju odobrenu reviziju', |
| 132 | +); |
| 133 | + |
| 134 | +/** Czech (Česky) */ |
| 135 | +$messages['cs'] = array( |
| 136 | + 'approvedrevs-approve' => 'schválit', |
| 137 | +); |
| 138 | + |
| 139 | +/** German (Deutsch) |
| 140 | + * @author Kghbln |
| 141 | + */ |
| 142 | +$messages['de'] = array( |
| 143 | + 'approvedrevs-desc' => 'Ermöglicht es, stets eine bestimmte Version einer Seite als bestätigte Version anzuzeigen', |
| 144 | + 'approvedrevs-logname' => 'Versionsbestätigungs-Logbuch', |
| 145 | + 'approvedrevs-logdesc' => 'In diesem Logbuch werden die Versionsbestätigungen von Seiten protokolliert.', |
| 146 | + 'approvedrevs-approve' => 'bestätigen', |
| 147 | + 'approvedrevs-unapprove' => 'ablehnen', |
| 148 | + 'approvedrevs-approvesuccess' => 'Diese Version der Seite wurde als bestätigte Version festgelegt.', |
| 149 | + 'approvedrevs-unapprovesuccess' => 'Nunmehr existiert keine bestätigte Version dieser Seite. |
| 150 | +Stattdessen wird die neueste Version angezeigt.', |
| 151 | + 'approvedrevs-approveaction' => '$2 als bestätigte Version für „[[$1]]“ festlegen', |
| 152 | + 'approvedrevs-unapproveaction' => 'bestätigte Version für „[[$1]]“ zurücknehmen', |
| 153 | + 'approvedrevs-notlatest' => 'Dies ist die bestätigte Version dieser Seite, allerdings nicht die neueste Version.', |
| 154 | + 'approvedrevs-approvedandlatest' => 'Dies ist die bestätigte sowie die neueste Version dieser Seite.', |
| 155 | + 'approvedrevs-viewlatest' => 'Die neueste Version ansehen.', |
| 156 | + 'approvedpages' => 'Bestätigte Seiten', |
| 157 | + 'approvedrevs-approvedpages-docu' => 'Die folgenden Seiten, sind die Seiten dieses Wikis, die eine bestätigte Version haben.', |
| 158 | + 'right-approverevisions' => 'Eine bestimmte Version einer Wikiseite als bestätigt festlegen', |
| 159 | + 'right-viewlinktolatest' => 'Erläuternde Hinweise im Kopf der Seiten anzeigen, die eine bestätigte Version haben.', |
| 160 | +); |
| 161 | + |
| 162 | +/** Lower Sorbian (Dolnoserbski) |
| 163 | + * @author Michawiki |
| 164 | + */ |
| 165 | +$messages['dsb'] = array( |
| 166 | + 'approvedrevs-desc' => 'Wěstu wersiju boka ako pśizwólonu nastajiś', |
| 167 | + 'approvedrevs-logname' => 'Protokol pśizwólonych wersijow', |
| 168 | + 'approvedrevs-logdesc' => 'To jo protokol wersijow, kótarež su se pśizwólili.', |
| 169 | + 'approvedrevs-approve' => 'pśizwóliś', |
| 170 | + 'approvedrevs-unapprove' => 'zakazaś', |
| 171 | + 'approvedrevs-approvesuccess' => 'Toś ta wersija boka jo se ako pśizwólona wersija nastajiła.', |
| 172 | + 'approvedrevs-unapprovesuccess' => 'Njejo wěcej pśizwólona wersija za toś ten bok. |
| 173 | +Město togo nejnowša wersija se pokažo.', |
| 174 | + 'approvedrevs-approveaction' => '$2 ako pśizwólonu wersiju za "[[$1]]" nastajiś', |
| 175 | + 'approvedrevs-unapproveaction' => 'Pśizwólonu wersiju za "[[$1]]" anulěrowaś', |
| 176 | + 'approvedrevs-notlatest' => 'To jo pśizwólona wersija toś togo boka; njejo nejnowša.', |
| 177 | + 'approvedrevs-approvedandlatest' => 'To jo pśizwólona wersija toś togo boka a teke nejnowša.', |
| 178 | + 'approvedrevs-viewlatest' => 'Nejnowšu wersiju pokazaś', |
| 179 | + 'approvedpages' => 'Pśizwólone boki', |
| 180 | + 'approvedrevs-approvedpages-docu' => 'Slědujuce boki we wikiju maju pśizwólonu wersiju.', |
| 181 | + 'right-approverevisions' => 'Wěstu wersiju wikiboka ako pśizwólonu nastajiś', |
| 182 | + 'right-viewlinktolatest' => 'Tekst wujasnjenja górjejce na bokach pokazaś, kótarež maju pśizwólonu wersiju', |
| 183 | +); |
| 184 | + |
| 185 | +/** Greek (Ελληνικά) |
| 186 | + * @author Περίεργος |
| 187 | + */ |
| 188 | +$messages['el'] = array( |
| 189 | + 'approvedrevs-desc' => 'Καθορίζει μια ενιαία αναθεώρηση μιας σελίδας όπως έχει εγκριθεί', |
| 190 | + 'approvedrevs-logname' => 'Ημερολόγιο καταγραφής της αποδοχής των αναθεωρήσεων', |
| 191 | + 'approvedrevs-logdesc' => 'Αυτό είναι το ημερολόγιο των αναθεωρήσεων που έχουν εγκριθεί.', |
| 192 | + 'approvedrevs-approve' => 'έγκριση', |
| 193 | + 'approvedrevs-unapprove' => 'μη έγκριση', |
| 194 | + 'approvedrevs-approvesuccess' => 'Αυτή η αναθεώρηση της σελίδας έχει οριστεί ως η εγκεκριμένη έκδοση.', |
| 195 | + 'approvedrevs-unapprovesuccess' => 'Δεν υπάρχει πλέον μια εγκεκριμένη έκδοση για αυτή τη σελίδα. |
| 196 | +Σε αντικατάσταση, θα εμφανιστεί η πιο πρόσφατη αναθεώρηση.', |
| 197 | + 'approvedrevs-notlatest' => 'Αυτή είναι η εγκεκριμένη αναθεώρηση αυτής της σελίδας· δεν είναι η πιο πρόσφατη.', |
| 198 | + 'approvedrevs-approvedandlatest' => 'Αυτή είναι η εγκεκριμένη αναθεώρηση αυτής της σελίδας, καθώς και η πιο πρόσφατη.', |
| 199 | + 'approvedrevs-viewlatest' => 'Δείτε την πιο πρόσφατη αναθεώρηση.', |
| 200 | + 'approvedpages' => 'Εγκεκριμένες σελίδες', |
| 201 | + 'approvedrevs-approvedpages-docu' => 'Οι ακόλουθες σελίδες είναι αυτές που έχουν εγκεκριμένη αναθεώρηση σε αυτό το βίκι.', |
| 202 | + 'right-viewlinktolatest' => 'Προβολή επεξηγηματικού κειμένου στο επάνω μέρος των σελίδων που έχουν εγκεκριμένη αναθεώρηση', |
| 203 | +); |
| 204 | + |
| 205 | +/** Spanish (Español) |
| 206 | + * @author Crazymadlover |
| 207 | + * @author Locos epraix |
| 208 | + */ |
| 209 | +$messages['es'] = array( |
| 210 | + 'approvedrevs-desc' => 'Establecer una revisión única de una página como aprovada', |
| 211 | + 'approvedrevs-logname' => 'Registro de revisiones aprobadas', |
| 212 | + 'approvedrevs-logdesc' => 'Este es el registro de las revisiones que han sido aprobadas.', |
| 213 | + 'approvedrevs-approve' => 'aprobar', |
| 214 | + 'approvedrevs-unapprove' => 'desaprobar', |
| 215 | + 'approvedrevs-approvesuccess' => 'Esta revisión de la página ha sido establecida como la versión aprobada.', |
| 216 | + 'approvedrevs-unapprovesuccess' => 'Ya no hay una versión aprobada para esta página. |
| 217 | +En su lugar, se muestra la revisión más reciente.', |
| 218 | + 'approvedrevs-approveaction' => 'establecer $2 como la revisión aprobada para para "[[$1]]"', |
| 219 | + 'approvedrevs-unapproveaction' => 'desestablecer la revisión aprobada para "[[$1]]"', |
| 220 | + 'approvedrevs-notlatest' => 'Esta es la revisión aprobada de esta página, no es la más reciente.', |
| 221 | + 'approvedrevs-approvedandlatest' => 'Esta es la revisión aprobada de esta página, siendo también la más reciente.', |
| 222 | + 'approvedrevs-viewlatest' => 'Ver revisión más reciente.', |
| 223 | + 'approvedpages' => 'Páginas aprobadas', |
| 224 | + 'approvedrevs-approvedpages-docu' => 'Las siguientes son las páginas en la wiki que tienen una versión aprobada.', |
| 225 | + 'right-approverevisions' => 'Establecer una cierta revisión de una página wiki como aprobada', |
| 226 | + 'right-viewlinktolatest' => 'Ver texto explicativo en la parte superior de las páginas que tienen una revisión aprobada', |
| 227 | +); |
| 228 | + |
| 229 | +/** Finnish (Suomi) |
| 230 | + * @author Centerlink |
| 231 | + * @author Crt |
| 232 | + * @author Nike |
| 233 | + */ |
| 234 | +$messages['fi'] = array( |
| 235 | + 'approvedrevs-desc' => 'Aseta yksittäinen sivuversio hyväksytyksi', |
| 236 | + 'approvedrevs-logname' => 'Versiohyväksynnän loki', |
| 237 | + 'approvedrevs-logdesc' => 'Tämä on hyväksyttyjen versioiden loki.', |
| 238 | + 'approvedrevs-approve' => 'hyväksy', |
| 239 | + 'approvedrevs-unapprove' => 'älä hyväksy', |
| 240 | + 'approvedrevs-approvesuccess' => 'Tämä sivuversio on asetettu hyväksytyksi versioksi.', |
| 241 | + 'approvedrevs-unapprovesuccess' => 'Tästä sivusta ei ole enää hyväksyttyä versiota. |
| 242 | +Sen sijaan, viimeisin versio näytetään.', |
| 243 | + 'approvedrevs-notlatest' => 'Tämä on tämän sivun hyväksytty versio; se ei ole viimeisin.', |
| 244 | + 'approvedrevs-approvedandlatest' => 'Tämä on tämän sivun hyväksytty ja samalla viimeisin versio.', |
| 245 | + 'approvedrevs-viewlatest' => 'Näytä viimeisin versio.', |
| 246 | + 'approvedpages' => 'Hyväksytyt sivut', |
| 247 | + 'approvedrevs-approvedpages-docu' => 'Seuraavat ovat wikisivuja, joilla on hyväksytty versio.', |
| 248 | + 'right-approverevisions' => 'Asettaa wikisivun tietty versio hyväksytyksi', |
| 249 | + 'right-viewlinktolatest' => 'Nähdä selittävä teksti niiden sivujen yläosassa, joilla on hyväksytty versio', |
| 250 | +); |
| 251 | + |
| 252 | +/** French (Français) |
| 253 | + * @author Peter17 |
| 254 | + */ |
| 255 | +$messages['fr'] = array( |
| 256 | + 'approvedrevs-desc' => 'Marquer une seule révision d’une page comme approuvée', |
| 257 | + 'approvedrevs-logname' => 'Journal des approbations de révisions', |
| 258 | + 'approvedrevs-logdesc' => 'Ceci est le journal des révisions qui ont été marquées comme approuvées.', |
| 259 | + 'approvedrevs-approve' => 'approuver', |
| 260 | + 'approvedrevs-unapprove' => 'désapprouver', |
| 261 | + 'approvedrevs-approvesuccess' => 'Cette révision de la page a été marquée comme étant la version approuvée.', |
| 262 | + 'approvedrevs-unapprovesuccess' => 'Il n’y a plus de version approuvée de cette page. |
| 263 | +Au lieu de cela, la révision la plus récente sera affichée.', |
| 264 | + 'approvedrevs-approveaction' => 'a marqué $2 comme la révision approuvée de « [[$1]] »', |
| 265 | + 'approvedrevs-unapproveaction' => 'a annulé le marquage d’une révision approuvée pour « [[$1]] »', |
| 266 | + 'approvedrevs-notlatest' => 'Ceci est la révision approuvée de cette page. Ce n’est pas la plus récente.', |
| 267 | + 'approvedrevs-approvedandlatest' => 'Ceci est la révision approuvée de la page, et aussi la plus récente.', |
| 268 | + 'approvedrevs-viewlatest' => 'Voir la révision la plus récente.', |
| 269 | + 'approvedpages' => 'Pages approuvées', |
| 270 | + 'approvedrevs-approvedpages-docu' => 'Voici les pages du wiki qui ont une révision approuvée.', |
| 271 | + 'right-approverevisions' => 'Marquer une révision précise d’une page comme approuvée', |
| 272 | + 'right-viewlinktolatest' => 'Voir le texte explicatif en haut des pages qui ont une révision approuvée', |
| 273 | +); |
| 274 | + |
| 275 | +/** Galician (Galego) |
| 276 | + * @author Toliño |
| 277 | + */ |
| 278 | +$messages['gl'] = array( |
| 279 | + 'approvedrevs-desc' => 'Marcar como aprobada unha única revisión dunha páxina', |
| 280 | + 'approvedrevs-logname' => 'Rexistro de aprobación de revisións', |
| 281 | + 'approvedrevs-logdesc' => 'Este é o rexistro das revisións aprobadas.', |
| 282 | + 'approvedrevs-approve' => 'aprobar', |
| 283 | + 'approvedrevs-unapprove' => 'desaprobar', |
| 284 | + 'approvedrevs-approvesuccess' => 'Esta é a revisión aprobada da páxina.', |
| 285 | + 'approvedrevs-unapprovesuccess' => 'Esta páxina xa non ten ningunha versión aprobada. |
| 286 | +No canto dela, móstrase a revisión máis recente.', |
| 287 | + 'approvedrevs-approveaction' => 'marcou $2 como a revisión aprobada de "[[$1]]"', |
| 288 | + 'approvedrevs-unapproveaction' => 'anulou unha revisión aprobada de "[[$1]]"', |
| 289 | + 'approvedrevs-notlatest' => 'Esta é a revisión aprobada da páxina, pero non é a máis recente.', |
| 290 | + 'approvedrevs-approvedandlatest' => 'Esta é a revisión aprobada da páxina, e tamén a máis recente.', |
| 291 | + 'approvedrevs-viewlatest' => 'Ollar a revisión máis recente.', |
| 292 | + 'approvedpages' => 'Páxinas aprobadas', |
| 293 | + 'approvedrevs-approvedpages-docu' => 'A continuación están as páxinas do wiki que posúen unha revisión aprobada.', |
| 294 | + 'right-approverevisions' => 'Marcar como aprobada unha revisión específica dunha páxina do wiki', |
| 295 | + 'right-viewlinktolatest' => 'Ollar o texto explicativo ao comezo das páxinas que posúen unha revisión aprobada', |
| 296 | +); |
| 297 | + |
| 298 | +/** Swiss German (Alemannisch) |
| 299 | + * @author Als-Holder |
| 300 | + */ |
| 301 | +$messages['gsw'] = array( |
| 302 | + 'approvedrevs-desc' => 'E Version vun eree Syte as „aagluegt“ markiere', |
| 303 | + 'approvedrevs-logname' => 'Versions-Markierigs-Logbuech', |
| 304 | + 'approvedrevs-logdesc' => 'Des isch s Logbuech vu dr aagluegte Version', |
| 305 | + 'approvedrevs-approve' => "As ''aagluegt'' markiere", |
| 306 | + 'approvedrevs-unapprove' => 'nit frejgee', |
| 307 | + 'approvedrevs-approvesuccess' => 'Die Version vu dr Syte isch as „aagluegti Version“ gsetzt wore.', |
| 308 | + 'approvedrevs-unapprovesuccess' => 'S git kei aaglkeugti Version me vu däre Syte. |
| 309 | +Statt däm wird di nejscht Version aazeigt.', |
| 310 | + 'approvedrevs-approveaction' => '$2 as aaglugti Version fir „[[$1]]“ setze', |
| 311 | + 'approvedrevs-unapproveaction' => 'd Markierig as aagluegti Version fir „[[$1]]“ uuseneh', |
| 312 | + 'approvedrevs-notlatest' => 'Des isch di aagluegt Version vu däre Syte; s isch nit di nejscht Version.', |
| 313 | + 'approvedrevs-approvedandlatest' => 'Des isch di aagluegt Version vu däre Syte un au di nejscht.', |
| 314 | + 'approvedrevs-viewlatest' => 'Di nejscht Version aaluege.', |
| 315 | + 'approvedpages' => 'Aagluegti Syte', |
| 316 | + 'approvedrevs-approvedpages-docu' => 'Des sin d Syte, wu s e aagluegti Version het.', |
| 317 | + 'right-approverevisions' => 'E sicheri Version vun ere Wikisyte as aagluegt markiere', |
| 318 | + 'right-viewlinktolatest' => 'Dr Erklerigstext aaluege obe uf Syte, wu s e aagluegti Version git', |
| 319 | +); |
| 320 | + |
| 321 | +/** Upper Sorbian (Hornjoserbsce) |
| 322 | + * @author Michawiki |
| 323 | + */ |
| 324 | +$messages['hsb'] = array( |
| 325 | + 'approvedrevs-desc' => 'Jednotliwu wersiju strony jako schwalenu stajić', |
| 326 | + 'approvedrevs-logname' => 'Protokol schwalenja wersijow', |
| 327 | + 'approvedrevs-logdesc' => 'To je protokol wersije, kotrež buchu schwalene.', |
| 328 | + 'approvedrevs-approve' => 'schwalić', |
| 329 | + 'approvedrevs-unapprove' => 'zakazać', |
| 330 | + 'approvedrevs-approvesuccess' => 'Tuta wersija strony je so jako schwalena wersija stajiła.', |
| 331 | + 'approvedrevs-unapprovesuccess' => 'Schwalena wersija za tutu stronu wjace njeje. |
| 332 | +Město toho so najnowša wersija pokaza.', |
| 333 | + 'approvedrevs-approveaction' => 'je $2 jako schwalenu wersiju za "[[$1]]" nastajił', |
| 334 | + 'approvedrevs-unapproveaction' => 'je status schwalena wersija za "[[$1]]" wotstronił', |
| 335 | + 'approvedrevs-notlatest' => 'To je schwalena wersija tuteje strony; njeje najnowša.', |
| 336 | + 'approvedrevs-approvedandlatest' => 'To je schwalena wersija tuteje strony, kotraž je tež najnowša.', |
| 337 | + 'approvedrevs-viewlatest' => 'Najnowšu wersiju pokazać', |
| 338 | + 'approvedpages' => 'Schwalene wersije', |
| 339 | + 'approvedrevs-approvedpages-docu' => 'Slědowace strony we wikiju maja schwalenu wersiju.', |
| 340 | + 'right-approverevisions' => 'Wěstu wersiju wikistrony jako schwalenu nastajić', |
| 341 | + 'right-viewlinktolatest' => 'Rozłožowacy tekst horjeka na stronach pokazać, kotrež maja schwalenu wersiju.', |
| 342 | +); |
| 343 | + |
| 344 | +/** Hungarian (Magyar) |
| 345 | + * @author Misibacsi |
| 346 | + */ |
| 347 | +$messages['hu'] = array( |
| 348 | + 'approvedrevs-approve' => 'elfogadás', |
| 349 | + 'approvedpages' => 'Ellenőrzött lapok', |
| 350 | + 'approvedrevs-approvedpages-docu' => 'Ezen a wikin a következő lapoknak létezik ellenőrzött változata.', |
| 351 | +); |
| 352 | + |
| 353 | +/** Interlingua (Interlingua) |
| 354 | + * @author McDutchie |
| 355 | + */ |
| 356 | +$messages['ia'] = array( |
| 357 | + 'approvedrevs-desc' => 'Marcar un sol version de un pagina como approbate', |
| 358 | + 'approvedrevs-logname' => 'Registro de approbation de versiones', |
| 359 | + 'approvedrevs-logdesc' => 'Isto es le registro del versiones que ha essite approbate.', |
| 360 | + 'approvedrevs-approve' => 'approbar', |
| 361 | + 'approvedrevs-unapprove' => 'disapprobar', |
| 362 | + 'approvedrevs-approvesuccess' => 'Iste version del pagina ha essite marcate como le version approbate.', |
| 363 | + 'approvedrevs-unapprovesuccess' => 'Il non ha plus un version approbate de iste pagina. |
| 364 | +In loco de isto, le version le plus recente essera monstrate.', |
| 365 | + 'approvedrevs-approveaction' => 'marcava $2 como le version approbate de "[[$1]]"', |
| 366 | + 'approvedrevs-unapproveaction' => 'dismarcava le version approbate de "[[$1]]"', |
| 367 | + 'approvedrevs-notlatest' => 'Isto es le version approbate de iste pagina; non es le plus recente.', |
| 368 | + 'approvedrevs-approvedandlatest' => 'Isto es le version approbate de iste pagina, e tamben le plus recente.', |
| 369 | + 'approvedrevs-viewlatest' => 'Vider le version le plus recente.', |
| 370 | + 'approvedpages' => 'Paginas approbate', |
| 371 | + 'approvedrevs-approvedpages-docu' => 'Le sequente paginas in le wiki ha un version approbate.', |
| 372 | + 'right-approverevisions' => 'Marcar un certe version de un pagina wiki como approbate', |
| 373 | + 'right-viewlinktolatest' => 'Vider le texto explicative in alto del paginas que ha un version approbate', |
| 374 | +); |
| 375 | + |
| 376 | +/** Indonesian (Bahasa Indonesia) |
| 377 | + * @author Farras |
| 378 | + */ |
| 379 | +$messages['id'] = array( |
| 380 | + 'approvedrevs-desc' => 'Tetapkan revisi tunggal halaman ini sebagai disetujui', |
| 381 | + 'approvedrevs-logname' => 'Log penyetujuan revisi', |
| 382 | + 'approvedrevs-logdesc' => 'Ini adalah log revisi yang telah disetujui.', |
| 383 | + 'approvedrevs-approve' => 'setujui', |
| 384 | + 'approvedrevs-unapprove' => 'tidak setujui', |
| 385 | + 'approvedrevs-approvesuccess' => 'Revisi halaman ini telah ditetapkan sebagai revisi disetujui.', |
| 386 | + 'approvedrevs-unapprovesuccess' => 'Tidak ada lagi versi disetujui untuk halaman ini. |
| 387 | +Revisi terkini akan ditampilkan.', |
| 388 | + 'approvedrevs-approveaction' => 'tetapkan $2 sebagai revisi disetujui untuk "[[$1]]"', |
| 389 | + 'approvedrevs-unapproveaction' => 'jangan tetapkan revisi disetujui untuk "[[$1]]"', |
| 390 | + 'approvedrevs-notlatest' => 'Ini adalah revisi disetujui dari halaman ini; bukan revisi terkini.', |
| 391 | + 'approvedrevs-approvedandlatest' => 'Ini adalah revisi disetujui dari halaman ini, juga revisi terkini.', |
| 392 | + 'approvedrevs-viewlatest' => 'Lihat revisi terkini.', |
| 393 | + 'approvedpages' => 'Halaman yang disetujui', |
| 394 | + 'approvedrevs-approvedpages-docu' => 'Berikut adalah halaman di wiki yang memiliki revisi disetujui.', |
| 395 | + 'right-approverevisions' => 'Tetapkan revisi tertentu dari halaman wiki sebagai disetujui', |
| 396 | + 'right-viewlinktolatest' => 'Lihat penjelasan di atas halaman yang memiliki revisi disetujui', |
| 397 | +); |
| 398 | + |
| 399 | +/** Igbo (Igbo) |
| 400 | + * @author Ukabia |
| 401 | + */ |
| 402 | +$messages['ig'] = array( |
| 403 | + 'approvedrevs-approve' => 'kwé', |
| 404 | + 'approvedrevs-unapprove' => 'ékwèkwàlà', |
| 405 | + 'approvedpages' => 'Ihü hé kwèrè', |
| 406 | +); |
| 407 | + |
| 408 | +/** Japanese (日本語) |
| 409 | + * @author W.CC |
| 410 | + */ |
| 411 | +$messages['ja'] = array( |
| 412 | + 'approvedrevs-desc' => '履歴からページの版に承認済みとして印をつける', |
| 413 | + 'approvedrevs-logname' => '特定版の承認記録', |
| 414 | + 'approvedrevs-logdesc' => '以下は、承認された版の記録です。', |
| 415 | + 'approvedrevs-approve' => '承認', |
| 416 | + 'approvedrevs-unapprove' => '承認の取り消し', |
| 417 | + 'approvedrevs-approvesuccess' => 'この版は承認済みとしてマークされました。', |
| 418 | + 'approvedrevs-unapprovesuccess' => 'このページには承認された版はありません。代わりに最新版が表示されます。', |
| 419 | + 'approvedrevs-approveaction' => '"[[$1]]" の第$2版を承認済みとしてマーク', |
| 420 | + 'approvedrevs-unapproveaction' => '"[[$1]]" の承認を取り消し', |
| 421 | + 'approvedrevs-notlatest' => 'このページは承認されています;この版の変更はまだ承認されていません', |
| 422 | + 'approvedrevs-approvedandlatest' => 'このページは承認されています;この版は承認されています', |
| 423 | + 'approvedrevs-viewlatest' => '承認されている最新の版を見る', |
| 424 | + 'approvedpages' => '承認されたページ', |
| 425 | + 'approvedrevs-approvedpages-docu' => '次のページには承認された版があります。', |
| 426 | + 'right-approverevisions' => 'ページの特定版を承認', |
| 427 | + 'right-viewlinktolatest' => '承認された最新の版へのリンクを上部に表示する', |
| 428 | +); |
| 429 | + |
| 430 | +/** Luxembourgish (Lëtzebuergesch) |
| 431 | + * @author Les Meloures |
| 432 | + * @author Robby |
| 433 | + */ |
| 434 | +$messages['lb'] = array( |
| 435 | + 'approvedrevs-desc' => 'Eng eenzel Versioun vun enger Säit als nogekuckt markéieren', |
| 436 | + 'approvedrevs-logname' => 'Logbuch vun den nogekuckte Säiten déi fräigi sinn', |
| 437 | + 'approvedrevs-logdesc' => "Dëst ass d'Logbuch vun de Versiounen déi nogekuckt sinn.", |
| 438 | + 'approvedrevs-approve' => 'zoustëmmen', |
| 439 | + 'approvedrevs-unapprove' => 'Zoustëmmung zréckzéien', |
| 440 | + 'approvedrevs-approvesuccess' => 'Dës Versioun vun der Säit gouf als nogekuckte Versioun fräiginn.', |
| 441 | + 'approvedrevs-unapprovesuccess' => 'Et gëtt vun dëser Säit keng nogekuckte Versioun méi. |
| 442 | +Dofir gëtt déi rezentst Versioun gewisen.', |
| 443 | + 'approvedrevs-approveaction' => '$2 als nogekuckt Versioun fir "[[$1]]" festleeën', |
| 444 | + 'approvedrevs-unapproveaction' => 'nogekuckt Versioun fir "[[$1]]" zréckzéien', |
| 445 | + 'approvedrevs-notlatest' => 'Dëst ass déi nogekuckte Versioun vun dëser Säit; et ass net déi rezentst.', |
| 446 | + 'approvedrevs-approvedandlatest' => 'Dëst ass esouwuel déi nogekuckt wéi och déi rezentst Versioun vun dëser Säit.', |
| 447 | + 'approvedrevs-viewlatest' => 'Déi rezentst Versioun weisen.', |
| 448 | + 'approvedpages' => 'Nogekuckte Säiten', |
| 449 | + 'approvedrevs-approvedpages-docu' => 'Dës Säiten an der Wiki hunn eng nogekuckte Versioun.', |
| 450 | + 'right-approverevisions' => 'Eng bestëmmte Versioun vun enger Säit als nogekuckt markéieren', |
| 451 | + 'right-viewlinktolatest' => 'Kuckt den Erklärungstext uewen op de Säiten déi nogekuckt Versiounen hunn', |
| 452 | +); |
| 453 | + |
| 454 | +/** Macedonian (Македонски) |
| 455 | + * @author Bjankuloski06 |
| 456 | + */ |
| 457 | +$messages['mk'] = array( |
| 458 | + 'approvedrevs-desc' => 'Поставање на една единствена ревизија на страницата како одобрена', |
| 459 | + 'approvedrevs-logname' => 'Дневник на одобрени ревизии', |
| 460 | + 'approvedrevs-logdesc' => 'Ова е дневникот на одобрени ревизии.', |
| 461 | + 'approvedrevs-approve' => 'одобри', |
| 462 | + 'approvedrevs-unapprove' => 'неодобрена', |
| 463 | + 'approvedrevs-approvesuccess' => 'Оваа ревизија на страницата е поставена како одобрена.', |
| 464 | + 'approvedrevs-unapprovesuccess' => 'Оваа страница повеќе нема одобрена верзија. |
| 465 | +Наместо тоа ќе се прикажува најновата верзија.', |
| 466 | + 'approvedrevs-approveaction' => 'постави ја $2 за одобрена верзија на „[[$1]]“', |
| 467 | + 'approvedrevs-unapproveaction' => 'отстрани одобрена верзија на „[[$1]]“', |
| 468 | + 'approvedrevs-notlatest' => 'Ова е одобрената ревизија на страницава, но не е најновата.', |
| 469 | + 'approvedrevs-approvedandlatest' => 'Ова е одобрената ревизија на страницава, а воедно и најновата.', |
| 470 | + 'approvedrevs-viewlatest' => 'Види најнова ревизија.', |
| 471 | + 'approvedpages' => 'Одобрени страници', |
| 472 | + 'approvedrevs-approvedpages-docu' => 'Ова се страници на викито што имаат одобрена ревизија.', |
| 473 | + 'right-approverevisions' => 'Поставете извесна ревизија на вики-страница како одобрена', |
| 474 | + 'right-viewlinktolatest' => 'Погледајте го објаснувањето на врвот од страниците што имаат одобрена верзија', |
| 475 | +); |
| 476 | + |
| 477 | +/** Dutch (Nederlands) |
| 478 | + * @author Siebrand |
| 479 | + */ |
| 480 | +$messages['nl'] = array( |
| 481 | + 'approvedrevs-desc' => 'Een versie van een pagina als goedgekeurd instellen', |
| 482 | + 'approvedrevs-logname' => 'Logboek versiegoedkeuring', |
| 483 | + 'approvedrevs-logdesc' => 'Dit is het logboek met de versies die zijn goedgekeurd.', |
| 484 | + 'approvedrevs-approve' => 'goedkeuren', |
| 485 | + 'approvedrevs-unapprove' => 'afkeuren', |
| 486 | + 'approvedrevs-approvesuccess' => 'Deze versie van de pagina is ingesteld als de goedgekeurde versie.', |
| 487 | + 'approvedrevs-unapprovesuccess' => 'Deze pagina heeft niet langer een goedgekeurde versie. |
| 488 | +Daarom wordt de laatste versie weergegeven.', |
| 489 | + 'approvedrevs-approveaction' => 'heeft $2 ingesteld als de goedgekeurde versie voor "[[$1]]"', |
| 490 | + 'approvedrevs-unapproveaction' => 'heeft de goedgekeurde versie verwijderd voor "[[$1]]"', |
| 491 | + 'approvedrevs-notlatest' => 'Dit is de goedgekeurde versie van deze pagina. |
| 492 | +Het is niet de meeste recente versie.', |
| 493 | + 'approvedrevs-approvedandlatest' => 'Dit is de goedgekeurde versie van deze pagina. Er is geen nieuwere versie.', |
| 494 | + 'approvedrevs-viewlatest' => 'Laatste versie bekijken', |
| 495 | + 'approvedpages' => "Goedgekeurde pagina's", |
| 496 | + 'approvedrevs-approvedpages-docu' => "De volgende pagina's in de wiki hebben een goedgekeurde versie.", |
| 497 | + 'right-approverevisions' => 'Een versie van een wikipagina markeren als goedgekeurd.', |
| 498 | + 'right-viewlinktolatest' => "De verklarende tekst bovenaan pagina's zien die die een goedgekeurde versie hebben", |
| 499 | +); |
| 500 | + |
| 501 | +/** Norwegian (bokmål) (Norsk (bokmål)) |
| 502 | + * @author Nghtwlkr |
| 503 | + */ |
| 504 | +$messages['no'] = array( |
| 505 | + 'approvedrevs-desc' => 'Sett en enkelt revisjon av en side som godkjent', |
| 506 | + 'approvedrevs-logname' => 'Godkjenningslogg for revisjoner', |
| 507 | + 'approvedrevs-logdesc' => 'Dette er loggen over revisjoner som har blitt godkjent.', |
| 508 | + 'approvedrevs-approve' => 'godkjenn', |
| 509 | + 'approvedrevs-unapprove' => 'ikke godkjenn', |
| 510 | + 'approvedrevs-approvesuccess' => 'Denne revisjonen av siden har blitt satt som den godkjente versjonen.', |
| 511 | + 'approvedrevs-unapprovesuccess' => 'Det er ikke lenger en godkjent versjon av denne siden. |
| 512 | +I stedet vil den nyeste revisjonen bli vist.', |
| 513 | + 'approvedrevs-approveaction' => 'sett $2 som den godkjente revisjonen for «[[$1]]»', |
| 514 | + 'approvedrevs-unapproveaction' => 'fjern godkjenning av revisjon for «[[$1]]»', |
| 515 | + 'approvedrevs-notlatest' => 'Dette er den godkjente revisjonen av denne siden; det er ikke den nyeste.', |
| 516 | + 'approvedrevs-approvedandlatest' => 'Dette er den godkjente revisjonen av denne siden, samt den nyeste.', |
| 517 | + 'approvedrevs-viewlatest' => 'Se den nyeste revisjonen.', |
| 518 | + 'approvedpages' => 'Godkjente sider', |
| 519 | + 'approvedrevs-approvedpages-docu' => 'De følgende sidene er de som har en godkjent revisjon i wikien.', |
| 520 | + 'right-approverevisions' => 'Sett en viss revisjon av en wikiside som godkjent', |
| 521 | + 'right-viewlinktolatest' => 'Vis forklarende tekst på toppen av sider som har en godkjent revisjon', |
| 522 | +); |
| 523 | + |
| 524 | +/** Polish (Polski) |
| 525 | + * @author Sp5uhe |
| 526 | + */ |
| 527 | +$messages['pl'] = array( |
| 528 | + 'approvedrevs-desc' => 'Pozwala na zatwierdzenie pojedynczej wersji strony', |
| 529 | + 'approvedrevs-logname' => 'Rejestr zatwierdzonych wersji', |
| 530 | + 'approvedrevs-logdesc' => 'To jest rejestr wersji, które zostały zatwierdzone.', |
| 531 | + 'approvedrevs-approve' => 'zatwierdź', |
| 532 | + 'approvedrevs-unapprove' => 'cofnij zatwierdzenie', |
| 533 | + 'approvedrevs-approvesuccess' => 'Ta wersja strony została zatwierdzona.', |
| 534 | + 'approvedrevs-unapprovesuccess' => 'Dla tej strony brak jest wersji zatwierdzonej. |
| 535 | +W zamian prezentowana będzie ostatnia wersja.', |
| 536 | + 'approvedrevs-approveaction' => 'zatwierdził wersję $2 strony „[[$1]]”', |
| 537 | + 'approvedrevs-unapproveaction' => 'usunął zatwierdzenie strony „[[$1]]”', |
| 538 | + 'approvedrevs-notlatest' => 'To jest zatwierdzona wersja strony. To nie jest ostatnia jej wersja.', |
| 539 | + 'approvedrevs-approvedandlatest' => 'To jest nie tylko zatwierdzona wersja strony, ale również ostatnia jej wersja.', |
| 540 | + 'approvedrevs-viewlatest' => 'Zobacz najnowsze zmiany.', |
| 541 | + 'approvedpages' => 'Zatwierdzone strony', |
| 542 | + 'approvedrevs-approvedpages-docu' => 'Poniższe strony wiki mają jakąś zatwierdzoną wersję.', |
| 543 | + 'right-approverevisions' => 'Zatwierdzenie wybranych wersji stron wiki', |
| 544 | + 'right-viewlinktolatest' => 'Pokazuj tekst wyjaśniający w górnej części tych stron, które mają zatwierdzoną wersję', |
| 545 | +); |
| 546 | + |
| 547 | +/** Piedmontese (Piemontèis) |
| 548 | + * @author Borichèt |
| 549 | + * @author Dragonòt |
| 550 | + */ |
| 551 | +$messages['pms'] = array( |
| 552 | + 'approvedrevs-desc' => 'Ampòsta na sola revision ëd na pàgina com aprovà', |
| 553 | + 'approvedrevs-logname' => "Registr d'aprovassion dle revision", |
| 554 | + 'approvedrevs-logdesc' => "Sto-sì a l'é ël registr dle revision ch'a son ëstàite aprovà.", |
| 555 | + 'approvedrevs-approve' => 'apreuva', |
| 556 | + 'approvedrevs-unapprove' => 'apreuva pa', |
| 557 | + 'approvedrevs-approvesuccess' => "Costa revision-sì ëd la pàgina a l'é stàita ampostà com la version aprovà.", |
| 558 | + 'approvedrevs-unapprovesuccess' => 'A-i é pa pi na version aprovà për sta pàgina-sì. |
| 559 | +Al pòst, a sarà mostrà la revision pi recenta.', |
| 560 | + 'approvedrevs-approveaction' => 'a l\'ha marcà $2 tanme revision aprovà për "[[$1]]"', |
| 561 | + 'approvedrevs-unapproveaction' => 'gava ampostassion ëd la revision aprovà për "[[$1]]"', |
| 562 | + 'approvedrevs-notlatest' => "Costa a l'é la revision aprovà ëd sa pàgina; a l'é pa la pi recenta.", |
| 563 | + 'approvedrevs-approvedandlatest' => "Costa a l'é la revision aprovà ëd sa pàgina, e a l'é ëdcò la pi recenta.", |
| 564 | + 'approvedrevs-viewlatest' => 'Varda la revision pi recenta.', |
| 565 | + 'approvedpages' => 'Pàgine aprovà', |
| 566 | + 'approvedrevs-approvedpages-docu' => "Cole sì-sota a son le pàgine ant la wiki che a l'han na revision aprovà.", |
| 567 | + 'right-approverevisions' => 'Ampòsta na certa revision ëd na pàgina wiki com aprovà', |
| 568 | + 'right-viewlinktolatest' => "Vëdde ël test dë spiegassion an cò dle pàgine ch'a l'han na revision aprovà", |
| 569 | +); |
| 570 | + |
| 571 | +/** Portuguese (Português) |
| 572 | + * @author Alchimista |
| 573 | + * @author Hamilton Abreu |
| 574 | + */ |
| 575 | +$messages['pt'] = array( |
| 576 | + 'approvedrevs-desc' => 'Marcar como aprovada uma das revisões de uma página', |
| 577 | + 'approvedrevs-logname' => 'Registo de revisões aprovadas', |
| 578 | + 'approvedrevs-logdesc' => 'Este é o registo das revisões que foram aprovadas.', |
| 579 | + 'approvedrevs-approve' => 'aprovar', |
| 580 | + 'approvedrevs-unapprove' => 'reprovar', |
| 581 | + 'approvedrevs-approvesuccess' => 'Esta revisão da página foi definida como a versão aprovada.', |
| 582 | + 'approvedrevs-unapprovesuccess' => 'Deixou de existir uma versão aprovada para esta página. |
| 583 | +Em vez dela, será apresentada a revisão mais recente.', |
| 584 | + 'approvedrevs-approveaction' => 'definir $2 como a revisão aprovada de "[[$1]]"', |
| 585 | + 'approvedrevs-unapproveaction' => 'desfazer a definição da revisão aprovada de "[[$1]]"', |
| 586 | + 'approvedrevs-notlatest' => 'Esta é a revisão aprovada desta página; não é a revisão mais recente.', |
| 587 | + 'approvedrevs-approvedandlatest' => 'Esta é a revisão aprovada desta página e também a revisão mais recente.', |
| 588 | + 'approvedrevs-viewlatest' => 'Ver a revisão mais recente.', |
| 589 | + 'approvedpages' => 'Páginas aprovadas', |
| 590 | + 'approvedrevs-approvedpages-docu' => 'As seguintes páginas desta wiki têm uma revisão aprovada.', |
| 591 | + 'right-approverevisions' => 'Definir como aprovada uma revisão específica de uma página da wiki', |
| 592 | + 'right-viewlinktolatest' => 'Ver um texto explicativo no topo das páginas que têm uma revisão aprovada', |
| 593 | +); |
| 594 | + |
| 595 | +/** Brazilian Portuguese (Português do Brasil) |
| 596 | + * @author Giro720 |
| 597 | + */ |
| 598 | +$messages['pt-br'] = array( |
| 599 | + 'approvedrevs-desc' => 'Marcar como aprovada uma das revisões de uma página', |
| 600 | + 'approvedrevs-logname' => 'Registro de revisões aprovadas', |
| 601 | + 'approvedrevs-logdesc' => 'Este é o registro das revisões que foram aprovadas.', |
| 602 | + 'approvedrevs-approve' => 'aprovar', |
| 603 | + 'approvedrevs-unapprove' => 'reprovar', |
| 604 | + 'approvedrevs-approvesuccess' => 'Esta revisão da página foi definida como a versão aprovada.', |
| 605 | + 'approvedrevs-unapprovesuccess' => 'Deixou de existir uma versão aprovada para esta página. |
| 606 | +Em vez dela, será apresentada a revisão mais recente.', |
| 607 | + 'approvedrevs-approveaction' => 'definir $2 como a revisão aprovada de "[[$1]]"', |
| 608 | + 'approvedrevs-unapproveaction' => 'desfazer a definição da revisão aprovada de "[[$1]]"', |
| 609 | + 'approvedrevs-notlatest' => 'Esta é a revisão aprovada desta página; não é a revisão mais recente.', |
| 610 | + 'approvedrevs-approvedandlatest' => 'Esta é a revisão aprovada desta página e também a revisão mais recente.', |
| 611 | + 'approvedrevs-viewlatest' => 'Ver a revisão mais recente.', |
| 612 | + 'approvedpages' => 'Páginas aprovadas', |
| 613 | + 'approvedrevs-approvedpages-docu' => 'As seguintes páginas desta wiki têm uma revisão aprovada.', |
| 614 | + 'right-approverevisions' => 'Definir como aprovada uma revisão específica de uma página da wiki', |
| 615 | + 'right-viewlinktolatest' => 'Ver um texto explicativo no topo das páginas que têm uma revisão aprovada', |
| 616 | +); |
| 617 | + |
| 618 | +/** Russian (Русский) |
| 619 | + * @author Александр Сигачёв |
| 620 | + */ |
| 621 | +$messages['ru'] = array( |
| 622 | + 'approvedrevs-desc' => 'Установка одной из версий страниц как подтверждённой', |
| 623 | + 'approvedrevs-logname' => 'Журнал подтверждения версий', |
| 624 | + 'approvedrevs-logdesc' => 'Это журнал версий страниц, которые были подтверждены.', |
| 625 | + 'approvedrevs-approve' => 'подтвердить', |
| 626 | + 'approvedrevs-unapprove' => 'снять подтверждение', |
| 627 | + 'approvedrevs-approvesuccess' => 'Это версия страницы была отмечена как подтверждённая.', |
| 628 | + 'approvedrevs-unapprovesuccess' => 'Не существует подтверждённой версии этой страницы. |
| 629 | +Вместо неё будет показана последняя версия.', |
| 630 | + 'approvedrevs-approveaction' => 'установить $2 как подтверждённую версию «[[$1]]»', |
| 631 | + 'approvedrevs-unapproveaction' => 'снять утверждённую версию для «[[$1]]»', |
| 632 | + 'approvedrevs-notlatest' => 'Это утверждённая версия страницы. Существуют более свежие версии.', |
| 633 | + 'approvedrevs-approvedandlatest' => 'Это утверждённая версия страницы. Она же является наиболее свежей версией.', |
| 634 | + 'approvedrevs-viewlatest' => 'Просмотреть самую свежую версию.', |
| 635 | + 'approvedpages' => 'Подтверждённые страницы', |
| 636 | + 'approvedrevs-approvedpages-docu' => 'Ниже показан список вики-страниц, имеющих подтверждённые версии.', |
| 637 | + 'right-approverevisions' => 'отметка определённых версий вики-страниц как подтверждённых', |
| 638 | + 'right-viewlinktolatest' => 'просмотр пояснительного текста в верхней части страниц, имеющих утверждённые версии', |
| 639 | +); |
| 640 | + |
| 641 | +/** Telugu (తెలుగు) |
| 642 | + * @author Veeven |
| 643 | + */ |
| 644 | +$messages['te'] = array( |
| 645 | + 'approvedrevs-logname' => 'కూర్పుల అనుమతులు చిట్టా', |
| 646 | + 'approvedrevs-approve' => 'అనుమతించు', |
| 647 | + 'approvedpages' => 'అనుమతించిన పుటలు', |
| 648 | +); |
| 649 | + |
| 650 | +/** Turkish (Türkçe) |
| 651 | + * @author Srhat |
| 652 | + */ |
| 653 | +$messages['tr'] = array( |
| 654 | + 'approvedrevs-desc' => 'Bir sayfanın belirli bir revizyonunu onaylanmış olarak ayarla', |
| 655 | + 'approvedrevs-logname' => 'Revizyon onay günlüğü', |
| 656 | + 'approvedrevs-logdesc' => 'Bu liste onaylanmış revizyon günlüğüdür.', |
| 657 | + 'approvedrevs-approve' => 'onayla', |
| 658 | + 'approvedrevs-unapprove' => 'onayı kaldır', |
| 659 | + 'approvedrevs-approvesuccess' => 'Sayfaya ait bu revizyon onaylanmış revizyon olarak ayarlandı.', |
| 660 | + 'approvedrevs-unapprovesuccess' => 'Bu sayfanın artık onaylanmış sürümü yok. |
| 661 | +Onun yerine, en son revizyon gösterilecektir.', |
| 662 | + 'approvedrevs-approveaction' => '$2 revizyonunu "[[$1]]" sayfasının onaylanmış revizyonu olarak ayarladı', |
| 663 | + 'approvedrevs-unapproveaction' => '"[[$1]]" sayfasının onaylanmış revizyonunun onayını kaldırdı.', |
| 664 | + 'approvedrevs-notlatest' => 'Bu sayfanın onaylanmış revizyonudur; en son revizyon değildir.', |
| 665 | + 'approvedrevs-approvedandlatest' => 'Bu revizyon, sayfanın hem onaylanmış hem de en son revizyonudur.', |
| 666 | + 'approvedrevs-viewlatest' => 'En son revizyonu görüntüle', |
| 667 | + 'approvedpages' => 'Onaylanmış sayfalar', |
| 668 | + 'approvedrevs-approvedpages-docu' => 'Aşağıdakiler, onaylanmış revizyonu bulunan viki sayfalardır.', |
| 669 | + 'right-approverevisions' => 'Bir viki sayfasının belirli bir revizyonunu onaylanmış olarak ayarla', |
| 670 | + 'right-viewlinktolatest' => 'Onaylanmış revizyonu bulunan sayfaların başındaki açıklayıcı metni görüntüle', |
| 671 | +); |
| 672 | + |
| 673 | +/** Vietnamese (Tiếng Việt) |
| 674 | + * @author Minh Nguyen |
| 675 | + */ |
| 676 | +$messages['vi'] = array( |
| 677 | + 'approvedrevs-logname' => 'Nhật trình chấp nhận phiên bản', |
| 678 | + 'approvedrevs-approve' => 'chấp nhận', |
| 679 | + 'approvedrevs-unapprove' => 'bỏ chấp nhận', |
| 680 | + 'approvedrevs-approveaction' => 'đặt $2 là phiên bản chấp nhận của “[[$1]]”', |
| 681 | + 'approvedrevs-unapproveaction' => 'bỏ phiên bản chấp nhận của “[[$1]]”', |
| 682 | + 'approvedrevs-viewlatest' => 'Xem phiên bản gần đây nhất.', |
| 683 | + 'approvedpages' => 'Các trang đã chấp nhận', |
| 684 | + 'right-approverevisions' => 'Đặt một phiên bản của trang wiki là phiên bản chấp nhận', |
| 685 | + 'right-viewlinktolatest' => 'Xem văn bản giải thích ở đầu các trang có phiên bản chấp nhận', |
| 686 | +); |
| 687 | + |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.i18n.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 688 | + native |
Index: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.php |
— | — | @@ -0,0 +1,68 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +if ( !defined( 'MEDIAWIKI' ) ) die(); |
| 5 | + |
| 6 | +/** |
| 7 | + * @file |
| 8 | + * @ingroup Extensions |
| 9 | + * |
| 10 | + * @author Yaron Koren |
| 11 | + */ |
| 12 | + |
| 13 | +define( 'APPROVED_REVS_VERSION', '0.3.1' ); |
| 14 | + |
| 15 | +// credits |
| 16 | +$wgExtensionCredits['other'][] = array( |
| 17 | + 'path' => __FILE__, |
| 18 | + 'name' => 'Approved Revs', |
| 19 | + 'version' => APPROVED_REVS_VERSION, |
| 20 | + 'author' => 'Yaron Koren', |
| 21 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Approved_Revs', |
| 22 | + 'descriptionmsg' => 'approvedrevs-desc' |
| 23 | +); |
| 24 | + |
| 25 | +// global variables |
| 26 | +$egApprovedRevsIP = dirname( __FILE__ ) . '/'; |
| 27 | +$egApprovedRevsNamespaces = array( NS_MAIN, NS_TEMPLATE, NS_HELP, NS_PROJECT ); |
| 28 | + |
| 29 | +// internationalization |
| 30 | +$wgExtensionMessagesFiles['ApprovedRevs'] = $egApprovedRevsIP . 'ApprovedRevs.i18n.php'; |
| 31 | +$wgExtensionAliasesFiles['ApprovedRevs'] = $egApprovedRevsIP . 'ApprovedRevs.alias.php'; |
| 32 | + |
| 33 | +// register all classes |
| 34 | +$wgAutoloadClasses['ApprovedRevs'] = $egApprovedRevsIP . 'ApprovedRevs_body.php'; |
| 35 | +$wgAutoloadClasses['ApprovedRevsHooks'] = $egApprovedRevsIP . 'ApprovedRevs.hooks.php'; |
| 36 | +$wgSpecialPages['ApprovedPages'] = 'ARApprovedPages'; |
| 37 | +$wgAutoloadClasses['ARApprovedPages'] = $egApprovedRevsIP . 'AR_ApprovedPages.php'; |
| 38 | +$wgSpecialPageGroups['ApprovedPages'] = 'pages'; |
| 39 | + |
| 40 | +// hooks |
| 41 | +$wgHooks['ParserBeforeInternalParse'][] = 'ApprovedRevsHooks::setApprovedRevForParsing'; |
| 42 | +$wgHooks['ArticleFromTitle'][] = 'ApprovedRevsHooks::showApprovedRevision'; |
| 43 | +$wgHooks['ArticleAfterFetchContent'][] = 'ApprovedRevsHooks::showBlankIfUnapproved'; |
| 44 | +$wgHooks['DisplayOldSubtitle'][] = 'ApprovedRevsHooks::setSubtitle'; |
| 45 | +$wgHooks['SkinTemplateNavigation'][] = 'ApprovedRevsHooks::changeEditLink'; |
| 46 | +$wgHooks['PageHistoryBeforeList'][] = 'ApprovedRevsHooks::storeApprovedRevisionForHistoryPage'; |
| 47 | +$wgHooks['PageHistoryLineEnding'][] = 'ApprovedRevsHooks::addApprovalLink'; |
| 48 | +$wgHooks['UnknownAction'][] = 'ApprovedRevsHooks::setAsApproved'; |
| 49 | +$wgHooks['UnknownAction'][] = 'ApprovedRevsHooks::unsetAsApproved'; |
| 50 | +$wgHooks['BeforeParserFetchTemplateAndtitle'][] = 'ApprovedRevsHooks::setTranscludedPageRev'; |
| 51 | +$wgHooks['ArticleDeleteComplete'][] = 'ApprovedRevsHooks::deleteRevisionApproval'; |
| 52 | +$wgHooks['MagicWordwgVariableIDs'][] = 'ApprovedRevsHooks::addMagicWordVariableIDs'; |
| 53 | +$wgHooks['LanguageGetMagic'][] = 'ApprovedRevsHooks::addMagicWordLanguage'; |
| 54 | +$wgHooks['ParserBeforeTidy'][] = 'ApprovedRevsHooks::handleMagicWords'; |
| 55 | +$wgHooks['AdminLinks'][] = 'ApprovedRevsHooks::addToAdminLinks'; |
| 56 | +$wgHooks['LoadExtensionSchemaUpdates'][] = 'ApprovedRevsHooks::describeDBSchema'; |
| 57 | + |
| 58 | +// logging |
| 59 | +$wgLogTypes['approval'] = 'approval'; |
| 60 | +$wgLogNames['approval'] = 'approvedrevs-logname'; |
| 61 | +$wgLogHeaders['approval'] = 'approvedrevs-logdesc'; |
| 62 | +$wgLogActions['approval/approve'] = 'approvedrevs-approveaction'; |
| 63 | +$wgLogActions['approval/unapprove'] = 'approvedrevs-unapproveaction'; |
| 64 | + |
| 65 | +// user rights |
| 66 | +$wgAvailableRights[] = 'approverevisions'; |
| 67 | +$wgGroupPermissions['sysop']['approverevisions'] = true; |
| 68 | +$wgAvailableRights[] = 'viewlinktolatest'; |
| 69 | +$wgGroupPermissions['*']['viewlinktolatest'] = true; |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 70 | + native |
Index: tags/extensions/ApprovedRevs/REL_0_3_1/AR_ApprovedPages.php |
— | — | @@ -0,0 +1,66 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Special page that lists all pages that have an approved revision. |
| 5 | + * |
| 6 | + * @author Yaron Koren |
| 7 | + */ |
| 8 | + |
| 9 | +if ( !defined( 'MEDIAWIKI' ) ) die(); |
| 10 | + |
| 11 | +class ARApprovedPages extends SpecialPage { |
| 12 | + |
| 13 | + /** |
| 14 | + * Constructor |
| 15 | + */ |
| 16 | + function ARApprovedPages() { |
| 17 | + SpecialPage::SpecialPage( 'ApprovedPages' ); |
| 18 | + wfLoadExtensionMessages( 'ApprovedRevs' ); |
| 19 | + } |
| 20 | + |
| 21 | + function execute( $query ) { |
| 22 | + $this->setHeaders(); |
| 23 | + list( $limit, $offset ) = wfCheckLimits(); |
| 24 | + $rep = new ARApprovedPagesPage(); |
| 25 | + return $rep->doQuery( $offset, $limit ); |
| 26 | + } |
| 27 | +} |
| 28 | + |
| 29 | +class ARApprovedPagesPage extends QueryPage { |
| 30 | + function getName() { |
| 31 | + return "ApprovedPages"; |
| 32 | + } |
| 33 | + |
| 34 | + function isExpensive() { return false; } |
| 35 | + |
| 36 | + function isSyndicated() { return false; } |
| 37 | + |
| 38 | + function getPageHeader() { |
| 39 | + $header = Xml::element( 'p', null, wfMsg( 'approvedrevs-approvedpages-docu' ) ) . "<br />\n"; |
| 40 | + return $header; |
| 41 | + } |
| 42 | + |
| 43 | + function getPageFooter() { |
| 44 | + } |
| 45 | + |
| 46 | + function getSQL() { |
| 47 | + $dbr = wfGetDB( DB_SLAVE ); |
| 48 | + $approved_revs = $dbr->tableName( 'approved_revs' ); |
| 49 | + $page = $dbr->tableName( 'page' ); |
| 50 | + // QueryPage uses the value from this SQL in an ORDER clause, |
| 51 | + // so return page_title as title. |
| 52 | + return "SELECT 'Page' AS type, |
| 53 | + p.page_title AS title, |
| 54 | + p.page_id AS value |
| 55 | + FROM $approved_revs ar JOIN $page p |
| 56 | + ON ar.page_id = p.page_id"; |
| 57 | + } |
| 58 | + |
| 59 | + function sortDescending() { |
| 60 | + return false; |
| 61 | + } |
| 62 | + |
| 63 | + function formatResult( $skin, $result ) { |
| 64 | + $title = Title::newFromId( $result->value ); |
| 65 | + return $skin->makeLinkObj( $title ); |
| 66 | + } |
| 67 | +} |
\ No newline at end of file |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/AR_ApprovedPages.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 68 | + native |
Index: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.hooks.php |
— | — | @@ -0,0 +1,386 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +if ( ! defined( 'MEDIAWIKI' ) ) die(); |
| 5 | + |
| 6 | +/** |
| 7 | + * Functions for the Approved Revs extension called by hooks in the MediaWiki |
| 8 | + * code. |
| 9 | + * |
| 10 | + * @file |
| 11 | + * @ingroup Extensions |
| 12 | + * |
| 13 | + * @author Yaron Koren |
| 14 | + */ |
| 15 | + |
| 16 | +class ApprovedRevsHooks { |
| 17 | + |
| 18 | + /** |
| 19 | + * If the page is being saved, set the text of the approved revision |
| 20 | + * as the text to be parsed, for correct saving of categories, |
| 21 | + * Semantic MediaWiki properties, etc. |
| 22 | + */ |
| 23 | + static public function setApprovedRevForParsing( &$parser, &$text, &$stripState ) { |
| 24 | + global $wgRequest; |
| 25 | + $action = $wgRequest->getVal( 'action' ); |
| 26 | + if ( $action == 'submit' ) { |
| 27 | + $title = $parser->getTitle(); |
| 28 | + $approvedText = ApprovedRevs::getApprovedContent( $title ); |
| 29 | + if ( !is_null( $approvedText ) ) { |
| 30 | + $text = $approvedText; |
| 31 | + } |
| 32 | + // if there's no approved revision, and |
| 33 | + // 'BLANKIFUNAPPROVED' is set on this page, set the |
| 34 | + // text to blank |
| 35 | + print 'a'; |
| 36 | + if ( is_null( $approvedText ) ) { |
| 37 | + print 'b'; |
| 38 | + if ( ApprovedRevs::isPagePropertySet( $title, 'blank_if_unapproved' ) ) { |
| 39 | + print 'c'; |
| 40 | + $text = '__BLANKIFUNAPPROVED__'; |
| 41 | + } |
| 42 | + } |
| 43 | + //die; |
| 44 | + } |
| 45 | + return true; |
| 46 | + } |
| 47 | + |
| 48 | + /** |
| 49 | + * Return the approved revision of the page, if there is one, and if |
| 50 | + * the page is simply being viewed, and if no specific revision has |
| 51 | + * been requested. |
| 52 | + */ |
| 53 | + static function showApprovedRevision( &$title, &$article ) { |
| 54 | + // if a revision ID is set, exit |
| 55 | + /* |
| 56 | + if ( $title->mArticleID > -1 ) { |
| 57 | + return true; |
| 58 | + } |
| 59 | + */ |
| 60 | + global $wgRequest; |
| 61 | + if ( $wgRequest->getCheck( 'oldid' ) ) { |
| 62 | + return true; |
| 63 | + } |
| 64 | + // if it's any action other than viewing, exit |
| 65 | + global $wgRequest; |
| 66 | + if ( $wgRequest->getCheck( 'action' ) && |
| 67 | + $wgRequest->getVal( 'action' ) != 'view' && |
| 68 | + $wgRequest->getVal( 'action' ) != 'purge' && |
| 69 | + $wgRequest->getVal( 'action' ) != 'render' ) { |
| 70 | + return true; |
| 71 | + } |
| 72 | + |
| 73 | + $revisionID = ApprovedRevs::getApprovedRevID( $title ); |
| 74 | + if ( ! empty( $revisionID ) ) { |
| 75 | + $article = new Article( $title, $revisionID ); |
| 76 | + } |
| 77 | + return true; |
| 78 | + } |
| 79 | + |
| 80 | + public static function showBlankIfUnapproved( &$article, &$content ) { |
| 81 | + global $wgRequest; |
| 82 | + if ( $wgRequest->getCheck( 'oldid' ) ) { |
| 83 | + return true; |
| 84 | + } |
| 85 | + // if it's any action other than viewing, exit |
| 86 | + global $wgRequest; |
| 87 | + if ( $wgRequest->getCheck( 'action' ) && |
| 88 | + $wgRequest->getVal( 'action' ) != 'view' && |
| 89 | + $wgRequest->getVal( 'action' ) != 'purge' && |
| 90 | + $wgRequest->getVal( 'action' ) != 'render' ) { |
| 91 | + return true; |
| 92 | + } |
| 93 | + |
| 94 | + $title = $article->getTitle(); |
| 95 | + if ( ApprovedRevs::isPagePropertySet( $title, 'blank_if_unapproved' ) ) { |
| 96 | + //$article = new Article( $title, -1 ); |
| 97 | + $content = ''; |
| 98 | + } |
| 99 | + return true; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * If user is viewing the page via its main URL, and what they're |
| 104 | + * seeing is the approved revision of the page, remove the standard |
| 105 | + * subtitle shown for all non-latest revisions, and replace it with |
| 106 | + * either nothing or a message explaining the situation, depending |
| 107 | + * on the user's rights |
| 108 | + */ |
| 109 | + static function setSubtitle( &$article, &$revisionID ) { |
| 110 | + if ( ! ApprovedRevs::hasApprovedRevision( $article->getTitle() ) ) { |
| 111 | + return true; |
| 112 | + } |
| 113 | + |
| 114 | + global $wgRequest; |
| 115 | + if ( $wgRequest->getCheck( 'oldid' ) ) { |
| 116 | + return true; |
| 117 | + } |
| 118 | + |
| 119 | + if ( ! $article->getTitle()->userCan( 'viewlinktolatest' ) ) { |
| 120 | + return false; |
| 121 | + } |
| 122 | + |
| 123 | + wfLoadExtensionMessages( 'ApprovedRevs' ); |
| 124 | + if ( $revisionID == $article->getLatest() ) { |
| 125 | + $text = wfMsg( 'approvedrevs-approvedandlatest' ); |
| 126 | + } else { |
| 127 | + $text = wfMsg( 'approvedrevs-notlatest' ); |
| 128 | + global $wgUser; |
| 129 | + $sk = $wgUser->getSkin(); |
| 130 | + $curRevLink = $sk->link( |
| 131 | + $article->getTitle(), |
| 132 | + wfMsgHtml( 'approvedrevs-viewlatest' ), |
| 133 | + array(), |
| 134 | + array( 'oldid' => $article->getLatest() ), |
| 135 | + array( 'known', 'noclasses' ) |
| 136 | + ); |
| 137 | + $text .= ' ' . $curRevLink; |
| 138 | + } |
| 139 | + global $wgOut; |
| 140 | + $wgOut->setSubtitle( $text ); |
| 141 | + return false; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * If user is looking at a revision through a main 'view' URL (no |
| 146 | + * revision specified), have the 'edit' tab link to the basic |
| 147 | + * 'action=edit' URL (i.e., the latest revision), no matter which |
| 148 | + * revision they're actually on. |
| 149 | + */ |
| 150 | + static function changeEditLink( &$skin, &$contentActions ) { |
| 151 | + global $wgRequest; |
| 152 | + if ( $wgRequest->getCheck( 'oldid' ) ) { |
| 153 | + return true; |
| 154 | + } |
| 155 | + if ( ApprovedRevs::hasApprovedRevision( $skin->getTitle() ) ) { |
| 156 | + // the URL is the same regardless of whether the tab |
| 157 | + // is 'edit' or 'view source', but the "action" is |
| 158 | + // different |
| 159 | + if ( array_key_exists( 'edit', $contentActions['views'] ) ) { |
| 160 | + $contentActions['views']['edit']['href'] = $skin->getTitle()->getLocalUrl( array( 'action' => 'edit' ) ); |
| 161 | + } |
| 162 | + if ( array_key_exists( 'viewsource', $contentActions['views'] ) ) { |
| 163 | + $contentActions['views']['viewsource']['href'] = $skin->getTitle()->getLocalUrl( array( 'action' => 'edit' ) ); |
| 164 | + } |
| 165 | + } |
| 166 | + return true; |
| 167 | + } |
| 168 | + |
| 169 | + /** |
| 170 | + * Store the approved revision ID, if any, directly in the object |
| 171 | + * for this article - this is called so that a query to the database |
| 172 | + * can be made just once for every view of a history page, instead |
| 173 | + * of for every row. |
| 174 | + */ |
| 175 | + static function storeApprovedRevisionForHistoryPage( &$article ) { |
| 176 | + // this will be null if there's no ID |
| 177 | + $approvedRevID = ApprovedRevs::getApprovedRevID( $article->getTitle() ); |
| 178 | + $article->approvedRevID = $approvedRevID; |
| 179 | + // also load extension messages, while we're at it |
| 180 | + wfLoadExtensionMessages( 'ApprovedRevs' ); |
| 181 | + return true; |
| 182 | + } |
| 183 | + |
| 184 | + /** |
| 185 | + * If the user is allowed to make revision approvals, add either an |
| 186 | + * 'approve' or 'unapprove' link to the end of this row in the page |
| 187 | + * history, depending on whether or not this is already the approved |
| 188 | + * revision. If it's the approved revision also add on a "star" |
| 189 | + * icon, regardless of the user. |
| 190 | + */ |
| 191 | + static function addApprovalLink( $historyPage, &$row , &$s ) { |
| 192 | + $title = $historyPage->getTitle(); |
| 193 | + if ( ! ApprovedRevs::pageIsApprovable( $title ) ) { |
| 194 | + return true; |
| 195 | + } |
| 196 | + |
| 197 | + $article = $historyPage->getArticle(); |
| 198 | + // use the rev ID field in the $article object, which was |
| 199 | + // stored earlier |
| 200 | + $approvedRevID = $article->approvedRevID; |
| 201 | + if ( $row->rev_id == $approvedRevID ) { |
| 202 | + $s .= '★ '; |
| 203 | + } |
| 204 | + if ( $title->userCan( 'approverevisions' ) ) { |
| 205 | + if ( $row->rev_id == $approvedRevID ) { |
| 206 | + $url = $title->getLocalUrl( |
| 207 | + array( 'action' => 'unapprove' ) |
| 208 | + ); |
| 209 | + $msg = wfMsg( 'approvedrevs-unapprove' ); |
| 210 | + } else { |
| 211 | + $url = $title->getLocalUrl( |
| 212 | + array( 'action' => 'approve', 'oldid' => $row->rev_id ) |
| 213 | + ); |
| 214 | + $msg = wfMsg( 'approvedrevs-approve' ); |
| 215 | + } |
| 216 | + $s .= '(' . Xml::element( |
| 217 | + 'a', |
| 218 | + array( 'href' => $url ), |
| 219 | + $msg |
| 220 | + ) . ')'; |
| 221 | + } |
| 222 | + return true; |
| 223 | + } |
| 224 | + |
| 225 | + /** |
| 226 | + * Handle the 'approve' action, defined for ApprovedRevs - |
| 227 | + * mark the revision as approved, log it, and show a message to |
| 228 | + * the user. |
| 229 | + */ |
| 230 | + static function setAsApproved( $action, $article ) { |
| 231 | + // return "true" if the call failed (meaning, pass on handling |
| 232 | + // of the hook to others), and "false" otherwise |
| 233 | + if ( $action != 'approve' ) { |
| 234 | + return true; |
| 235 | + } |
| 236 | + $title = $article->getTitle(); |
| 237 | + if ( ! ApprovedRevs::pageIsApprovable( $title ) ) { |
| 238 | + return true; |
| 239 | + } |
| 240 | + if ( ! $title->userCan( 'approverevisions' ) ) { |
| 241 | + return true; |
| 242 | + } |
| 243 | + global $wgRequest; |
| 244 | + if ( ! $wgRequest->getCheck( 'oldid' ) ) { |
| 245 | + return true; |
| 246 | + } |
| 247 | + $revision_id = $wgRequest->getVal( 'oldid' ); |
| 248 | + ApprovedRevs::setApprovedRevID( $title, $revision_id ); |
| 249 | + |
| 250 | + global $wgOut; |
| 251 | + $wgOut->addHTML( ' ' . Xml::element( |
| 252 | + 'div', |
| 253 | + array( 'class' => 'successbox' ), |
| 254 | + wfMsg( 'approvedrevs-approvesuccess' ) |
| 255 | + ) . "\n" ); |
| 256 | + $wgOut->addHTML( ' ' . Xml::element( |
| 257 | + 'p', |
| 258 | + array( 'style' => 'clear: both' ) |
| 259 | + ) . "\n" ); |
| 260 | + |
| 261 | + // show the revision, instead of the history page |
| 262 | + $article->doPurge(); |
| 263 | + $article->view(); |
| 264 | + return false; |
| 265 | + } |
| 266 | + |
| 267 | + /** |
| 268 | + * Handle the 'unapprove' action, defined for ApprovedRevs - |
| 269 | + * unset the previously-approved revision, log the change, and show |
| 270 | + * a message to the user. |
| 271 | + */ |
| 272 | + static function unsetAsApproved( $action, $article ) { |
| 273 | + // return "true" if the call failed (meaning, pass on handling |
| 274 | + // of the hook to others), and "false" otherwise |
| 275 | + if ( $action != 'unapprove' ) { |
| 276 | + return true; |
| 277 | + } |
| 278 | + $title = $article->getTitle(); |
| 279 | + if ( ! $title->userCan( 'approverevisions' ) ) { |
| 280 | + return true; |
| 281 | + } |
| 282 | + |
| 283 | + ApprovedRevs::unsetApproval( $title ); |
| 284 | + |
| 285 | + global $wgOut; |
| 286 | + $wgOut->addHTML( ' ' . Xml::element( |
| 287 | + 'div', |
| 288 | + array( 'class' => 'successbox' ), |
| 289 | + wfMsg( 'approvedrevs-unapprovesuccess' ) |
| 290 | + ) . "\n" ); |
| 291 | + $wgOut->addHTML( ' ' . Xml::element( |
| 292 | + 'p', |
| 293 | + array( 'style' => 'clear: both' ) |
| 294 | + ) . "\n" ); |
| 295 | + |
| 296 | + // show the revision, instead of the history page |
| 297 | + $article->doPurge(); |
| 298 | + $article->view(); |
| 299 | + return false; |
| 300 | + } |
| 301 | + |
| 302 | + /** |
| 303 | + * Use the approved revision, if it exists, for templates and other |
| 304 | + * transcluded pages. |
| 305 | + */ |
| 306 | + static function setTranscludedPageRev( $parser, &$title, &$skip, &$id ) { |
| 307 | + $revision_id = ApprovedRevs::getApprovedRevID( $title ); |
| 308 | + if ( !is_null( $revision_id ) ) { |
| 309 | + $id = $revision_id; |
| 310 | + } |
| 311 | + return true; |
| 312 | + } |
| 313 | + |
| 314 | + /** |
| 315 | + * Delete the approval record in the database if the page itself is |
| 316 | + * deleted. |
| 317 | + */ |
| 318 | + static function deleteRevisionApproval( &$article, &$user, $reason, $id ) { |
| 319 | + ApprovedRevs::deleteRevisionApproval( $article->getTitle() ); |
| 320 | + return true; |
| 321 | + } |
| 322 | + |
| 323 | + /** |
| 324 | + * Register magic-word variable IDs |
| 325 | + */ |
| 326 | + static function addMagicWordVariableIDs( &$magicWordVariableIDs ) { |
| 327 | + $magicWordVariableIDs[] = 'MAG_APPROVEDREVS'; |
| 328 | + $magicWordVariableIDs[] = 'MAG_BLANKIFUNAPPROVED'; |
| 329 | + return true; |
| 330 | + } |
| 331 | + |
| 332 | + /** |
| 333 | + * Set the actual value of the magic words |
| 334 | + */ |
| 335 | + static function addMagicWordLanguage( &$magicWords, $langCode ) { |
| 336 | + switch( $langCode ) { |
| 337 | + default: |
| 338 | + $magicWords['MAG_APPROVEDREVS'] = array( 0, '__APPROVEDREVS__' ); |
| 339 | + $magicWords['MAG_BLANKIFUNAPPROVED'] = array( 0, '__BLANKIFUNAPPROVED__' ); |
| 340 | + } |
| 341 | + return true; |
| 342 | + } |
| 343 | + |
| 344 | + /** |
| 345 | + * Set values in the page_props table based on the presence of the |
| 346 | + * 'APPROVEDREVS' and 'BLANKIFUNAPPROVED' magic words in a page |
| 347 | + */ |
| 348 | + static function handleMagicWords( &$parser, &$text ) { |
| 349 | + $mw_hide = MagicWord::get( 'MAG_APPROVEDREVS' ); |
| 350 | + if ( $mw_hide->matchAndRemove( $text ) ) { |
| 351 | + $parser->mOutput->setProperty( 'approvedrevs', 'y' ); |
| 352 | + } |
| 353 | + $mw_hide = MagicWord::get( 'MAG_BLANKIFUNAPPROVED' ); |
| 354 | + if ( $mw_hide->matchAndRemove( $text ) ) { |
| 355 | + $parser->mOutput->setProperty( 'blank_if_unapproved', 'y' ); |
| 356 | + } |
| 357 | + return true; |
| 358 | + } |
| 359 | + |
| 360 | + /** |
| 361 | + * Add a link to 'Special:ApprovedPages' to the the page |
| 362 | + * 'Special:AdminLinks', defined by the Admin Links extension. |
| 363 | + */ |
| 364 | + function addToAdminLinks( &$admin_links_tree ) { |
| 365 | + $general_section = $admin_links_tree->getSection( wfMsg( 'adminlinks_general' ) ); |
| 366 | + $extensions_row = $general_section->getRow( 'extensions' ); |
| 367 | + if ( is_null( $extensions_row ) ) { |
| 368 | + $extensions_row = new ALRow( 'extensions' ); |
| 369 | + $general_section->addRow( $extensions_row ); |
| 370 | + } |
| 371 | + $extensions_row->addItem( ALItem::newFromSpecialPage( 'ApprovedPages' ) ); |
| 372 | + return true; |
| 373 | + } |
| 374 | + |
| 375 | + public static function describeDBSchema() { |
| 376 | + global $wgExtNewTables, $wgDBtype; |
| 377 | + |
| 378 | + $dir = dirname( __FILE__ ); |
| 379 | + |
| 380 | + // DB updates |
| 381 | + // For now, there's just a single SQL file for all DB types. |
| 382 | + //if ( $wgDBtype == 'mysql' ) { |
| 383 | + $wgExtNewTables[] = array( 'approved_revs', "$dir/ApprovedRevs.sql" ); |
| 384 | + //} |
| 385 | + return true; |
| 386 | + } |
| 387 | +} |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.hooks.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 388 | + native |
Index: tags/extensions/ApprovedRevs/REL_0_3_1/README |
— | — | @@ -0,0 +1,36 @@ |
| 2 | +Approved Revs Extension |
| 3 | + |
| 4 | + Version 0.3.1 |
| 5 | + Yaron Koren |
| 6 | + |
| 7 | +This is free software licensed under the GNU General Public License. Please |
| 8 | +see http://www.gnu.org/copyleft/gpl.html for further details, including the |
| 9 | +full text and terms of the license. |
| 10 | + |
| 11 | +== Overview == |
| 12 | + |
| 13 | +Approved Revs is an extension to MediaWiki that lets administrators mark a |
| 14 | +certain revision of a page as "approved". The approved revision is the one |
| 15 | +displayed when users view the page at its main URL. |
| 16 | + |
| 17 | +For more information, see the extension homepage at: |
| 18 | +http://www.mediawiki.org/wiki/Extension:Approved_Revs |
| 19 | + |
| 20 | +== Requirements == |
| 21 | + |
| 22 | +This version of the Approved Revs extension requires MediaWiki 1.11 or |
| 23 | +higher, except for the approveAllPages.php script, which requires |
| 24 | +MediaWiki 1.16 or higher. |
| 25 | + |
| 26 | +== Installation == |
| 27 | + |
| 28 | +To install the extension, place the entire 'ApprovedRevs' directory |
| 29 | +within your MediaWiki 'extensions' directory, then add the following |
| 30 | +line to your 'LocalSettings.php' file: |
| 31 | + |
| 32 | + require_once( "$IP/extensions/ApprovedRevs/ApprovedRevs.php" ); |
| 33 | + |
| 34 | +== Contact == |
| 35 | + |
| 36 | +Comments, questions, suggestions and bug reports should be sent to Yaron |
| 37 | +Koren, at yaron57@gmail.com. |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/README |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 38 | + native |
Index: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.alias.php |
— | — | @@ -0,0 +1,13 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages of Approved Revs extension. |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +/** English |
| 11 | + */ |
| 12 | +$aliases['en'] = array( |
| 13 | + 'ApprovedPages' => array( 'ApprovedPages' ), |
| 14 | +); |
\ No newline at end of file |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.alias.php |
___________________________________________________________________ |
Added: svn:keywords |
1 | 15 | + Id |
Added: svn:eol-style |
2 | 16 | + native |
Index: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.sql |
— | — | @@ -0,0 +1,6 @@ |
| 2 | +CREATE TABLE /*_*/approved_revs ( |
| 3 | + page_id int(8) default NULL, |
| 4 | + rev_id int(8) default NULL |
| 5 | +) /*$wgDBTableOptions*/; |
| 6 | + |
| 7 | +CREATE UNIQUE INDEX approved_revs_page_id ON /*_*/approved_revs (page_id); |
Property changes on: tags/extensions/ApprovedRevs/REL_0_3_1/ApprovedRevs.sql |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 8 | + native |