Translation2_Admin::addLang

Translation2_Admin::addLang()

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

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',
);

Return value

returns true on success, PEAR_Error on failure

Note

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.