Source for file modifier.i18n.php

Documentation is available at modifier.i18n.php

  1. <?php
  2. /**
  3.  *  smarty modifier:i18nフィルタ
  4.  *
  5.  *  sample:
  6.  *  <code>
  7.  *  {"english"|i18n}
  8.  *  </code>
  9.  *  <code>
  10.  *  英語
  11.  *  </code>
  12.  *
  13.  *  @param  string  $string i18n処理対象の文字列
  14.  *  @return string  ロケールに対応したメッセージ
  15.  */
  16. function smarty_modifier_i18n($string)
  17. {
  18.     $c Ethna_Controller::getInstance();
  19.  
  20.     $i18n $c->getI18N();
  21.  
  22.     return $i18n->get($string);
  23. }

Documentation generated on Fri, 11 Nov 2011 03:58:44 +0900 by phpDocumentor 1.4.3