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