Translation2_Admin::addLang()
Translation2_Admin::addLang() -- Prepare the storage container for a new lang.
概要
require_once 'Admin.php'; |
mixed Translation2_Admin::addLang (array $langData)
説明
If the langsAvail table doesn't exist yet, it is created.
パラメータ
- array
$langData
array(
'lang_id' => 'en',
'table_name' => 'i18n',
'name' => 'english',
'meta' => 'some meta info',
'error_text' => 'not available',
'encoding' => 'iso-8859-1',
); |
返り値
returns true on success, PEAR_Error on failure
注意
この関数は、スタティックにコールする
ことはできません。