You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
771 B
35 lines
771 B
<?php |
|
if (!defined('__TYPECHO_ROOT_DIR__')) exit; |
|
|
|
/** |
|
* Language.php |
|
* Author : hewro |
|
* Date : 2017/04/23 |
|
* Version : |
|
* Description: |
|
*/ |
|
abstract class Lang { |
|
|
|
public function locale() {//获取类的名称,只保留 local code |
|
$c = get_called_class(); |
|
$c = str_replace('Usr_', '', $c); |
|
$c = str_replace('Lang_', '', $c); |
|
$c = str_replace('Settings_', '', $c); |
|
return $c; |
|
} |
|
|
|
/** |
|
* @return string 返回语言名称 |
|
*/ |
|
public abstract function name(); |
|
|
|
/** |
|
* @return string 返回日期的格式化字符串 |
|
*/ |
|
public abstract function dateFormat(); |
|
|
|
/** |
|
* @return array 返回包含翻译文本的数组 |
|
*/ |
|
public abstract function translated(); |
|
}
|
|
|