Class Ethna_I18N

Description

i18n関連の処理を行うクラス

Located in /class/I18N.php (line 45)


	
			
Variable Summary
 mixed $appid
 mixed $ctl
 mixed $locale
 mixed $locale_dir
 mixed $logger
 mixed $messages
 mixed $use_gettext
Method Summary
 static void setTimeZone ([string $timezone = 'UTC'])
 Ethna_I18N __construct (string $locale_dir, string $appid)
 string get (string $msg)
 array parseEthnaMsgCatalog (string $file)
 void setLanguage (string $locale, [string $systemencoding = null], [string $clientencoding = null])
Variables
mixed $appid (line 64)
  • access: protected
mixed $clientencoding (line 70)
  • access: protected
mixed $ctl (line 52)
  • access: protected
mixed $locale (line 58)
  • access: protected
mixed $locale_dir (line 61)
  • access: protected
mixed $logger (line 76)
  • access: protected
mixed $messages (line 73)
  • access: protected
mixed $systemencoding (line 67)
  • access: protected
mixed $use_gettext (line 55)
  • access: protected
Methods
static setTimeZone (line 118)

タイムゾーンを設定する PHP 5.1.0 以前では 無意味なので呼ぶ必要がありません。

void setTimeZone ([string $timezone = 'UTC'])
  • string $timezone: タイムゾーン名(e.x Asia/Tokyo)
Constructor __construct (line 87)

Ethna_I18Nクラスのコンストラクタ

  • access: public
Ethna_I18N __construct (string $locale_dir, string $appid)
  • string $locale_dir: プロジェクトのロケールディレクトリ
  • string $appid: アプリケーションID
get (line 163)

メッセージカタログからロケールに適合するメッセージを取得する

  • return: ロケールに適合するメッセージ
  • access: public
string get (string $msg)
  • string $msg: メッセージ
parseEthnaMsgCatalog (line 274)

Ethna独自のメッセージカタログをparseする

  • return: 読み込んだメッセージカタログ。失敗した場合は空の配列
  • access: public
array parseEthnaMsgCatalog (string $file)
  • string $file: メッセージカタログファイル名
setLanguage (line 136)

ロケール、言語設定を設定する

void setLanguage (string $locale, [string $systemencoding = null], [string $clientencoding = null])
  • string $locale: ロケール名(e.x ja_JP, en_US 等) (ll_cc の形式。ll = 言語コード cc = 国コード)
  • string $systemencoding: システムエンコーディング名
  • string $clientencoding: クライアントエンコーディング名 (=テンプレートのエンコーディングと考えてよい)

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