<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                1.多語言通過行為Behavior支持/ThinkPHP/Library/Behavior/CheckLangBehavior.class.php 2.語言包一共有4種,后定義的要覆蓋先定義的(類似配置文件Config.php覆蓋/ThinkPHP/Conf/convention.php) 3.在config.php里面開啟多語言支持 ~~~ 'LANG_SWITCH_ON' => true, // 開啟語言包功能 'LANG_AUTO_DETECT' => true, // 自動偵測語言開啟多語言功能后有效 'LANG_LIST' => 'zh-cn,zh-tw', // 允許切換的語言列表用逗號分隔 'VAR_LANGUAGE' => 'la', // 默認語言切換變量 ~~~ 4.確保行為Behavior代碼執行 4.1手動啟動該CheckLangBehavior.class.php行為 4.2 home/Common/conf/tags.php ~~~ <?php returnarray( // 添加下面一行定義即可 // 'app_begin' =>array('Behavior\CheckLang'), // 如果是3.2.1版本 需要改成 // 'app_begin' =>array('Behavior\CheckLangBehavior'), ); ~~~ 5語言包4個等級 "./ThinkPHP/Lang/zh-cn.php"//默認調用的語言包 "./Application/Common/Lang/zh-cn.php"//讀取公共語言包 "./Application/Home/Lang/zh-cn.php"//讀取指定模塊語言包 "./Application/Home/Lang/zh-cn/index.php"//讀取指定模塊具體控制器對于的語言包 6獲取語言變量信息 6.1 L()快捷函數獲取所有的語言變量 6.2 Assign()傳遞語言變量到模版進行輸出 6.3 {$Think.lang.變量名稱 } 6.4 每個語言對應一個語言包 7URL訪問和展示 cn的訪問路徑:http://localhost/index.php/home/Index/index/la/zh-cn tw的訪問路徑:http://127.0.0.1/index.php/home/Index/index/la/zh-tw
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看