mixed Translation2_Admin::add (
string $stringID
, string $pageID
= = null
, array $stringArray
)
stringID に対応する
新しい翻訳文字列 (あるいは複数の翻訳文字列の組) を追加します。
例えば、stringID 'example' に対応する
英語、スペイン語そしてイタリア語の翻訳を追加するには、次のコードを使用します。
<?php
$stringArray = array(
'en' => 'example',
'es' => 'ejemplo',
'it' => 'esempio',
);
$tr->add('example', 'mypage', $stringArray);
?>
$stringID
文字列の ID。
$pageID
対象の pageID (この文字列が属する文字列グループ)。
$stringArray
翻訳文字列の連想配列。
成功した場合に true、失敗した場合に PEAR_Error を返します。
This function can not be called statically.