Ignore:
Timestamp:
2012/11/16 14:34:39 (12 years ago)
Author:
pineray
Message:

#163 (テキスト出力多言語対応)

文字列変換用の関数をグローバルに変更.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang/data/smarty_extends/function.t_plural.php

    r22005 r22099  
    1919 */ 
    2020function 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 
    2127    // 書式判定用の数値が無ければエラーを出力 
    2228    if (empty($params['counter'])) { 
     
    5460    } 
    5561 
    56     return SC_I18n_Ex::t_plural($counter, $single, $plural, $params, $options); 
     62    return t_plural($counter, $single, $plural, $params, $options); 
    5763} 
Note: See TracChangeset for help on using the changeset viewer.