Translation2::get

Translation2::get() – 翻訳された文字列を取得する

Synopsis

require_once 'Translation2.php';

string Translation2::get ( string $stringID , string $pageID = TRANSLATION2_DEFAULT_PAGEID , string $langID = = null , string $defaultText = '' )

Description

コンテナから文字列を取得します。文字列が空で DefaultText デコレータが使用されている場合は、$defaultText が返されます。

Parameter

string $stringID

string $pageID

string $langID

string $defaultText

文字列が空の場合に表示されるテキスト。 注意: このパラメータは、DefaultText デコレータでのみ使用されます。

Note

This function can not be called statically.