<?php class TranslateSwedish extends TranslateService { function __construct($botUsername,$botToken,$webhookUrl) { parent::__construct($botUsername,$botToken,$webhookUrl); $this->db = new SwedishDatabaseHandler($this); $this->ttsService = new TTSSwedisch($this); $this->accessManager = new AccessSwedish($this); $this->intentService = new SwedishIntentService($this); } function getDB(): SwedishDatabaseHandler { return $this->db; } public function getTranslatedText($word) { $this->getDB()->getTrnslations ( $word, $this->getLang($word) ); $translatedText = $this->getDB()->makeTranslationTextMessage(false); $this->translated = $this->getDB()->translated; if(!$this->translated && false){ $this->getSearchService()->getSoundexSuggestions($word); } return $translatedText; } } ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
db | Folder | 0755 |
|
|
AccessSwedish.class.php | File | 1.37 KB | 0755 |
|
SwedisIntentService.class.php | File | 361 B | 0755 |
|
SwedishInviteInline.class.php | File | 1.6 KB | 0755 |
|
SwedishStart.intent.class.php | File | 2.36 KB | 0755 |
|
TTSSwedish.class.php | File | 1.57 KB | 0755 |
|
TranslateSwedish.class.php | File | 872 B | 0755 |
|
loaderswedish.php | File | 537 B | 0755 |
|