public static function transliterate($str) { $ret = $str; $transliteration = Page::transliteration(); if (is_array($transliteration) && !empty($transliteration)) { $ret = str_replace($transliteration[0], $transliteration[1], $str); } return $ret; }
?> ", deleteWidgetAndPage: "<?php echo Yii::t('cms', 'Delete the widget and the whole page (where\'s widget located)'); ?> ", deleteRecordWarning: "<?php echo Yii::t('cms', 'Are you really want delete this record?'); ?> " }; function cmsTransliterate(str) { var ret = str; <?php $transliteration = Page::transliteration(); if (is_array($transliteration) && !empty($transliteration)) { ?> var _from = <?php echo CJavaScript::encode($transliteration[0]); ?> ; var _to = <?php echo CJavaScript::encode($transliteration[1]); ?> ; ret = cmsStrReplace(_from, _to, str); <?php } ?> return ret;