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

View this page in Last updated: Sun, 01 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Translation2_Admin::add()

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

Descripción

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:


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

Parámetro

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.

Valor devuelto

returns true on success, PEAR_Error on failure

Nota

Esta función no puede ser llamada estáticamente.

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

Download Documentation Last updated: Sun, 01 Jul 2007
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.