PEAR is archived and read-only

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

Home » Internationalization » Translation2 » Bug #3068

Admin::update() buggy

Details

Submitted2004-12-30 20:14 UTC
Fromtobias dot eberle at gmx dot de
Assignedquipo
StatusClosed
PackageTranslation2
PHP Version4.3.10
OSlinux
Roadmaps(Not assigned)

Comments

[2004-12-30 20:14 UTC] tobias dot eberle at gmx dot de

Description:
------------
Hello,

I have multiple tables for different languages. I have defined a string in one language (i.e. en), but not in another one (i.e. de). If I want to add a translation for 'de' (and maybe change the 'en' one), update() only updates the existing string in 'en' and does not add the new string in 'de' (because it queries "UPDATE translation_de SET de = 'string' WHERE sStringId = 'mystringid' AND sPageId = 'mypageid';", of cause update failes).
I have only tested db container.

Bye, Tobias Eberle

[2005-01-03 18:25 UTC] tobias dot eberle at gmx dot de

I used beta5. I checked cvs and saw that the admin files were changed last before the release of beta5. Therefore I did not test this yet.
Are you sure you added only to the one and not to the other language (Really no entry! Not adding NULL!) while you test it?
Firstly I added
array(1) { ["en"]=> string(7) "english" }
and then do the edit:
array(2) { ["en"]=> string(7) "english" ["de"]=> string(6) "german" }

A look at Translation2/Admin/Containers/db.php line 351 shows that there weren't any inserts (or I missed them ;-) )

[2005-01-04 12:25 UTC] tobias dot eberle at gmx dot de

Works fine. Thank you for fixing.