/** * 添加更多翻译 * * - 为扩展类库或者外部提供更方便的方式追加翻译的内容 * * @param string $path 待追加的路径 * @return NULL */ public static function addMessage($path) { $moreMessagePath = self::getMessageFilePath($path, self::$language); if (file_exists($moreMessagePath)) { self::$message = array_merge(self::$message, include $moreMessagePath); } }
public static function setLanguageNameSimple($lan) { PhalApi_Translator::$message = null; }