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)    
Subscription  


 [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]

Comments

 [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 pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net 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.