Changeset 22099 for branches/version-2_12-multilang/data/smarty_extends
- Timestamp:
- 2012/11/16 14:34:39 (14 years ago)
- Location:
- branches/version-2_12-multilang/data/smarty_extends
- Files:
-
- 2 edited
-
function.t.php (modified) (2 diffs)
-
function.t_plural.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/smarty_extends/function.t.php
r22005 r22099 19 19 */ 20 20 function smarty_function_t($params, &$smarty) { 21 // 多言語対応用の関数が定義されていなければエラーを出力 22 if (!function_exists('t')) { 23 $smarty->_trigger_fatal_error("[plugin] function 't' is not defined"); 24 return; 25 } 26 21 27 // エイリアスが無ければエラーを出力 22 28 if (empty($params['string'])) { … … 40 46 } 41 47 42 return SC_I18n_Ex::t($string, $params, $options);48 return t($string, $params, $options); 43 49 } -
branches/version-2_12-multilang/data/smarty_extends/function.t_plural.php
r22005 r22099 19 19 */ 20 20 function smarty_function_t_plural($params, &$smarty) { 21 // 多言語対応用の関数が定義されていなければエラーを出力 22 if (!function_exists('t_plural')) { 23 $smarty->_trigger_fatal_error("[plugin] function 't_plural' is not defined"); 24 return; 25 } 26 21 27 // 書式判定用の数値が無ければエラーを出力 22 28 if (empty($params['counter'])) { … … 54 60 } 55 61 56 return SC_I18n_Ex::t_plural($counter, $single, $plural, $params, $options);62 return t_plural($counter, $single, $plural, $params, $options); 57 63 }
Note: See TracChangeset
for help on using the changeset viewer.
