當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Lang::_dictionary方法代碼示例

本文整理匯總了PHP中Lang::_dictionary方法的典型用法代碼示例。如果您正苦於以下問題:PHP Lang::_dictionary方法的具體用法?PHP Lang::_dictionary怎麽用?PHP Lang::_dictionary使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Lang的用法示例。


在下文中一共展示了Lang::_dictionary方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __load

 private function __load($path, $lang, $clear = false)
 {
     if ((bool) $clear === true || !self::$_dictionary instanceof Dictionary) {
         self::$_dictionary = new Dictionary(array());
         self::$_transliterations = array();
     }
     $include = sprintf($path, $lang);
     if (file_exists($include)) {
         require $include;
     }
     if (is_array($dictionary)) {
         self::$_dictionary->merge($dictionary);
     }
     if (is_array($transliterations)) {
         self::$_transliterations = array_merge(self::$_transliterations, $transliterations);
     }
     if (empty(self::$_transliterations)) {
         include TOOLKIT . '/include.transliterations.php';
         self::$_transliterations = $transliterations;
     }
 }
開發者ID:njmcgee,項目名稱:taxcheck,代碼行數:21,代碼來源:class.lang.php

示例2: initialize

 /**
  * Initialize dictionary, transliterations and dates array
  */
 public static function initialize()
 {
     self::$_dictionary = new Dictionary();
     self::$_transliterations = array();
     self::$_dates = array();
 }
開發者ID:scottkf,項目名稱:keepflippin--on-symphony,代碼行數:9,代碼來源:class.lang.php

示例3: clear

 /**
  * Clear the current dictionary and transliteration arrays
  */
 public static function clear()
 {
     self::$_dictionary = new Dictionary(array());
     self::$_transliterations_character_replacements = array();
     self::$_transliterations_pattern_replacements = array();
 }
開發者ID:symphonycms,項目名稱:symphony-3,代碼行數:9,代碼來源:class.lang.php

示例4: clear

 /**
  * Clear the current dictionary and transliteration arrays
  */
 public static function clear()
 {
     self::$_dictionary = new Dictionary(array());
     self::$_transliterations = array();
 }
開發者ID:klaftertief,項目名稱:sym-forum,代碼行數:8,代碼來源:class.lang.php

示例5: load

 /**
  * Load language file. Each language file contains three arrays:
  * about, dictionary and transliterations.
  *
  * @param string $path
  *  Path of the language file that should be loaded
  */
 private static function load($path)
 {
     // Load language file
     if (file_exists($path)) {
         require $path;
     }
     // Populate dictionary ($dictionary is declared inside $path)
     if (isset($dictionary) && is_array($dictionary)) {
         self::$_dictionary = array_merge(self::$_dictionary, $dictionary);
     }
     // Populate transliterations ($transliterations is declared inside $path)
     if (isset($transliterations) && is_array($transliterations)) {
         self::$_transliterations = array_merge(self::$_transliterations, $transliterations);
     }
 }
開發者ID:nickdunn,項目名稱:elasticsearch-surfin-shakespeare,代碼行數:22,代碼來源:class.lang.php


注:本文中的Lang::_dictionary方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。