Translation2_Admin::update

Translation2_Admin::update() – Update an existing translation.

Synopsis

require_once 'Admin.php';

mixed Translation2_Admin::update ( string $stringID , string $pageID , array $stringArray )

Description

Update the language details.

Parameter

string $stringID

ID of the string to translate

string $pageID

ID of the page (or group) the string to translate belongs to

array $stringArray

Associative array with string translations:


array(
    'en' => 'sample',
    'it' => 'esempio',
);

Return value

returns true on success, PEAR_Error on failure

Note

This function can not be called statically.

remove a translated string (Previous) remove all the translated strings in a page/group (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.