- Timestamp:
- 2012/11/16 14:34:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.