Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.4

Bug #11880 Removing _one_ language removes all strings for _all_ languages
Submitted: 2007-08-21 07:53 UTC
From: clue Assigned: quipo
Status: Closed Package: Translation2 (version 2.0.0RC1)
PHP Version: 5.2.3 OS: Debian GNU/Linux
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 4 + 15 = ?

 [2007-08-21 07:53 UTC] clue (Christian Lück)
Description: ------------ Removing one languages removes not only the strings for this language, but in fact all strings for all languages, this language has translations for. So, if I were to remove language 'de' and have a number of strings translated to both 'de' and 'en', the 'en' translations will be dropped as well. The error seems to be in the xml.php line 232, which should look like this: [php] unset($this->_data['pages'][$pageID][$stringID][$langID]); [/php]


 [2007-09-12 20:40 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.