Location: PHPKode > projects > Agile Toolkit > atk4-atk4-addons-5a69383/russian/lib/Controller/Translation.php
<?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;
        }
    }
}
Return current item: Agile Toolkit