previousClass Summary Translation2_Admin (Previous) (Next) Translation2_Admin::updateLangnext

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Translation2_Admin::addLang

Translation2_Admin::addLang() – Prepare the storage container for a new lang.

Synopsis

require_once 'Admin.php';

mixed Translation2_Admin::addLang ( array $langData , array $options )

Description

If the langsAvail table doesn't exist yet, it is created.

Parameter

array $langData


array(
    'lang_id'    => 'en',
    'table_name' => 'i18n',
    'name'       => 'english',
    'meta'       => 'some meta info',
    'error_text' => 'not available',
    'encoding'   => 'iso-8859-1',
);

array $options


array(
    'charset'   => 'latin1',
    'collation' => 'latin1_bin',
);

Return value

returns true on success, PEAR_Error on failure

Note

This function can not be called statically.

previousClass Summary Translation2_Admin (Previous) (Next) Translation2_Admin::updateLangnext

Download Documentation Last updated: Tue, 02 Jun 2009
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.