PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Internationalization » Translation » Bug #761

Auto - table creation problems?

Details

Submitted2004-02-15 19:39 UTC
Fromm dot bariola at tin dot it
Assignedquipo
StatusClosed
PackageTranslation
PHP Version4.3.4
OSWinXp
Roadmaps(Not assigned)

Comments

[2004-02-15 19:39 UTC] m dot bariola at tin dot it

Description:
------------
invoking the createNewLang metohd, I find that no tables are created - assuming the call parameters are right, I notice that the code of the helper method creates a "metatags" key in the $TableDefinitions array, while the createNewLang refers to it as "lang_metatags".
Also, the table existence check seems to be broken. the first query (insertion before check if table exists) returns a DB::Error, so the method returns and no check for existence and subsequent insertion occurs.
Or maybe did I completely misunderstand how to use this package?
Thanks,

bye

Reproduce code:
---------------
require_once("DB.php");
require_once "Translation/translation.str_mgmt.php";
require_once "Translation/translation.class.php";
createNewLang("it", "Italiano", "sometags", "mysql://..........@localhost/trans");

Expected result:
----------------
Creation of the lang_it table in database trans

Actual result:
--------------
no creation whatsoever