Home » Internationalization » Translation2 » Bug #5142
Bug in removeLang
Details
| Submitted | 2005-08-18 16:31 UTC |
|---|---|
| From | kay at ct-gzsz dot de |
| Assigned | quipo |
| Status | Closed |
| Package | Translation2 |
| PHP Version | 5.0.4 |
| OS | Debian 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?