Translation2_Admin::add()

Translation2_Admin::add() -- add a new translation

Synopsis

require_once 'Admin.php';

mixed Translation2_Admin::add (string $stringID [, string $pageID = NULL, array $stringArray])

Описание

Add a new translated string (or a set of translated strings) for a given stringID. For instance, to add the English, Spanish and Italian translations for the stringID 'example', use the following code:
$stringArray = array(
    'en' => 'example',
    'es' => 'ejemplo',
    'it' => 'esempio',
);
$tr->add('example', 'mypage', $stringArray);

Параметр

string $stringID

identificator for the string

string $pageID

destination pageID, i.e. the group of strings where this string belongs to.

array $stringArray

Associative array with string translations.

Возвращаемое значение

returns true on success, PEAR_Error on failure

Заметка

Эта функция не должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ