mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
WikipediaBridge: Added russian version (#2184)
This commit is contained in:
parent
76ade41543
commit
f7af2beb79
@ -17,6 +17,7 @@ class WikipediaBridge extends BridgeAbstract {
|
|||||||
'exampleValue' => 'English',
|
'exampleValue' => 'English',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
'English' => 'en',
|
'English' => 'en',
|
||||||
|
'Русский' => 'ru',
|
||||||
'Dutch' => 'nl',
|
'Dutch' => 'nl',
|
||||||
'Esperanto' => 'eo',
|
'Esperanto' => 'eo',
|
||||||
'French' => 'fr',
|
'French' => 'fr',
|
||||||
@ -266,7 +267,27 @@ class WikipediaBridge extends BridgeAbstract {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implementation for ru.wikipedia.org
|
||||||
|
*/
|
||||||
|
private function getContentsEn($html, $subject, $fullArticle){
|
||||||
|
switch($subject) {
|
||||||
|
case WIKIPEDIA_SUBJECT_TFA:
|
||||||
|
$element = $html->find('div[id=mp-tfa]', 0);
|
||||||
|
$this->addTodaysFeaturedArticleGeneric($element, $fullArticle, -1);
|
||||||
|
break;
|
||||||
|
case WIKIPEDIA_SUBJECT_DYK:
|
||||||
|
$element = $html->find('div[id=mp-dyk]', 0);
|
||||||
|
$this->addDidYouKnowGeneric($element, $fullArticle);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation for eo.wikipedia.org
|
* Implementation for eo.wikipedia.org
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user