PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Internationalization » Translation2 » Bug #5142

Bug in removeLang

Details

Submitted2005-08-18 16:31 UTC
Fromkay at ct-gzsz dot de
Assignedquipo
StatusClosed
PackageTranslation2
PHP Version5.0.4
OSDebian 3.1
Roadmaps(Not assigned)

Comments

[2005-08-18 16:31 UTC] kay at ct-gzsz dot de

Description:
------------
I have 2 languages (de, en), when I remove en, then the packuage droped the table translate

Test script:
---------------
$dbinfo = array(
'hostspec' => _DBHOST,
'database' => _DBDB,
'phptype' => _DBTYPE,
'username' => _DBUSER,
'password' => _DBPASS,
);
$params = array(
'langs_avail_table' => 'language',
'lang_id_col' => '_id',
'lang_name_col' => '_name',
'lang_meta_col' => '_meta',
'lang_errmsg_col' => '_error_text',
'lang_encoding_col' => '_encoding',
'strings_default_table' => 'translate',
'string_id_col' => '_id',
'string_page_id_col' => '_page_id',
'string_text_col' => '_%s',
);
$driver = 'DB';

require_once 'Translation2/Admin.php';
$translateAdmin =& Translation2_Admin::factory($driver, $dbinfo, $params);

$return = $translateAdmin->removeLang(addslashes($id));

Expected result:
----------------
The packuage never don't delete the table

[2005-09-30 21:03 UTC] kay at ct-gzsz dot de

when does the next beta available?