mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
[WikipediaBridge] Add Russian Version (#2529)
This commit is contained in:
parent
50bab079e1
commit
2ade568a84
@ -17,6 +17,7 @@ class WikipediaBridge extends BridgeAbstract {
|
||||
'exampleValue' => 'English',
|
||||
'values' => array(
|
||||
'English' => 'en',
|
||||
'Русский' => 'ru',
|
||||
'Dutch' => 'nl',
|
||||
'Esperanto' => 'eo',
|
||||
'French' => 'fr',
|
||||
@ -267,6 +268,24 @@ class WikipediaBridge extends BridgeAbstract {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation for ru.wikipedia.org
|
||||
*/
|
||||
private function getContentsRu($html, $subject, $fullArticle){
|
||||
switch($subject) {
|
||||
case WIKIPEDIA_SUBJECT_TFA:
|
||||
$element = $html->find('div[id=main-tfa]', 0);
|
||||
$this->addTodaysFeaturedArticleGeneric($element, $fullArticle, -1);
|
||||
break;
|
||||
case WIKIPEDIA_SUBJECT_DYK:
|
||||
$element = $html->find('div[id=main-dyk]', 0);
|
||||
$this->addDidYouKnowGeneric($element, $fullArticle);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation for eo.wikipedia.org
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user