Index: trunk/extensions/FeaturedFeeds/FeaturedFeeds.body.php |
— | — | @@ -298,7 +298,7 @@ |
299 | 299 | } |
300 | 300 | |
301 | 301 | public function init() { |
302 | | - global $wgLanguageCode, $wgContLang; |
| 302 | + global $wgContLang; |
303 | 303 | if ( $this->title !== false ) { |
304 | 304 | return; |
305 | 305 | } |
— | — | @@ -313,14 +313,6 @@ |
314 | 314 | } |
315 | 315 | $pageMsg = $this->msg( $this->options['page'] )->params( $this->language->getCode() ); |
316 | 316 | if ( $pageMsg->isDisabled() ) { |
317 | | - // fall back manually, messages can be existent but empty |
318 | | - if ( $this->language->getCode() != $wgLanguageCode ) { |
319 | | - $pageMsg = wfMessage( $this->options['page'] ) |
320 | | - ->params( $this->language->getCode() ) |
321 | | - ->inContentLanguage(); |
322 | | - } |
323 | | - } |
324 | | - if ( $pageMsg->isDisabled() ) { |
325 | 317 | return; |
326 | 318 | } |
327 | 319 | $this->page = $pageMsg->plain(); |
Index: trunk/extensions/FeaturedFeeds/FeaturedFeeds.i18n.php |
— | — | @@ -20,42 +20,36 @@ |
21 | 21 | 'ffeed-invalid-timestamp' => 'Invalid feed timestamp', |
22 | 22 | |
23 | 23 | # Featured Article |
24 | | - 'ffeed-featured-page' => '', # do not localise |
25 | 24 | 'ffeed-featured-title' => '{{SITENAME}} featured articles feed', |
26 | 25 | 'ffeed-featured-short-title' => 'Featured articles', |
27 | 26 | 'ffeed-featured-desc' => 'Best articles {{SITENAME}} has to offer', |
28 | 27 | 'ffeed-featured-entry' => '{{LOCALMONTHNAME}} {{LOCALDAY}} {{SITENAME}} featured article', |
29 | 28 | |
30 | 29 | # On this day... |
31 | | - 'ffeed-onthisday-page' => '', # do not localise |
32 | 30 | 'ffeed-onthisday-title' => '{{SITENAME}} "On this day..." feed', |
33 | 31 | 'ffeed-onthisday-short-title' => 'On this day...', |
34 | 32 | 'ffeed-onthisday-desc' => 'Historical events on this day', |
35 | 33 | 'ffeed-onthisday-entry' => 'On this day: {{LOCALMONTHNAME}} {{LOCALDAY}}', |
36 | 34 | |
37 | 35 | # Did You Know? |
38 | | - 'ffeed-dyk-page' => '', # do not localise |
39 | 36 | 'ffeed-dyk-title' => '{{SITENAME}} "Did You Know?" feed', |
40 | 37 | 'ffeed-dyk-short-title' => 'Did you know?', |
41 | 38 | 'ffeed-dyk-desc' => "From {{SITENAME}}'s newest content", |
42 | 39 | 'ffeed-dyk-entry' => 'Did you know?: {{LOCALMONTHNAME}} {{LOCALDAY}}', |
43 | 40 | |
44 | 41 | // Media Of The Day |
45 | | - 'ffeed-motd-page' => '', # do not localise |
46 | 42 | 'ffeed-motd-title' => '{{SITENAME}} media of the day feed', |
47 | 43 | 'ffeed-motd-short-title' => 'Media of the day', |
48 | 44 | 'ffeed-motd-desc' => 'Some of the finest media on {{SITENAME}}', |
49 | 45 | 'ffeed-motd-entry' => '{{SITENAME}} media of the day for {{LOCALMONTHNAME}} {{LOCALDAY}}', |
50 | 46 | |
51 | 47 | # Picture Of The Day |
52 | | - 'ffeed-potd-page' => '', # do not localise |
53 | 48 | 'ffeed-potd-title' => '{{SITENAME}} picture of the day feed', |
54 | 49 | 'ffeed-potd-short-title' => 'Picture of the day', |
55 | 50 | 'ffeed-potd-desc' => 'Some of the finest images on {{SITENAME}}', |
56 | 51 | 'ffeed-potd-entry' => '{{SITENAME}} picture of the day for {{LOCALMONTHNAME}} {{LOCALDAY}}', |
57 | 52 | |
58 | 53 | # Quote of the Day |
59 | | - 'ffeed-qotd-page' => '', # do not localise |
60 | 54 | 'ffeed-qotd-title' => '{{SITENAME}} quote of the day feed', |
61 | 55 | 'ffeed-qotd-short-title' => 'Quote of the day', |
62 | 56 | 'ffeed-qotd-desc' => 'Some of the finest quotes on {{SITENAME}}', |