Index: trunk/extensions/ExternalPages/ExternalPages_body.php |
— | — | @@ -1,32 +1,19 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -if ( !defined( 'MEDIAWIKI' ) ) { |
5 | | - echo "ExternalPages extension\n"; |
6 | | - exit( 1 ); |
7 | | -} |
8 | | - |
9 | 4 | /** |
10 | 5 | * Special page allows retrieval and display of pages from remote WMF sites |
11 | 6 | * with year, lang and project specifable |
12 | 7 | */ |
13 | | -class ExternalPages extends SpecialPage { |
| 8 | +class ExternalPages extends UnlistedSpecialPage { |
| 9 | + protected $epSites, $epPages, $epExpiry; |
14 | 10 | |
15 | | - private $mYear = ''; |
16 | | - private $mLang = ''; |
17 | | - private $mProject = ''; |
18 | | - private $mPage = false; |
19 | | - private $mPageURL = ''; |
20 | | - private $mPageText = false; |
21 | | - private $mFromCache = false; |
22 | | - |
23 | | - // adjust these as needed to change cache expiry |
24 | | - const EP_SMAXAGE = 600; |
25 | | - const EP_MAXAGE = 600; |
26 | | - const EP_MEMCACHE_EXP = 600; |
27 | | - |
28 | 11 | public function __construct() { |
| 12 | + global $wgExternalPagesSites, $wgExternalPages, $wgExternalPagesCacheExpiry; |
29 | 13 | parent::__construct( 'ExternalPages' ); |
30 | 14 | wfLoadExtensionMessages( 'ExternalPages' ); |
| 15 | + $this->epSites = $wgExternalPagesSites; |
| 16 | + $this->epPages = $wgExternalPages; |
| 17 | + $this->epExpiry = $wgExternalPagesCacheExpiry; |
31 | 18 | } |
32 | 19 | |
33 | 20 | /** |
— | — | @@ -34,194 +21,99 @@ |
35 | 22 | * URLs that direct to the remote site |
36 | 23 | * $par would be the subpage. we don't need it |
37 | 24 | */ |
38 | | - public function execute( $par ) { |
39 | | - global $wgUser, $wgRequest; |
| 25 | + public function execute( $subpage ) { |
| 26 | + global $wgUser, $wgOut, $wgMemc, $wgRequest; |
40 | 27 | |
41 | | - wfLoadExtensionMessages( 'ExternalPages' ); |
42 | 28 | $this->setHeaders(); |
43 | 29 | |
44 | | - if ( !$this->parseParams() ) { |
45 | | - return( false ); |
| 30 | + if ( strval( $subpage ) === '' ) { |
| 31 | + $this->showError( 'externalpages-no-page' ); |
| 32 | + return; |
46 | 33 | } |
47 | | - if ( !$this->userCanExecute( $wgUser ) ) { |
48 | | - $this->displayRestrictionError(); |
49 | | - return( false ); |
| 34 | + |
| 35 | + if ( !isset( $this->epPages[$subpage] ) ) { |
| 36 | + $this->showError( 'externalpages-bad-page' ); |
| 37 | + return; |
50 | 38 | } |
51 | 39 | |
52 | | - $this->constructURL(); |
53 | | - $this->retrieveExternalPage(); |
54 | | - } |
| 40 | + $siteName = $this->epPages[$subpage]['site']; |
| 41 | + $titleText = $this->epPages[$subpage]['title']; |
55 | 42 | |
56 | | - /** |
57 | | - * Process parameters of the request |
58 | | - */ |
59 | | - private function parseParams() { |
60 | | - global $wgRequest, $wgServer; |
61 | | - |
62 | | - if ( !$wgRequest->getVal( 'EPyear' ) ) { |
63 | | - $this->mYear = false; |
64 | | - } else { |
65 | | - $this->mYear = $wgRequest->getInt( 'EPyear' ); |
66 | | - // if this code is still being used 50 years from now, replace it :-P |
67 | | - if (! ( ( $this->mYear > 2000 ) && ( $this->mYear < 2050 ) ) ) { |
68 | | - ExternalPagesErrors::showError( 'externalpages-bad-year' ); |
69 | | - return( false ); |
70 | | - } |
| 43 | + if ( !isset( $this->epSites[$siteName] ) ) { |
| 44 | + throw new MWException( __METHOD__.': configuration error: invalid site name' ); |
71 | 45 | } |
72 | | - |
73 | | - if ( !$wgRequest->getVal( 'EPlanguage' ) ) { |
74 | | - $this->mLang = false; |
75 | | - } else { |
76 | | - $this->mLang = $wgRequest->getVal( 'EPlanguage' ); |
77 | | - $knownLanguages = Language::getLanguageNames( false ); |
78 | | - if ( !array_key_exists( $this->mLang, $knownLanguages ) ) { |
79 | | - ExternalPagesErrors::showError( 'externalpages-bad-language' ); |
80 | | - return( false ); |
81 | | - } |
| 46 | + $siteConf = $this->epSites[$siteName]; |
| 47 | + if ( !isset( $siteConf['scriptUrl'] ) ) { |
| 48 | + throw new MWException( __METHOD__.': configuration error: missing API URL' ); |
82 | 49 | } |
| 50 | + $scriptUrl = $siteConf['scriptUrl']; |
| 51 | + $title = Title::newFromText( $titleText ); |
| 52 | + if ( !$title ) { |
| 53 | + throw new MWException( __METHOD__.': configuration error: invalid title' ); |
| 54 | + } |
| 55 | + $titleText = $title->getPrefixedDBkey(); |
83 | 56 | |
84 | | - if ( !$wgRequest->getVal( 'EPproject' ) ) { |
85 | | - ExternalPagesErrors::showError( 'externalpages-no-project' ); |
86 | | - return( false ); |
87 | | - } else { |
88 | | - $this->mProject = $wgRequest->getVal( 'EPproject' ); |
89 | | - // for initial fundraiser rollout, just allow pages from one project. |
90 | | - // This can be generalized later |
91 | | - if ( 'wikimediafoundation.org' != $this->mProject ) { |
92 | | - ExternalPagesErrors::showError( 'externalpages-bad-project' ); |
93 | | - return( false ); |
| 57 | + // Try the cache |
| 58 | + $action = $wgRequest->getVal( 'action' ); |
| 59 | + $cacheKey = wfMemcKey( 'externalpages', $siteName, $titleText ); |
| 60 | + if ( $action !== 'purge' ) { |
| 61 | + $entry = $wgMemc->get( $cacheKey ); |
| 62 | + if ( $entry && is_array( $entry ) ) { |
| 63 | + wfDebug( __CLASS__.": got $titleText from cache\n" ); |
| 64 | + $this->showExternalPage( $title, $entry ); |
| 65 | + return; |
94 | 66 | } |
95 | 67 | } |
96 | 68 | |
97 | | - if ( !$wgRequest->getVal( 'EPpage' ) ) { |
98 | | - ExternalPagesErrors::showError( 'externalpages-no-page' ); |
99 | | - return( false ); |
| 69 | + $status = $this->sendRequest( $scriptUrl, $titleText ); |
| 70 | + if ( !$status->isOK() ) { |
| 71 | + $this->showStatusError( $status ); |
| 72 | + return; |
100 | 73 | } |
101 | | - $this->mPage = $wgRequest->getVal( 'EPpage' ); |
102 | | - // strictly speaking this may behave differently on the local wiki, oh well |
103 | | - if ( !Title::newFromText( $this->mPage ) ) { |
104 | | - ExternalPagesErrors::showError( 'externalpages-bad-page' ); |
105 | | - return( false ); |
106 | | - } |
107 | | - return( true ); |
108 | | - } |
109 | 74 | |
110 | | - private function constructURL() { |
111 | | - $url = 'http://' . $this->mProject . '/w/api.php?action=parse&page='; |
112 | | - $title = ( $this->mYear ? $this->mYear . '/' : '' ) . $this->mPage; |
113 | | - $title .= $this->mLang ? '/' . $this->mLang : ''; |
114 | | - $title = urlencode( $title ); |
115 | | - $url = $url . $title . '&format=php'; |
116 | | - $this->mPageURL = $url; |
117 | | - } |
| 75 | + $entry = $status->value; |
118 | 76 | |
119 | | - public function cacheHeaders() { |
120 | | - global $wgRequest; |
| 77 | + // Save to the cache |
| 78 | + wfDebug( __CLASS__.": storing $titleText to cache\n" ); |
| 79 | + $wgMemc->set( $cacheKey, $entry, $this->epExpiry ); |
121 | 80 | |
122 | | - $smaxage = self::EP_SMAXAGE; |
123 | | - $maxage = self::EP_MAXAGE; |
| 81 | + // Display the page |
| 82 | + $this->showExternalPage( $title, $entry ); |
| 83 | + } |
124 | 84 | |
125 | | - $public = ( session_id() == '' ); |
126 | | - |
127 | | - if ( $public ) { |
128 | | - $wgRequest->response()->header( "Cache-Control: public, s-maxage=$smaxage, max-age=$maxage" ); |
| 85 | + function showExternalPage( $title, $data ) { |
| 86 | + global $wgOut; |
| 87 | + if ( isset( $data['displaytitle'] ) && strval( $data['displaytitle'] ) !== '' ) { |
| 88 | + $wgOut->setPageTitle( $data['displaytitle'] ); |
129 | 89 | } else { |
130 | | - $wgRequest->response()->header( "Cache-Control: private, s-maxage=0, max-age=$maxage" ); |
| 90 | + $wgOut->setPageTitle( $title->getPrefixedText() ); |
131 | 91 | } |
132 | | - $time = time() + self::EP_MAXAGE; |
133 | | - $wgRequest->response()->header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', $time ) . ' GMT' ); |
134 | | - return( true ); |
| 92 | + $wgOut->setSquidMaxage( $this->epExpiry ); |
| 93 | + $wgOut->enableClientCache( true ); |
| 94 | + $wgOut->addHTML( $data['text'] ); |
135 | 95 | } |
136 | 96 | |
137 | | - private function getCacheKey( $string ) { |
138 | | - return( wfMemcKey( 'externalpages', $string ) ); |
| 97 | + function showError( $msg ) { |
| 98 | + global $wgOut; |
| 99 | + $wgOut->wrapWikiMsg( "<div class=\"errorbox\" style=\"float:none;\">\n$1</div>", $msg ); |
139 | 100 | } |
140 | 101 | |
141 | | - private function getPageFromCache() { |
142 | | - global $wgMemc; |
143 | | - |
144 | | - wfProfileIn( __METHOD__ ); |
145 | | - |
146 | | - if ( !$this->mPageURL ) { |
147 | | - $this->constructURL(); |
148 | | - } |
149 | | - |
150 | | - $this->mPageText = $wgMemc->get( $this->getCacheKey( $this->mPageURL ) ); |
151 | | - if ( !$this->mPageText ) { |
152 | | - wfDebugLog( 'ExternalPages', "Remote Page Text: cache miss for {$this->mPageURL} " ); |
153 | | - wfProfileOut( __METHOD__ ); |
154 | | - return( false ); |
155 | | - } |
156 | | - wfProfileOut( __METHOD__ ); |
157 | | - return( true ); |
| 102 | + function showStatusError( $status ) { |
| 103 | + global $wgOut; |
| 104 | + $text = $status->getWikiText(); |
| 105 | + $wgOut->addWikiText( "<div class=\"errorbox\" style=\"float:none;\">\n$text</div>" ); |
158 | 106 | } |
159 | 107 | |
160 | | - private function savePageToCache() { |
161 | | - global $wgMemc; |
162 | | - |
163 | | - wfDebugLog( 'ExternalPages', "Saving text {$this->mPageURL} to cache." ); |
164 | | - $wgMemc->set( $this->getCacheKey( $this->mPageURL ), $this->mPageText, self::EP_MEMCACHE_EXP ); |
165 | | - } |
166 | | - |
167 | | - private function retrieveExternalPage() { |
168 | | - global $wgOut, $wgRequest, $wgHooks; |
169 | | - |
170 | | - if ( !$this->mPageURL ) { |
171 | | - $this->constructURL(); |
| 108 | + function sendRequest( $scriptUrl, $titleText ) { |
| 109 | + $url = $scriptUrl . '?' . wfArrayToCGI( array( |
| 110 | + 'action' => 'render', |
| 111 | + 'title' => $titleText |
| 112 | + ) ); |
| 113 | + $req = HttpRequest::factory( $url ); |
| 114 | + $status = $req->execute(); |
| 115 | + if ( !$status->isOK() ) { |
| 116 | + return $status; |
172 | 117 | } |
173 | | - |
174 | | - // try from cache first |
175 | | - $this->getPageFromCache(); |
176 | | - |
177 | | - if ( !$this->mPageText ) { |
178 | | - $serializedText = Http::get( $this->mPageURL ); |
179 | | - |
180 | | - if ( empty( $serializedText ) ) { |
181 | | - ExternalPagesErrors::showError( 'externalpages-bad-url' ); |
182 | | - return( false ); |
183 | | - } else { |
184 | | - $text = unserialize( $serializedText ); |
185 | | - } |
186 | | - |
187 | | - if ( isset( $text['parse'] ) && ( isset( $text['parse']['text'] ) ) ) { |
188 | | - $this->mPageText = $text['parse']['text']['*']; |
189 | | - $absurl = '<a href="http://' . $this->mProject . '/'; |
190 | | - $this->mPageText = str_replace( '<a href="https://www.mediawiki.org/', $absurl, $this->mPageText ); |
191 | | - } |
192 | | - $this->savePageToCache(); |
193 | | - } else { |
194 | | - wfDebugLog( 'ExternalPages', "Retrieved {$this->mPageURL} from cache." ); |
195 | | - } |
196 | | - |
197 | | - if ( $this->mPageText ) { |
198 | | - $wgHooks['CacheHeadersAfterSet'][] = array( $this, 'cacheHeaders' ); |
199 | | - $wgOut->addHTML( $this->mPageText ); |
200 | | - } else { |
201 | | - ExternalPagesErrors::showError( 'externalpages-bad-url-data' ); |
202 | | - return( false ); |
203 | | - } |
204 | | - return; |
| 118 | + return Status::newGood( array( 'text' => $req->getContent() ) ); |
205 | 119 | } |
206 | 120 | } |
207 | | - |
208 | | -/** |
209 | | - * Error handler for some formatting of error messages |
210 | | - */ |
211 | | -class ExternalPagesErrors { |
212 | | - |
213 | | - static function showError( $errorText = 'externalpages-error-generic', $phpErrorText = false ) { |
214 | | - global $wgOut; |
215 | | - |
216 | | - $args = func_get_args(); |
217 | | - |
218 | | - array_shift( $args ); |
219 | | - $msg = wfMsg( $errorText, $args ); |
220 | | - |
221 | | - $wgOut->addWikiText( |
222 | | - '<div class="errorbox" style="float:none;">' . |
223 | | - $msg . |
224 | | - '</div>' |
225 | | - ); |
226 | | - } |
227 | | - |
228 | | -} |
\ No newline at end of file |
Index: trunk/extensions/ExternalPages/ExternalPages.i18n.php |
— | — | @@ -14,15 +14,8 @@ |
15 | 15 | $messages['en'] = array( |
16 | 16 | 'externalpages' => 'External Pages', |
17 | 17 | 'externalpages-desc' => 'Retrieves and displays pages from remote WMF sites', |
18 | | - 'externalpages-bad-year' => 'Bad year specified', |
19 | | - 'externalpages-bad-language' => 'Bad language specified', |
20 | | - 'externalpages-bad-project' => 'Bad project specified', |
21 | | - 'externalpages-no-project' => 'No project specified', |
22 | 18 | 'externalpages-bad-page' => 'Bad page specified', |
23 | 19 | 'externalpages-no-page' => 'No page specified', |
24 | | - 'externalpages-error-generic' => 'Error encountered', |
25 | | - 'externalpages-bad-url' => 'Failed to retrieve URL', |
26 | | - 'externalpages-bad-url-data' => 'Failed to retrieve page contents', |
27 | 20 | ); |
28 | 21 | |
29 | 22 | /** Message documentation (Message documentation) |
— | — | @@ -38,15 +31,8 @@ |
39 | 32 | $messages['af'] = array( |
40 | 33 | 'externalpages' => 'Eksterne bladsye', |
41 | 34 | 'externalpages-desc' => 'Kry bladsye vanaf ander WMF werwe en gee hulle hier weer', |
42 | | - 'externalpages-bad-year' => 'Ongeldige jaar gespesifiseer', |
43 | | - 'externalpages-bad-language' => 'Ongeldige taal gespesifiseer', |
44 | | - 'externalpages-bad-project' => 'Ongeldige projek gespesifiseer', |
45 | | - 'externalpages-no-project' => 'Geen projek gespesifiseer nie', |
46 | 35 | 'externalpages-bad-page' => 'Ongeldige bladsy gespesifiseer', |
47 | 36 | 'externalpages-no-page' => 'Geen bladsy gespesifiseer nie', |
48 | | - 'externalpages-error-generic' => "'n Fout het voorgekom", |
49 | | - 'externalpages-bad-url' => 'Dit was nie moontlik om die URL te onttrek nie', |
50 | | - 'externalpages-bad-url-data' => 'Kon nie die bladsyinhoud onttrek nie', |
51 | 37 | ); |
52 | 38 | |
53 | 39 | /** Arabic (العربية) |
— | — | @@ -55,15 +41,8 @@ |
56 | 42 | $messages['ar'] = array( |
57 | 43 | 'externalpages' => 'صفحات خارجية', |
58 | 44 | 'externalpages-desc' => 'يسترجع ويعرض الصفحات من مواقع مؤسسة ويكيميديا البعيدة', |
59 | | - 'externalpages-bad-year' => 'حُدّدت سنة سيئة', |
60 | | - 'externalpages-bad-language' => 'حُدّدت لغة سيئة', |
61 | | - 'externalpages-bad-project' => 'حُدّد مشروع سيء', |
62 | | - 'externalpages-no-project' => 'لم تحدد المشروع', |
63 | 45 | 'externalpages-bad-page' => 'حُدّدت صفحة سيئة', |
64 | 46 | 'externalpages-no-page' => 'لم تحدد الصفحة', |
65 | | - 'externalpages-error-generic' => 'صودف خطأ', |
66 | | - 'externalpages-bad-url' => 'فشل في استرجاع المسار', |
67 | | - 'externalpages-bad-url-data' => 'فشل في استرجاع محتويات الصفحة', |
68 | 47 | ); |
69 | 48 | |
70 | 49 | /** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
— | — | @@ -73,15 +52,8 @@ |
74 | 53 | $messages['be-tarask'] = array( |
75 | 54 | 'externalpages' => 'Вонкавыя старонкі', |
76 | 55 | 'externalpages-desc' => 'Выбірае і паказвае старонкі з іншых сайтаў фундацыі «Вікімэдыя»', |
77 | | - 'externalpages-bad-year' => 'Пазначаны няслушны год', |
78 | | - 'externalpages-bad-language' => 'Пазначаная няслушная мова', |
79 | | - 'externalpages-bad-project' => 'Пазначаны няслушны праект', |
80 | | - 'externalpages-no-project' => 'Праект не пазначаны', |
81 | 56 | 'externalpages-bad-page' => 'Пазначана няслушная старонка', |
82 | 57 | 'externalpages-no-page' => 'Старонка не пазначаная', |
83 | | - 'externalpages-error-generic' => 'Узьнікла памылка', |
84 | | - 'externalpages-bad-url' => 'Не атрымалася атрымаць URL', |
85 | | - 'externalpages-bad-url-data' => 'Не атрымалася атрымаць зьмест старонкі', |
86 | 58 | ); |
87 | 59 | |
88 | 60 | /** Bulgarian (Български) |
— | — | @@ -90,15 +62,8 @@ |
91 | 63 | $messages['bg'] = array( |
92 | 64 | 'externalpages' => 'Външни страници', |
93 | 65 | 'externalpages-desc' => 'Изтегляне и показване на страници от отдалечени сайтове на WMF', |
94 | | - 'externalpages-bad-year' => 'Зададена е неправилна година', |
95 | | - 'externalpages-bad-language' => 'Зададен е неправилен език', |
96 | | - 'externalpages-bad-project' => 'Зададен е неправилен проект', |
97 | | - 'externalpages-no-project' => 'Не е указан проект', |
98 | 66 | 'externalpages-bad-page' => 'Зададена е неправилна страница', |
99 | 67 | 'externalpages-no-page' => 'Не е указана страница', |
100 | | - 'externalpages-error-generic' => 'Възникна грешка', |
101 | | - 'externalpages-bad-url' => 'Неуспех при получаване на URL-адреса', |
102 | | - 'externalpages-bad-url-data' => 'Неуспех при получаване съдържанието на страницата', |
103 | 68 | ); |
104 | 69 | |
105 | 70 | /** Bengali (বাংলা) |
— | — | @@ -115,15 +80,8 @@ |
116 | 81 | */ |
117 | 82 | $messages['br'] = array( |
118 | 83 | 'externalpages' => 'Pajennoù diavaez', |
119 | | - 'externalpages-bad-year' => 'Bloavezh lakaet direizh', |
120 | | - 'externalpages-bad-language' => 'Yezh lakaet direizh', |
121 | | - 'externalpages-bad-project' => 'Raktres lakaet direizh', |
122 | | - 'externalpages-no-project' => "N'eus bet diferet raktres ebet", |
123 | 84 | 'externalpages-bad-page' => 'Pajenn lakaet direizh', |
124 | 85 | 'externalpages-no-page' => "N'eus bet resisaet anv pajenn ebet", |
125 | | - 'externalpages-error-generic' => 'Kavet ez eus bet ur fazi', |
126 | | - 'externalpages-bad-url' => "N'eo ket bet adtapet an URL", |
127 | | - 'externalpages-bad-url-data' => "N'eo ket bet adtapet danvez ar bajenn", |
128 | 86 | ); |
129 | 87 | |
130 | 88 | /** Bosnian (Bosanski) |
— | — | @@ -132,15 +90,8 @@ |
133 | 91 | $messages['bs'] = array( |
134 | 92 | 'externalpages' => 'Vanjske stranice', |
135 | 93 | 'externalpages-desc' => 'Preuzima i prikazuje stranice sa udaljenih WMF sajtova', |
136 | | - 'externalpages-bad-year' => 'Navedena pogrešna godina', |
137 | | - 'externalpages-bad-language' => 'Naveden pogrešan jezik', |
138 | | - 'externalpages-bad-project' => 'Naveden pogrešan projekt', |
139 | | - 'externalpages-no-project' => 'Nije naveden projekt', |
140 | 94 | 'externalpages-bad-page' => 'Navedena pogrešna stranica', |
141 | 95 | 'externalpages-no-page' => 'Nije navedena stranica', |
142 | | - 'externalpages-error-generic' => 'Desila se greška', |
143 | | - 'externalpages-bad-url' => 'Nije uspjelo preuzimanje URL', |
144 | | - 'externalpages-bad-url-data' => 'Nije uspjelo preuzimanje sadržaja stranice', |
145 | 96 | ); |
146 | 97 | |
147 | 98 | /** Czech (Česky) |
— | — | @@ -149,15 +100,8 @@ |
150 | 101 | $messages['cs'] = array( |
151 | 102 | 'externalpages' => 'Externí stránky', |
152 | 103 | 'externalpages-desc' => 'Získává a zobrazuje stránky ze stránek WMF', |
153 | | - 'externalpages-bad-year' => 'Uveden špatný rok', |
154 | | - 'externalpages-bad-language' => 'Uveden špatný jazyk', |
155 | | - 'externalpages-bad-project' => 'Uveden špatný projekt', |
156 | | - 'externalpages-no-project' => 'Nebyl uveden projekt', |
157 | 104 | 'externalpages-bad-page' => 'Uvedena špatná stránka', |
158 | 105 | 'externalpages-no-page' => 'Nebyla uvedena stránka', |
159 | | - 'externalpages-error-generic' => 'Vyskytla se chyba', |
160 | | - 'externalpages-bad-url' => 'Nepodařilo se získat URL', |
161 | | - 'externalpages-bad-url-data' => 'Nepodařilo se získat obsah stránky', |
162 | 106 | ); |
163 | 107 | |
164 | 108 | /** German (Deutsch) |
— | — | @@ -166,15 +110,8 @@ |
167 | 111 | $messages['de'] = array( |
168 | 112 | 'externalpages' => 'Externe Seiten', |
169 | 113 | 'externalpages-desc' => 'Empfängt und zeigt Seiten von externen Websites der Wikimedia Foundation an', |
170 | | - 'externalpages-bad-year' => 'Falsches Jahr angegeben', |
171 | | - 'externalpages-bad-language' => 'Falsche Sprache angegeben', |
172 | | - 'externalpages-bad-project' => 'Falsches Projekt angegeben', |
173 | | - 'externalpages-no-project' => 'Kein Projekt angegeben', |
174 | 114 | 'externalpages-bad-page' => 'Falsche Seite angegeben', |
175 | 115 | 'externalpages-no-page' => 'Keine Seite angegeben', |
176 | | - 'externalpages-error-generic' => 'Fehler gefunden', |
177 | | - 'externalpages-bad-url' => 'Kann die URL nicht empfangen', |
178 | | - 'externalpages-bad-url-data' => 'Kann keine Seiteninhalte empfangen', |
179 | 116 | ); |
180 | 117 | |
181 | 118 | /** Zazaki (Zazaki) |
— | — | @@ -183,15 +120,8 @@ |
184 | 121 | $messages['diq'] = array( |
185 | 122 | 'externalpages' => 'Pelê Teberi', |
186 | 123 | 'externalpages-desc' => 'Siteyanê WMFyê duri ra pelan ano u mocneno', |
187 | | - 'externalpages-bad-year' => 'Serra ğelete name biya', |
188 | | - 'externalpages-bad-language' => 'Zıwano ğelet name biyo', |
189 | | - 'externalpages-bad-project' => 'Proceyo ğelet name biyo', |
190 | | - 'externalpages-no-project' => 'Proce name nêbiyo', |
191 | 124 | 'externalpages-bad-page' => 'Pela ğelete name biya', |
192 | 125 | 'externalpages-no-page' => 'Pele name nêbiya', |
193 | | - 'externalpages-error-generic' => 'Xeta biya', |
194 | | - 'externalpages-bad-url' => 'Ardena URLi beşar nêbiye', |
195 | | - 'externalpages-bad-url-data' => 'Ardena tedeesteyanê pele beşar nêbiye', |
196 | 126 | ); |
197 | 127 | |
198 | 128 | /** Lower Sorbian (Dolnoserbski) |
— | — | @@ -200,15 +130,8 @@ |
201 | 131 | $messages['dsb'] = array( |
202 | 132 | 'externalpages' => 'Eksterne boki', |
203 | 133 | 'externalpages-desc' => 'Wótwołujo a zwobraznjujo boki z internetnych sedłow WMF', |
204 | | - 'externalpages-bad-year' => 'Njepłaśiwe lěto pódane', |
205 | | - 'externalpages-bad-language' => 'Njepłaśiwa rěc pódana', |
206 | | - 'externalpages-bad-project' => 'Njepłaśiwy projekt pódany', |
207 | | - 'externalpages-no-project' => 'Žeden projekt pódany', |
208 | 134 | 'externalpages-bad-page' => 'Njepłaśiwy bok pódany', |
209 | 135 | 'externalpages-no-page' => 'Žeden bok pódany', |
210 | | - 'externalpages-error-generic' => 'Zmólka namakana', |
211 | | - 'externalpages-bad-url' => 'URL njejo se dał wótwołaś', |
212 | | - 'externalpages-bad-url-data' => 'Wopśimjeśe boka njejo se dało wótwołaś', |
213 | 136 | ); |
214 | 137 | |
215 | 138 | /** Greek (Ελληνικά) |
— | — | @@ -216,15 +139,8 @@ |
217 | 140 | */ |
218 | 141 | $messages['el'] = array( |
219 | 142 | 'externalpages' => 'Εξωτερικές Σελίδες', |
220 | | - 'externalpages-bad-year' => 'Λανθασμένη χρονιά', |
221 | | - 'externalpages-bad-language' => 'Λανθασμένη γλώσσα', |
222 | | - 'externalpages-bad-project' => 'Λανθασμένο εγχείρημα', |
223 | | - 'externalpages-no-project' => 'Δεν διευκρινίζεται κάποιο εγχείρημα', |
224 | 143 | 'externalpages-bad-page' => 'Λανθασμένη σελίδα', |
225 | 144 | 'externalpages-no-page' => 'Δεν διευκρινίζεται κάποια σελίδα', |
226 | | - 'externalpages-error-generic' => 'Αντιμετωπίστηκε σφάλμα', |
227 | | - 'externalpages-bad-url' => 'Αποτυχία ανάκτησης του URL', |
228 | | - 'externalpages-bad-url-data' => 'Αποτυχία ανάκτησης περιεχομένων σελίδας', |
229 | 145 | ); |
230 | 146 | |
231 | 147 | /** Esperanto (Esperanto) |
— | — | @@ -233,15 +149,8 @@ |
234 | 150 | $messages['eo'] = array( |
235 | 151 | 'externalpages' => 'Eksteraj Paĝoj', |
236 | 152 | 'externalpages-desc' => 'Trovas kaj montras paĝojn de eksteraj WMF-retejoj', |
237 | | - 'externalpages-bad-year' => 'Malĝusta jaro estis enigita', |
238 | | - 'externalpages-bad-language' => 'Malĝusta lingvo eniĝis', |
239 | | - 'externalpages-bad-project' => 'Malĝusta projekto estis enigita', |
240 | | - 'externalpages-no-project' => 'Neniu projekto estis enigita', |
241 | 153 | 'externalpages-bad-page' => 'Malĝusta paĝo specifiĝis', |
242 | 154 | 'externalpages-no-page' => 'Neniu paĝo estis enigita', |
243 | | - 'externalpages-error-generic' => 'Eraraj okazis', |
244 | | - 'externalpages-bad-url' => 'Malsukcesis ricevi URL-on', |
245 | | - 'externalpages-bad-url-data' => 'Malsukcesis ricevi paĝenhavon', |
246 | 155 | ); |
247 | 156 | |
248 | 157 | /** Spanish (Español) |
— | — | @@ -251,15 +160,8 @@ |
252 | 161 | $messages['es'] = array( |
253 | 162 | 'externalpages' => 'Páginas externas', |
254 | 163 | 'externalpages-desc' => 'Recupera y muestra páginas de sitios remotos de la Fundación Wikimedia', |
255 | | - 'externalpages-bad-year' => 'Año especificado incorrecto', |
256 | | - 'externalpages-bad-language' => 'Idioma especificado mal', |
257 | | - 'externalpages-bad-project' => 'Proyecto especificado mal', |
258 | | - 'externalpages-no-project' => 'No se ha especificado un proyecto', |
259 | 164 | 'externalpages-bad-page' => 'Página especificada incorrecta', |
260 | 165 | 'externalpages-no-page' => 'No se ha especificado una página', |
261 | | - 'externalpages-error-generic' => 'Se ha encontrado un error', |
262 | | - 'externalpages-bad-url' => 'No se pudo recuperar la dirección URL', |
263 | | - 'externalpages-bad-url-data' => 'No se pudo recuperar el contenido de la página', |
264 | 166 | ); |
265 | 167 | |
266 | 168 | /** Estonian (Eesti) |
— | — | @@ -267,13 +169,8 @@ |
268 | 170 | */ |
269 | 171 | $messages['et'] = array( |
270 | 172 | 'externalpages' => 'Välisleheküljed', |
271 | | - 'externalpages-bad-year' => 'Aasta märgitud valesti', |
272 | | - 'externalpages-bad-language' => 'Keel märgitud valesti', |
273 | | - 'externalpages-bad-project' => 'Projekt märgitud valesti', |
274 | | - 'externalpages-no-project' => 'Projekti ei märgitud', |
275 | 173 | 'externalpages-bad-page' => 'Lehekülg märgitud valesti', |
276 | 174 | 'externalpages-no-page' => 'Lehte ei märgitud', |
277 | | - 'externalpages-error-generic' => 'Ilmnes viga', |
278 | 175 | ); |
279 | 176 | |
280 | 177 | /** Finnish (Suomi) |
— | — | @@ -283,15 +180,8 @@ |
284 | 181 | $messages['fi'] = array( |
285 | 182 | 'externalpages' => 'Ulkoiset sivut', |
286 | 183 | 'externalpages-desc' => 'Hakee ja näyttää sivuja ei-paikallisilta WMF-sivustoilta.', |
287 | | - 'externalpages-bad-year' => 'Annettu vuosi virheellinen', |
288 | | - 'externalpages-bad-language' => 'Annettu kieli virheellinen', |
289 | | - 'externalpages-bad-project' => 'Annettu projekti virheellinen', |
290 | | - 'externalpages-no-project' => 'Projektia ei annettu', |
291 | 184 | 'externalpages-bad-page' => 'Annetti sivu virheellinen', |
292 | 185 | 'externalpages-no-page' => 'Sivua ei annettu', |
293 | | - 'externalpages-error-generic' => 'Tapahtui virhe', |
294 | | - 'externalpages-bad-url' => 'URL-osoitteen hakeminen epäonnistui', |
295 | | - 'externalpages-bad-url-data' => 'Sivun sisällön hakeminen epäonnistui', |
296 | 186 | ); |
297 | 187 | |
298 | 188 | /** French (Français) |
— | — | @@ -300,15 +190,8 @@ |
301 | 191 | $messages['fr'] = array( |
302 | 192 | 'externalpages' => 'Pages externes', |
303 | 193 | 'externalpages-desc' => 'Recouvre et affiche les pages depuis des sites distants de la WMF', |
304 | | - 'externalpages-bad-year' => 'Année indiquée incorrecte', |
305 | | - 'externalpages-bad-language' => 'Langue indiquée incorrecte', |
306 | | - 'externalpages-bad-project' => 'Projet indiqué incorrect', |
307 | | - 'externalpages-no-project' => 'Aucun projet indiqué', |
308 | 194 | 'externalpages-bad-page' => 'Page indiquée incorrecte', |
309 | 195 | 'externalpages-no-page' => 'Aucune page indiquée', |
310 | | - 'externalpages-error-generic' => 'Erreur rencontrée', |
311 | | - 'externalpages-bad-url' => "Échec pour récupérer l'URL", |
312 | | - 'externalpages-bad-url-data' => 'Échec pour récupérer les données de la page', |
313 | 196 | ); |
314 | 197 | |
315 | 198 | /** Franco-Provençal (Arpetan) |
— | — | @@ -317,15 +200,8 @@ |
318 | 201 | $messages['frp'] = array( |
319 | 202 | 'externalpages' => 'Pâges de defôr', |
320 | 203 | 'externalpages-desc' => 'Recôvre et montre les pâges dês des setos distants de la WMF.', |
321 | | - 'externalpages-bad-year' => 'An spècefiâ fôx', |
322 | | - 'externalpages-bad-language' => 'Lengoua spècefiâ fôssa', |
323 | | - 'externalpages-bad-project' => 'Projèt spècefiâ fôx', |
324 | | - 'externalpages-no-project' => 'Gins de projèt spècefiâ', |
325 | 204 | 'externalpages-bad-page' => 'Pâge spècefiâ fôssa', |
326 | 205 | 'externalpages-no-page' => 'Gins de pâge spècefiâ', |
327 | | - 'externalpages-error-generic' => 'Èrror rencontrâ', |
328 | | - 'externalpages-bad-url' => 'Falyita por rècupèrar l’URL', |
329 | | - 'externalpages-bad-url-data' => 'Falyita por rècupèrar les balyês de la pâge', |
330 | 206 | ); |
331 | 207 | |
332 | 208 | /** Galician (Galego) |
— | — | @@ -334,15 +210,8 @@ |
335 | 211 | $messages['gl'] = array( |
336 | 212 | 'externalpages' => 'Páxinas externas', |
337 | 213 | 'externalpages-desc' => 'Recupera e mostra as páxinas de sitios remotos con respecto á Fundación Wikimedia', |
338 | | - 'externalpages-bad-year' => 'O ano especificado é incorrecto', |
339 | | - 'externalpages-bad-language' => 'A lingua especificada é incorrecta', |
340 | | - 'externalpages-bad-project' => 'O proxecto especificado é incorrecto', |
341 | | - 'externalpages-no-project' => 'Non se especificou ningún proxecto', |
342 | 214 | 'externalpages-bad-page' => 'A páxina especificada é incorrecta', |
343 | 215 | 'externalpages-no-page' => 'Non se especificou ningunha páxina', |
344 | | - 'externalpages-error-generic' => 'Atopouse un erro', |
345 | | - 'externalpages-bad-url' => 'Non se puido recuperar o enderezo URL', |
346 | | - 'externalpages-bad-url-data' => 'Non se puido recuperar o contido da páxina', |
347 | 216 | ); |
348 | 217 | |
349 | 218 | /** Swiss German (Alemannisch) |
— | — | @@ -351,15 +220,8 @@ |
352 | 221 | $messages['gsw'] = array( |
353 | 222 | 'externalpages' => 'Extärni Syte', |
354 | 223 | 'externalpages-desc' => 'Rueft Syte ab vu abglägene WMF-Sites un zeigt si aa', |
355 | | - 'externalpages-bad-year' => 'Schlächt Johr spezifiziert', |
356 | | - 'externalpages-bad-language' => 'Schlächti Sproch spezifiziert', |
357 | | - 'externalpages-bad-project' => 'Schlächt Porjäkt spezifiziert', |
358 | | - 'externalpages-no-project' => 'Kei Projäkt spezifiziert', |
359 | 224 | 'externalpages-bad-page' => 'Schlächti Syte spezifiziert', |
360 | 225 | 'externalpages-no-page' => 'Kei Syte spezifiziert', |
361 | | - 'externalpages-error-generic' => 'Fähler gfunde', |
362 | | - 'externalpages-bad-url' => 'Abruef vu dr URL fählgschlaa', |
363 | | - 'externalpages-bad-url-data' => 'Abruef vum Syteinhalt fählgschlaa', |
364 | 226 | ); |
365 | 227 | |
366 | 228 | /** Hebrew (עברית) |
— | — | @@ -368,15 +230,8 @@ |
369 | 231 | $messages['he'] = array( |
370 | 232 | 'externalpages' => 'דפים חיצוניים', |
371 | 233 | 'externalpages-desc' => 'אחזור והצגה של עמודים מאתרים מרוחקים של קרן ויקימדיה', |
372 | | - 'externalpages-bad-year' => 'השנה שצוינה שגויה', |
373 | | - 'externalpages-bad-language' => 'השפה שצוינה שגויה', |
374 | | - 'externalpages-bad-project' => 'המיזם שצוין שגוי', |
375 | | - 'externalpages-no-project' => 'לא צוין דף', |
376 | 234 | 'externalpages-bad-page' => 'הדף שצוין שגוי', |
377 | 235 | 'externalpages-no-page' => 'לא צוין דף', |
378 | | - 'externalpages-error-generic' => 'ארעה שגיאה', |
379 | | - 'externalpages-bad-url' => 'ארע כשל באיחזור הכתובת', |
380 | | - 'externalpages-bad-url-data' => 'ארע כשל באיחזור תכני הדף', |
381 | 236 | ); |
382 | 237 | |
383 | 238 | /** Upper Sorbian (Hornjoserbsce) |
— | — | @@ -385,15 +240,8 @@ |
386 | 241 | $messages['hsb'] = array( |
387 | 242 | 'externalpages' => 'Eksterne strony', |
388 | 243 | 'externalpages-desc' => 'Wotwołuje a zwobraznjuje strony z internetnych sydłow WMF', |
389 | | - 'externalpages-bad-year' => 'Njepłaćiwe lěto podate', |
390 | | - 'externalpages-bad-language' => 'Njepłaćiwa rěč podata', |
391 | | - 'externalpages-bad-project' => 'Njepłaćiwy projekt podaty', |
392 | | - 'externalpages-no-project' => 'Žadyn projekt podaty', |
393 | 244 | 'externalpages-bad-page' => 'Njepłaćiwa strona podata', |
394 | 245 | 'externalpages-no-page' => 'Žana strona podata', |
395 | | - 'externalpages-error-generic' => 'Zmylk namakany', |
396 | | - 'externalpages-bad-url' => 'URL njeda so wotwołać', |
397 | | - 'externalpages-bad-url-data' => 'Wobsah strony njeda so wotwołać', |
398 | 246 | ); |
399 | 247 | |
400 | 248 | /** Hungarian (Magyar) |
— | — | @@ -402,15 +250,8 @@ |
403 | 251 | $messages['hu'] = array( |
404 | 252 | 'externalpages' => 'Külső lapok', |
405 | 253 | 'externalpages-desc' => 'Lapok lekérése és megjelenítése távoli WMF oldalakról', |
406 | | - 'externalpages-bad-year' => 'A megadott év hibás', |
407 | | - 'externalpages-bad-language' => 'A megadott nyelv hibás', |
408 | | - 'externalpages-bad-project' => 'A megadott projekt hibás', |
409 | | - 'externalpages-no-project' => 'Nincs megadva projekt', |
410 | 254 | 'externalpages-bad-page' => 'A megadott lap hibás', |
411 | 255 | 'externalpages-no-page' => 'Nincs megadott lap', |
412 | | - 'externalpages-error-generic' => 'Hiba történt', |
413 | | - 'externalpages-bad-url' => 'Nem sikerült lekérni az URL-t', |
414 | | - 'externalpages-bad-url-data' => 'Nem sikerült lekérni a lap tartalmát', |
415 | 256 | ); |
416 | 257 | |
417 | 258 | /** Interlingua (Interlingua) |
— | — | @@ -419,15 +260,8 @@ |
420 | 261 | $messages['ia'] = array( |
421 | 262 | 'externalpages' => 'Paginas externe', |
422 | 263 | 'externalpages-desc' => 'Recupera e presenta paginas ex sitos WMF remote', |
423 | | - 'externalpages-bad-year' => 'Anno invalide specificate', |
424 | | - 'externalpages-bad-language' => 'Lingua invalide specificate', |
425 | | - 'externalpages-bad-project' => 'Projecto invalide specificate', |
426 | | - 'externalpages-no-project' => 'Nulle projecto specificate', |
427 | 264 | 'externalpages-bad-page' => 'Pagina invalide specificate', |
428 | 265 | 'externalpages-no-page' => 'Nulle pagina specificate', |
429 | | - 'externalpages-error-generic' => 'Error incontrate', |
430 | | - 'externalpages-bad-url' => 'Falleva de recuperar URL', |
431 | | - 'externalpages-bad-url-data' => 'Falleva de recuperar contento de pagina', |
432 | 266 | ); |
433 | 267 | |
434 | 268 | /** Indonesian (Bahasa Indonesia) |
— | — | @@ -436,29 +270,15 @@ |
437 | 271 | $messages['id'] = array( |
438 | 272 | 'externalpages' => 'Halaman Eksternal', |
439 | 273 | 'externalpages-desc' => 'Mengambil dan menampilkan halaman dari situs WMF jauh', |
440 | | - 'externalpages-bad-year' => 'Tahun salah', |
441 | | - 'externalpages-bad-language' => 'Bahasa salah', |
442 | | - 'externalpages-bad-project' => 'Proyek salah', |
443 | | - 'externalpages-no-project' => 'Proyek tak diberikan', |
444 | 274 | 'externalpages-bad-page' => 'Halaman salah', |
445 | 275 | 'externalpages-no-page' => 'Halaman tak diberikan', |
446 | | - 'externalpages-error-generic' => 'Ditemukan kesalahan', |
447 | | - 'externalpages-bad-url' => 'Gagal mengambil URL', |
448 | | - 'externalpages-bad-url-data' => 'Gagal mengambil isi halaman', |
449 | 276 | ); |
450 | 277 | |
451 | 278 | /** Italian (Italiano) |
452 | 279 | * @author Aushulz |
453 | 280 | */ |
454 | 281 | $messages['it'] = array( |
455 | | - 'externalpages-bad-year' => "Errore nell'immissione dell'anno", |
456 | | - 'externalpages-bad-language' => "Errore nell'immissione della lingua", |
457 | | - 'externalpages-bad-project' => "Errore nell'immissione del progetto", |
458 | | - 'externalpages-no-project' => 'Nessun progetto specificato', |
459 | 282 | 'externalpages-bad-page' => "Errore nell'immissione della pagina", |
460 | | - 'externalpages-error-generic' => 'Errore incontrato', |
461 | | - 'externalpages-bad-url' => "Non è stato possibile ottenere l'URL", |
462 | | - 'externalpages-bad-url-data' => 'Non è stato possibile ottenere i contenuti della pagina', |
463 | 283 | ); |
464 | 284 | |
465 | 285 | /** Japanese (日本語) |
— | — | @@ -467,30 +287,16 @@ |
468 | 288 | $messages['ja'] = array( |
469 | 289 | 'externalpages' => '外部ページ', |
470 | 290 | 'externalpages-desc' => '他の WMF サイトのページを読み込み表示する', |
471 | | - 'externalpages-bad-year' => '不正な年の指定', |
472 | | - 'externalpages-bad-language' => '不正な言語の指定', |
473 | | - 'externalpages-bad-project' => '不正なプロジェクトの指定', |
474 | | - 'externalpages-no-project' => 'プロジェクトの指定なし', |
475 | 291 | 'externalpages-bad-page' => '不正なページの指定', |
476 | 292 | 'externalpages-no-page' => 'ページの指定なし', |
477 | | - 'externalpages-error-generic' => 'エラー発生', |
478 | | - 'externalpages-bad-url' => 'URL の読み込みに失敗', |
479 | | - 'externalpages-bad-url-data' => 'ページ内容の読み込みに失敗', |
480 | 293 | ); |
481 | 294 | |
482 | 295 | /** Georgian (ქართული) |
483 | 296 | * @author BRUTE |
484 | 297 | */ |
485 | 298 | $messages['ka'] = array( |
486 | | - 'externalpages-bad-year' => 'წელი შეცდომითაა მითითებული', |
487 | | - 'externalpages-bad-language' => 'ენა შეცდომითაა მითითებული', |
488 | | - 'externalpages-bad-project' => 'პროექტი შეცდომითა მითითებული', |
489 | | - 'externalpages-no-project' => 'პროექტი არ არის მითითებული', |
490 | 299 | 'externalpages-bad-page' => 'გვერდი შეცდომითაა მითითებული', |
491 | 300 | 'externalpages-no-page' => 'გვერდი არ არის მითითებული', |
492 | | - 'externalpages-error-generic' => 'მოხდა შეცდომა', |
493 | | - 'externalpages-bad-url' => 'ვერ მოხერხდა URL-ს მიღება', |
494 | | - 'externalpages-bad-url-data' => 'ვერ მოხერხდა გვერდის შიგთავსის მიღება', |
495 | 301 | ); |
496 | 302 | |
497 | 303 | /** Ripoarisch (Ripoarisch) |
— | — | @@ -499,15 +305,8 @@ |
500 | 306 | $messages['ksh'] = array( |
501 | 307 | 'externalpages' => 'Sigge vun Ußerhallef', |
502 | 308 | 'externalpages-desc' => 'Röf Sigge von ander Projäkte vun de WikiMedia-Schtefftung af, un zeijsch se aan.', |
503 | | - 'externalpages-bad-year' => 'Et es e verkiehrt Johr aanjejovve', |
504 | | - 'externalpages-bad-language' => 'En onjöltijje Shprooch wood aanjejovve', |
505 | | - 'externalpages-bad-project' => 'En onjöltesch Projäk wood aanjejovve', |
506 | | - 'externalpages-no-project' => 'Kei Projäk aanjejovve', |
507 | 309 | 'externalpages-bad-page' => 'En kappodde Sigg wood aanjejovve', |
508 | 310 | 'externalpages-no-page' => 'Keijn Sigg aanjejovve', |
509 | | - 'externalpages-error-generic' => 'Ene Fähler es opjetrodde', |
510 | | - 'externalpages-bad-url' => 'Kunnt dä <i lang="en">URL</i> nit eraan holle', |
511 | | - 'externalpages-bad-url-data' => 'Kunnt dä Ennhald vun dä Sigg nit eraan holle', |
512 | 311 | ); |
513 | 312 | |
514 | 313 | /** Luxembourgish (Lëtzebuergesch) |
— | — | @@ -516,15 +315,8 @@ |
517 | 316 | $messages['lb'] = array( |
518 | 317 | 'externalpages' => 'Extern Säiten', |
519 | 318 | 'externalpages-desc' => 'Eriwwerhuelen a weise vu Säiten vu WMF-Siten déi op engem anere Server (remote) stinn', |
520 | | - 'externalpages-bad-year' => 'Falscht Joer uginn', |
521 | | - 'externalpages-bad-language' => 'Falsch Sprooch uginn', |
522 | | - 'externalpages-bad-project' => 'Falsche Projet uginn', |
523 | | - 'externalpages-no-project' => 'Kee Projet uginn', |
524 | 319 | 'externalpages-bad-page' => 'Falsch Säit uginn', |
525 | 320 | 'externalpages-no-page' => 'Keng Säit uginn', |
526 | | - 'externalpages-error-generic' => 'Et ass e Feeler opgetrat', |
527 | | - 'externalpages-bad-url' => 'Feeler beim recuperéiere vun der URL', |
528 | | - 'externalpages-bad-url-data' => 'Et ass net gelong den Inhalt vun de Säiten eriwwerzehuelen', |
529 | 321 | ); |
530 | 322 | |
531 | 323 | /** Macedonian (Македонски) |
— | — | @@ -533,15 +325,8 @@ |
534 | 326 | $messages['mk'] = array( |
535 | 327 | 'externalpages' => 'Надворешни страници', |
536 | 328 | 'externalpages-desc' => 'Извлекува и прикажува страници од други WMF веб-страници', |
537 | | - 'externalpages-bad-year' => 'Назначена е неправилна година', |
538 | | - 'externalpages-bad-language' => 'Назначен е неправилен јазик', |
539 | | - 'externalpages-bad-project' => 'Назначен е неправилен проект', |
540 | | - 'externalpages-no-project' => 'Нема назначено проект', |
541 | 329 | 'externalpages-bad-page' => 'Назначена е неправилна страница', |
542 | 330 | 'externalpages-no-page' => 'Нема назначено страница', |
543 | | - 'externalpages-error-generic' => 'Настана грешка', |
544 | | - 'externalpages-bad-url' => 'Не можев да ја добијам URL адресата', |
545 | | - 'externalpages-bad-url-data' => 'Не можев да ја добијам содржината на страницата', |
546 | 331 | ); |
547 | 332 | |
548 | 333 | /** Malayalam (മലയാളം) |
— | — | @@ -550,15 +335,8 @@ |
551 | 336 | $messages['ml'] = array( |
552 | 337 | 'externalpages' => 'പുറത്തുനിന്നുള്ള താളുകൾ', |
553 | 338 | 'externalpages-desc' => 'വിദൂര ഡബ്ല്യൂ.എം.എഫ്. സൈറ്റുകളിൽ നിന്നുമുള്ള താളുകൾ ശേഖരിക്കുകയും പ്രദർശിപ്പിക്കുകയും ചെയ്യുന്നു', |
554 | | - 'externalpages-bad-year' => 'നൽകിയ വർഷം തെറ്റാണ്', |
555 | | - 'externalpages-bad-language' => 'നൽകിയ ഭാഷ തെറ്റാണ്', |
556 | | - 'externalpages-bad-project' => 'വ്യക്തമാക്കിയ പദ്ധതി തെറ്റാണ്', |
557 | | - 'externalpages-no-project' => 'പദ്ധതികളൊന്നും വ്യക്തമാക്കിയിട്ടില്ല', |
558 | 339 | 'externalpages-bad-page' => 'നൽകിയ താൾ തെറ്റാണ്', |
559 | 340 | 'externalpages-no-page' => 'താളുകളൊന്നും വ്യക്തമാക്കിയിട്ടില്ല', |
560 | | - 'externalpages-error-generic' => 'പിഴവ് നേരിടപ്പെട്ടു', |
561 | | - 'externalpages-bad-url' => 'യൂ.ആർ.എൽ. ശേഖരിക്കുന്നതിൽ പരാജയപ്പെട്ടു', |
562 | | - 'externalpages-bad-url-data' => 'താളിന്റെ ഉള്ളടക്കം ശേഖരിക്കുന്നതിൽ പരാജയപ്പെട്ടു', |
563 | 341 | ); |
564 | 342 | |
565 | 343 | /** Dutch (Nederlands) |
— | — | @@ -567,15 +345,8 @@ |
568 | 346 | $messages['nl'] = array( |
569 | 347 | 'externalpages' => "Externe pagina's", |
570 | 348 | 'externalpages-desc' => "Haalt pagina's op van andere WMF-sites en geeft deze weer", |
571 | | - 'externalpages-bad-year' => 'Er is een verkeerd jaar opgegeven', |
572 | | - 'externalpages-bad-language' => 'Er is een verkeerde taal opgegeven', |
573 | | - 'externalpages-bad-project' => 'Er is een verkeerd project opgegeven', |
574 | | - 'externalpages-no-project' => 'Er is geen project opgegeven', |
575 | 349 | 'externalpages-bad-page' => 'Er is een verkeerde pagina opgegeven', |
576 | 350 | 'externalpages-no-page' => 'Er is geen pagina opgegeven', |
577 | | - 'externalpages-error-generic' => 'Er is een fout opgetreden', |
578 | | - 'externalpages-bad-url' => 'Het was niet mogelijk de URL op te halen', |
579 | | - 'externalpages-bad-url-data' => 'Het was niet mogelijk de paginainhoud op te halen', |
580 | 351 | ); |
581 | 352 | |
582 | 353 | /** Norwegian (bokmål) (Norsk (bokmål)) |
— | — | @@ -585,15 +356,8 @@ |
586 | 357 | $messages['no'] = array( |
587 | 358 | 'externalpages' => 'Eksterne sider', |
588 | 359 | 'externalpages-desc' => 'Henter og viser sider fra andre WMF-steder', |
589 | | - 'externalpages-bad-year' => 'Ugyldig år spesifisert', |
590 | | - 'externalpages-bad-language' => 'Feil språk valgt', |
591 | | - 'externalpages-bad-project' => 'Feil prosjekt valgt', |
592 | | - 'externalpages-no-project' => 'Inget prosjekt spesifisert', |
593 | 360 | 'externalpages-bad-page' => 'Ugyldig side spesifisert', |
594 | 361 | 'externalpages-no-page' => 'Ingen side spesifisert', |
595 | | - 'externalpages-error-generic' => 'Feil oppstått', |
596 | | - 'externalpages-bad-url' => 'Feilet ved henting av URL', |
597 | | - 'externalpages-bad-url-data' => 'Klarte ikke å hente sideinnhold', |
598 | 362 | ); |
599 | 363 | |
600 | 364 | /** Occitan (Occitan) |
— | — | @@ -602,15 +366,8 @@ |
603 | 367 | $messages['oc'] = array( |
604 | 368 | 'externalpages' => 'Paginas extèrnas', |
605 | 369 | 'externalpages-desc' => 'Recobrís e aficha las paginas dempuèi de sites distants de la WMF', |
606 | | - 'externalpages-bad-year' => 'Annada indicada incorrècta', |
607 | | - 'externalpages-bad-language' => 'Lenga indicada incorrècta', |
608 | | - 'externalpages-bad-project' => 'Projècte indicat incorrècte', |
609 | | - 'externalpages-no-project' => 'Cap de projècte pas indicat', |
610 | 370 | 'externalpages-bad-page' => 'Pagina indicada incorrècta', |
611 | 371 | 'externalpages-no-page' => 'Cap de pagina pas indicada', |
612 | | - 'externalpages-error-generic' => 'Error rencontrada', |
613 | | - 'externalpages-bad-url' => "Fracàs per recuperar l'URL", |
614 | | - 'externalpages-bad-url-data' => 'Fracàs per recuperar las donadas de la pagina', |
615 | 372 | ); |
616 | 373 | |
617 | 374 | /** Polish (Polski) |
— | — | @@ -620,15 +377,8 @@ |
621 | 378 | $messages['pl'] = array( |
622 | 379 | 'externalpages' => 'Strony zewnętrzne', |
623 | 380 | 'externalpages-desc' => 'Pobiera i wyświetla strony ze zdalnych witryn Fundacji Wikimedia', |
624 | | - 'externalpages-bad-year' => 'Podano nieprawidłowy rok', |
625 | | - 'externalpages-bad-language' => 'Podano nieprawidłowy język', |
626 | | - 'externalpages-bad-project' => 'Podano nieprawidłowy projekt', |
627 | | - 'externalpages-no-project' => 'Nie określono projektu', |
628 | 381 | 'externalpages-bad-page' => 'Określono nieprawidłową stronę', |
629 | 382 | 'externalpages-no-page' => 'Nie określono strony', |
630 | | - 'externalpages-error-generic' => 'Wystąpił błąd', |
631 | | - 'externalpages-bad-url' => 'Nie można pobrać z URL', |
632 | | - 'externalpages-bad-url-data' => 'Nie można pobrać zawartości strony', |
633 | 383 | ); |
634 | 384 | |
635 | 385 | /** Piedmontese (Piemontèis) |
— | — | @@ -638,15 +388,8 @@ |
639 | 389 | $messages['pms'] = array( |
640 | 390 | 'externalpages' => 'Pàgine esterne', |
641 | 391 | 'externalpages-desc' => 'A treuva e a visualisa dle pàgine da sit WMF leugn', |
642 | | - 'externalpages-bad-year' => 'Ann pa bon spessificà', |
643 | | - 'externalpages-bad-language' => 'Lenga pa bon-a spessificà', |
644 | | - 'externalpages-bad-project' => 'Proget pa bon spessificà', |
645 | | - 'externalpages-no-project' => 'Pa gnun proget spessificà', |
646 | 392 | 'externalpages-bad-page' => 'Pàgina pa bon-a spessificà', |
647 | 393 | 'externalpages-no-page' => 'Pa gnun-e pàgine spessificà', |
648 | | - 'externalpages-error-generic' => 'Eror capità', |
649 | | - 'externalpages-bad-url' => "Pa podù trové l'URL", |
650 | | - 'externalpages-bad-url-data' => 'Pa podù trové ij contnù dla pàgina', |
651 | 394 | ); |
652 | 395 | |
653 | 396 | /** Pashto (پښتو) |
— | — | @@ -662,15 +405,8 @@ |
663 | 406 | $messages['pt'] = array( |
664 | 407 | 'externalpages' => 'Páginas Externas', |
665 | 408 | 'externalpages-desc' => 'Importa e apresenta páginas de sítios WMF remotos', |
666 | | - 'externalpages-bad-year' => 'Ano incorrecto', |
667 | | - 'externalpages-bad-language' => 'Língua incorrecta', |
668 | | - 'externalpages-bad-project' => 'Projecto incorrecto', |
669 | | - 'externalpages-no-project' => 'Projecto não introduzido', |
670 | 409 | 'externalpages-bad-page' => 'Página incorrecta', |
671 | 410 | 'externalpages-no-page' => 'Página não introduzida', |
672 | | - 'externalpages-error-generic' => 'Erro detectado', |
673 | | - 'externalpages-bad-url' => 'Importação da URL falhou', |
674 | | - 'externalpages-bad-url-data' => 'Importação do conteúdo da página falhou', |
675 | 411 | ); |
676 | 412 | |
677 | 413 | /** Brazilian Portuguese (Português do Brasil) |
— | — | @@ -680,15 +416,8 @@ |
681 | 417 | $messages['pt-br'] = array( |
682 | 418 | 'externalpages' => 'Páginas Externas', |
683 | 419 | 'externalpages-desc' => 'Importar e apresentar páginas de sítios WMF remotos', |
684 | | - 'externalpages-bad-year' => 'Ano incorreto', |
685 | | - 'externalpages-bad-language' => 'Língua incorreta', |
686 | | - 'externalpages-bad-project' => 'Projeto incorrecto', |
687 | | - 'externalpages-no-project' => 'Projeto não especificado', |
688 | 420 | 'externalpages-bad-page' => 'Página incorrecta', |
689 | 421 | 'externalpages-no-page' => 'Página não especificada', |
690 | | - 'externalpages-error-generic' => 'Erro detectado', |
691 | | - 'externalpages-bad-url' => 'Importação da URL falhou', |
692 | | - 'externalpages-bad-url-data' => 'Importação do conteúdo da página falhou', |
693 | 422 | ); |
694 | 423 | |
695 | 424 | /** Romanian (Română) |
— | — | @@ -696,15 +425,8 @@ |
697 | 426 | */ |
698 | 427 | $messages['ro'] = array( |
699 | 428 | 'externalpages' => 'Pagini externe', |
700 | | - 'externalpages-bad-year' => 'An greşit specificat', |
701 | | - 'externalpages-bad-language' => 'Limbă greşită specificată', |
702 | | - 'externalpages-bad-project' => 'Proiect greşit specificat', |
703 | | - 'externalpages-no-project' => 'Niciun proiect specificat', |
704 | 429 | 'externalpages-bad-page' => 'Pagină greşită specificată', |
705 | 430 | 'externalpages-no-page' => 'Nicio pagină specificată', |
706 | | - 'externalpages-error-generic' => 'Eroare întâlnită', |
707 | | - 'externalpages-bad-url' => 'Acţiune eşuată pentru a prelua URL', |
708 | | - 'externalpages-bad-url-data' => 'Acţiune eşuată pentru a prelua conţinutul paginii', |
709 | 431 | ); |
710 | 432 | |
711 | 433 | /** Tarandíne (Tarandíne) |
— | — | @@ -713,15 +435,8 @@ |
714 | 436 | $messages['roa-tara'] = array( |
715 | 437 | 'externalpages' => 'Pàggene esterne', |
716 | 438 | 'externalpages-desc' => 'Pigghie e face vedè pàggene da le site remote WMF', |
717 | | - 'externalpages-bad-year' => 'Anne sbagliate specificate', |
718 | | - 'externalpages-bad-language' => 'Lengà sbagliate specificate', |
719 | | - 'externalpages-bad-project' => 'Progette sbagliate specificate', |
720 | | - 'externalpages-no-project' => 'Nisciune progette specificate', |
721 | 439 | 'externalpages-bad-page' => 'Pàgena sbagliate specificate', |
722 | 440 | 'externalpages-no-page' => 'Nisciuna pàgene specificate', |
723 | | - 'externalpages-error-generic' => 'Errore acchiate', |
724 | | - 'externalpages-bad-url' => "Recupere de l'URL fallite", |
725 | | - 'externalpages-bad-url-data' => "Recupere de le condenute d'a pàgene fallite", |
726 | 441 | ); |
727 | 442 | |
728 | 443 | /** Russian (Русский) |
— | — | @@ -730,15 +445,8 @@ |
731 | 446 | $messages['ru'] = array( |
732 | 447 | 'externalpages' => 'Внешние страницы', |
733 | 448 | 'externalpages-desc' => 'Извлекает и отображает страницы с других сайтов WMF', |
734 | | - 'externalpages-bad-year' => 'Указан неправильный год', |
735 | | - 'externalpages-bad-language' => 'Указан неправильный язык', |
736 | | - 'externalpages-bad-project' => 'Указан неправильный проект', |
737 | | - 'externalpages-no-project' => 'Не указан проект', |
738 | 449 | 'externalpages-bad-page' => 'Указана неправильная страница', |
739 | 450 | 'externalpages-no-page' => 'Не указана страница', |
740 | | - 'externalpages-error-generic' => 'Произошла ошибка', |
741 | | - 'externalpages-bad-url' => 'Не удалось получить URL', |
742 | | - 'externalpages-bad-url-data' => 'Не удалось получить содержание страницы', |
743 | 451 | ); |
744 | 452 | |
745 | 453 | /** Slovak (Slovenčina) |
— | — | @@ -747,15 +455,8 @@ |
748 | 456 | $messages['sk'] = array( |
749 | 457 | 'externalpages' => 'Externé stránky', |
750 | 458 | 'externalpages-desc' => 'Získa a zobrazí stránky zo vzdialených lokalít WMF', |
751 | | - 'externalpages-bad-year' => 'Uvedený chybný rok', |
752 | | - 'externalpages-bad-language' => 'Uvedený chybný jazyk', |
753 | | - 'externalpages-bad-project' => 'Uvedený chybný projekt', |
754 | | - 'externalpages-no-project' => 'Neuvedený projekt', |
755 | 459 | 'externalpages-bad-page' => 'Uvedená chybná stránka', |
756 | 460 | 'externalpages-no-page' => 'Neuvedená stránka', |
757 | | - 'externalpages-error-generic' => 'Vyskytla sa chyba', |
758 | | - 'externalpages-bad-url' => 'Nepodarilo sa získať URL', |
759 | | - 'externalpages-bad-url-data' => 'Nepodarilo sa získať obsah stránky', |
760 | 461 | ); |
761 | 462 | |
762 | 463 | /** Swedish (Svenska) |
— | — | @@ -765,15 +466,8 @@ |
766 | 467 | $messages['sv'] = array( |
767 | 468 | 'externalpages' => 'Externa sidor', |
768 | 469 | 'externalpages-desc' => 'Hämtar och visar sidor från externa WMF-sajter', |
769 | | - 'externalpages-bad-year' => 'Ogiltigt år angivet', |
770 | | - 'externalpages-bad-language' => 'Ogiltigt språk angivet', |
771 | | - 'externalpages-bad-project' => 'Ogiltigt projekt angivet', |
772 | | - 'externalpages-no-project' => 'Inget projekt angivet', |
773 | 470 | 'externalpages-bad-page' => 'Ogiltig sida angiven', |
774 | 471 | 'externalpages-no-page' => 'Ingen sida angiven', |
775 | | - 'externalpages-error-generic' => 'Stött på fel', |
776 | | - 'externalpages-bad-url' => 'Misslyckades med att hämta URL', |
777 | | - 'externalpages-bad-url-data' => 'Misslyckades med att hämta sidinnehåll', |
778 | 472 | ); |
779 | 473 | |
780 | 474 | /** Telugu (తెలుగు) |
— | — | @@ -781,9 +475,6 @@ |
782 | 476 | */ |
783 | 477 | $messages['te'] = array( |
784 | 478 | 'externalpages' => 'బయటి పేజీలు', |
785 | | - 'externalpages-bad-year' => 'తప్పుడు సంవత్సరాన్ని ఇచ్చారు', |
786 | | - 'externalpages-bad-language' => 'తప్పుడు భాషని ఇచ్చారు', |
787 | | - 'externalpages-no-project' => 'ప్రాజెక్టుని పేర్కొనలేదు', |
788 | 479 | 'externalpages-bad-page' => 'తప్పుడు పేజీని ఇచ్చారు', |
789 | 480 | 'externalpages-no-page' => 'పేజీని పేర్కొనలేదు', |
790 | 481 | ); |
— | — | @@ -794,15 +485,8 @@ |
795 | 486 | $messages['tk'] = array( |
796 | 487 | 'externalpages' => 'Daşarky Sahypalar', |
797 | 488 | 'externalpages-desc' => 'Uzak WMF saýtlaryndan sahypalary alýar we görkezýär', |
798 | | - 'externalpages-bad-year' => 'Nädogry ýyl görkezildi', |
799 | | - 'externalpages-bad-language' => 'Nädogry dil görkezildi', |
800 | | - 'externalpages-bad-project' => 'Nädogry taslama görkezildi', |
801 | | - 'externalpages-no-project' => 'Hiç hili taslama görkezilmedi', |
802 | 489 | 'externalpages-bad-page' => 'Nädogry sahypa görkezildi', |
803 | 490 | 'externalpages-no-page' => 'Hiç hili sahypa görkezilmedi', |
804 | | - 'externalpages-error-generic' => 'Säwlige duçar bolundy', |
805 | | - 'externalpages-bad-url' => 'URL almaklyk şowsuz', |
806 | | - 'externalpages-bad-url-data' => 'Sahypa mazmunyny almaklyk şowsuz', |
807 | 491 | ); |
808 | 492 | |
809 | 493 | /** Turkish (Türkçe) |
— | — | @@ -811,15 +495,8 @@ |
812 | 496 | $messages['tr'] = array( |
813 | 497 | 'externalpages' => 'Dış sayfalar', |
814 | 498 | 'externalpages-desc' => 'Uzak WMF sitelerinden sayfaları alır ve görüntüler', |
815 | | - 'externalpages-bad-year' => 'Yanlış yıl belirtildi', |
816 | | - 'externalpages-bad-language' => 'Yanlış dil belirtildi', |
817 | | - 'externalpages-bad-project' => 'Yanlış proje belirtildi', |
818 | | - 'externalpages-no-project' => 'Hiçbir proje belirtilmedi', |
819 | 499 | 'externalpages-bad-page' => 'Yanlış sayfa belirtildi', |
820 | 500 | 'externalpages-no-page' => 'Hiçbir sayfa belirtilmedi', |
821 | | - 'externalpages-error-generic' => 'Hatayla karşılaşıldı', |
822 | | - 'externalpages-bad-url' => 'URL alımı başarısız', |
823 | | - 'externalpages-bad-url-data' => 'Sayfa içeriği alımı başarısız', |
824 | 501 | ); |
825 | 502 | |
826 | 503 | /** Ukrainian (Українська) |
— | — | @@ -829,15 +506,8 @@ |
830 | 507 | $messages['uk'] = array( |
831 | 508 | 'externalpages' => 'Зовнішні сторінки', |
832 | 509 | 'externalpages-desc' => 'Отримує і показує сторінки з віддалених WMF сайтів', |
833 | | - 'externalpages-bad-year' => 'Неправильно вказаний рік', |
834 | | - 'externalpages-bad-language' => 'Неправильно вказана мова', |
835 | | - 'externalpages-bad-project' => 'Неправильно вказаний проект', |
836 | | - 'externalpages-no-project' => 'Не вказано проект', |
837 | 510 | 'externalpages-bad-page' => 'Неправильно вказана сторінка', |
838 | 511 | 'externalpages-no-page' => 'Не вказано сторінку', |
839 | | - 'externalpages-error-generic' => 'Виникла помилка', |
840 | | - 'externalpages-bad-url' => 'Не вдалося отримати URL', |
841 | | - 'externalpages-bad-url-data' => 'Не вдалося отримати зміст сторінки', |
842 | 512 | ); |
843 | 513 | |
844 | 514 | /** Vèneto (Vèneto) |
— | — | @@ -846,15 +516,8 @@ |
847 | 517 | $messages['vec'] = array( |
848 | 518 | 'externalpages' => 'Pagine esterne', |
849 | 519 | 'externalpages-desc' => 'Recupera e fà védar pagine da siti WMF remoti', |
850 | | - 'externalpages-bad-year' => 'Ano mia giusto', |
851 | | - 'externalpages-bad-language' => 'Lengua mia giusta', |
852 | | - 'externalpages-bad-project' => 'Projeto mia giusto', |
853 | | - 'externalpages-no-project' => 'Nissun projeto indicà', |
854 | 520 | 'externalpages-bad-page' => 'Pagina mia giusta', |
855 | 521 | 'externalpages-no-page' => 'Nissuna pagina indicà', |
856 | | - 'externalpages-error-generic' => 'Xe vegnesto fora un eròr', |
857 | | - 'externalpages-bad-url' => "No se riesse a recuperar l'URL", |
858 | | - 'externalpages-bad-url-data' => 'No se riesse a recuperar el contenuto de la pagina', |
859 | 522 | ); |
860 | 523 | |
861 | 524 | /** Vietnamese (Tiếng Việt) |
— | — | @@ -863,28 +526,19 @@ |
864 | 527 | $messages['vi'] = array( |
865 | 528 | 'externalpages' => 'Trang ngoài', |
866 | 529 | 'externalpages-desc' => 'Lấy và hiển thị nội dung của các trang khác trực thuộc Quỹ Wikimedia', |
867 | | - 'externalpages-bad-year' => 'Đã định rõ năm không hợp lệ', |
868 | | - 'externalpages-bad-language' => 'Đã định rõ ngôn ngữ không hợp lệ', |
869 | | - 'externalpages-bad-project' => 'Đã định rõ dự án không hợp lệ', |
870 | | - 'externalpages-no-project' => 'Chưa định rõ dự án', |
871 | 530 | 'externalpages-bad-page' => 'Đã định rõ trang không hợp lệ', |
872 | 531 | 'externalpages-no-page' => 'Chưa định rõ trang', |
873 | | - 'externalpages-error-generic' => 'Đã gặp lỗi', |
874 | | - 'externalpages-bad-url' => 'Không thể truy cập URL', |
875 | | - 'externalpages-bad-url-data' => 'Không thể lấy nội dung trang', |
876 | 532 | ); |
877 | 533 | |
878 | 534 | /** Simplified Chinese (中文(简体)) |
879 | 535 | * @author Liangent |
880 | 536 | */ |
881 | 537 | $messages['zh-hans'] = array( |
882 | | - 'externalpages-bad-url-data' => '获取页面内容失败', |
883 | 538 | ); |
884 | 539 | |
885 | 540 | /** Traditional Chinese (中文(繁體)) |
886 | 541 | * @author Liangent |
887 | 542 | */ |
888 | 543 | $messages['zh-hant'] = array( |
889 | | - 'externalpages-bad-url-data' => '獲取頁面內容失敗', |
890 | 544 | ); |
891 | 545 | |
Index: trunk/extensions/ExternalPages/ExternalPages.php |
— | — | @@ -11,14 +11,48 @@ |
12 | 12 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 3.0 or later |
13 | 13 | */ |
14 | 14 | |
15 | | -if ( !defined( 'MEDIAWIKI' ) ) { |
16 | | - echo <<<EOT |
17 | | -To install the ExternalPages extension, put the following line in LocalSettings.php: |
18 | | -require_once( "\$IP/extensions/ExternalPages/SpecialExternalPages.php" ); |
19 | | -EOT; |
20 | | - exit( 1 ); |
21 | | -} |
| 15 | +/** Configuration */ |
22 | 16 | |
| 17 | +/** |
| 18 | + * Expiry time for the server-side source cache and the squid cache, in seconds |
| 19 | + */ |
| 20 | +$wgExternalPagesCacheExpiry = 600; |
| 21 | + |
| 22 | +/** |
| 23 | + * Allowed page configuration. |
| 24 | + * This should be a map of local subpage name to a remote page info structure. |
| 25 | + * Valid keys in the remote page structure are: |
| 26 | + * site: A site as specified in $wgExternalPagesSites |
| 27 | + * title: The full page title, as you would use in an internal link |
| 28 | + * |
| 29 | + * For example: |
| 30 | + * |
| 31 | + * $wgExternalPages = array( |
| 32 | + * 'news' => array( |
| 33 | + * 'site' => 'wmf', |
| 34 | + * 'title' => 'Current events' |
| 35 | + * ) |
| 36 | + * ); |
| 37 | + * |
| 38 | + * Then this page becomes accessible via [[Special:ExternalPages/news]]. |
| 39 | + */ |
| 40 | +$wgExternalPages = array(); |
| 41 | + |
| 42 | +/** |
| 43 | + * Site configuration |
| 44 | + * Allowed keys are: |
| 45 | + * scriptUrl: the URL of index.php |
| 46 | + * |
| 47 | + * Example: |
| 48 | + * |
| 49 | + * $wgExternalPagesSites = array( |
| 50 | + * 'wmf' => array( 'scriptUrl' => 'http://wikimediafoundation.org/w/index.php' ) |
| 51 | + * ); |
| 52 | + */ |
| 53 | +$wgExternalPagesSites = array(); |
| 54 | + |
| 55 | +/** Registration */ |
| 56 | + |
23 | 57 | // Extension credits that will show up on Special:Version |
24 | 58 | $wgExtensionCredits['specialpage'][] = array( |
25 | 59 | 'name' => 'ExternalPages', |
— | — | @@ -36,15 +70,3 @@ |
37 | 71 | $wgAutoloadClasses['ExternalPages'] = $dir . 'ExternalPages_body.php'; |
38 | 72 | |
39 | 73 | $wgSpecialPages['ExternalPages'] = 'ExternalPages'; |
40 | | -$wgSpecialPageGroups['ExternalPages'] = 'users'; |
41 | | -$wgHooks['LanguageGetSpecialPageAliases'][] = 'externalPagesLocalizedPageName'; |
42 | | - |
43 | | -function externalPagesLocalizedPageName( &$specialPageArray, $code ) { |
44 | | - wfLoadExtensionMessages( 'ExternalPages' ); |
45 | | - $text = wfMsg( 'externalpages' ); |
46 | | - |
47 | | - # Convert from title in text form to DBKey and put it into the alias array: |
48 | | - $title = Title::newFromText( $text ); |
49 | | - $specialPageArray['ExternalPages'][] = $title->getDBKey(); |
50 | | - return true; |
51 | | -} |
\ No newline at end of file |