Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 774 Bytes
<?php
namespace russian;
class Controller_Translation extends \AbstractController {
function init(){
parent::init();
$this->api->addHook('localizeString',$this);
}
function localizeString($f,$s){
switch($s){
// translations
case'':return '';
case'test':return 'тест';
case'params':return 'парамтры';
case'Database Connection Failed':return 'Oshibka podkluchenija k baze dannih';
case'Configuration parameter is missing in config.php':return 'Отсутствует строка конфигурации в config.php';
default:
$this->api->logger->logLine($s."\n",null,'notrans');
return $s;
}
}
}