* 该语言包适用版本:ThinkPHP 3.0 Release 2012/3/5
除了lang文件夹,其它有中文的地方:
/ThinkPHP/Tpl/dispatch_jump.tpl
/ThinkPHP/Extend/Engine/Sae/Common/functions.php
/ThinkPHP/Common/functions.php
在conf文件里面配置一下语言,再把相关的文件放到对应的位置即可
主要内核翻译:
return array(
// CORE
'_MODULE_NOT_EXIST_'=> 'Can not load module',
'_ERROR_ACTION_'=> 'Invalid operation',
'_LANGUAGE_NOT_LOAD_'=> 'Can not load language pack',
'_TEMPLATE_NOT_EXIST_'=> 'Template does not exist',
'_MODULE_'=>'module',
'_ACTION_'=>'action',
'_ACTION_NOT_EXIST_'=>'Controller not existed or not defined',
'_MODEL_NOT_EXIST_'=>'Model not existed or not defined',
'_VALID_ACCESS_'=>'no privilege',
'_XML_TAG_ERROR_'=>'XML tag error',
'_DATA_TYPE_INVALID_'=>'Invalid data object',
'_OPERATION_WRONG_'=>'wrong operation',
'_NOT_LOAD_DB_'=>'Can not load database',
'_NOT_SUPPORT_DB_'=>'System not support database',
'_NO_DB_CONFIG_'=>'No database config',
'_NOT_SUPPERT_'=>'Not support',
'_CACHE_TYPE_INVALID_'=>'Cache type invalid',
'_FILE_NOT_WRITEABLE_'=>'file not writable',
'_METHOD_NOT_EXIST_'=>'the request method does not exist',
'_CLASS_NOT_EXIST_'=>'class not exist',
'_CLASS_CONFLICT_'=>'class name conflict',
'_TEMPLATE_ERROR_'=>'Template engine error',
'_CACHE_WRITE_ERROR_'=>'cache write error',
'_TAGLIB_NOT_EXIST_'=>'tag library not exist',
'_OPERATION_FAIL_'=>'Operation failed',
'_OPERATION_SUCCESS_'=>'Operation succeed',
'_SELECT_NOT_EXIST_'=>'the select record does not exist',
'_EXPRESS_ERROR_'=>'Expression error',
'_TOKEN_ERROR_'=>'Form token error',
'_RECORD_HAS_UPDATE_'=>'the record is updated',
'_NOT_ALLOW_PHP_'=>'PHP code is not allowed in template',
);