Translation2_Admin::removeLang (Previous) (Next) Translation2_Admin::remove

View this page in Last updated: Sun, 31 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Translation2_Admin::add()

Translation2_Admin::add() -- 新しい翻訳を追加する

説明

stringID に対応する 新しい翻訳文字列 (あるいは複数の翻訳文字列の組) を追加します。 例えば、stringID 'example' に対応する 英語、スペイン語そしてイタリア語の翻訳を追加するには、次のコードを使用します。


<?php
$stringArray = array(
    'en' => 'example',
    'es' => 'ejemplo',
    'it' => 'esempio',
);
$tr->add('example''mypage'$stringArray);
?>

パラメータ

string $stringID

文字列の ID。

string $pageID

対象の pageID (この文字列が属する文字列グループ)。

array $stringArray

翻訳文字列の連想配列。

返り値

成功した場合に true、失敗した場合に PEAR_Error を返します。

注意

この関数は、スタティックにコールする ことはできません。

Translation2_Admin::removeLang (Previous) (Next) Translation2_Admin::remove

Download Documentation Last updated: Sun, 31 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.