Index: pgadmin_po.php =================================================================== RCS file: /projects/www/pgadmin3/class/pgadmin_po.php,v retrieving revision 1.7 retrieving revision 1.8 diff -Lpgadmin3/class/pgadmin_po.php -Lpgadmin3/class/pgadmin_po.php -u -w -r1.7 -r1.8 --- pgadmin3/class/pgadmin_po.php +++ pgadmin3/class/pgadmin_po.php @@ -97,28 +97,12 @@ $_po_stat = array(); $_po_stat = $this->getStatistics ($this->_cvsroot . "/src/ui/" . $_locale . "/pgadmin3.po"); - /////////////////////////////////////////////////////////////////////////////////////////////////// - // DJP 2004-08-12 - // The correct total comes from the pot file - /////////////////////////////////////////////////////////////////////////////////////////////////// - // $this->_content['po_total'][$this->_size] = $_po_stat['total']; - $this->_content['po_total'][$this->_size] = $_pot_stat['total']; + $this->_content['po_total'][$this->_size] = $_po_stat['total']; $this->_content['po_translated'][$this->_size] = $_po_stat['translated']; $this->_content['po_untranslated'][$this->_size] = $_po_stat['untranslated'] + $_po_stat['fuzzy']; - /////////////////////////////////////////////////////////////////////////////////////////////////// - // DJP 2004-08-12 - // The correct total comes from the pot file so recalc the status - /////////////////////////////////////////////////////////////////////////////////////////////////// - // $this->_content['po_status'][$this->_size] = $_po_stat['status']; - if ($_pot_stat['total'] > 0) { - $this->_content['po_status'][$this->_size] = round ($_po_stat['translated']/$_pot_stat['total'], 2) * 100; - } else { - $this->_content['po_status'][$this->_size] = 0; - } - - + $this->_content['po_status'][$this->_size] = $_po_stat['status']; $this->_size++; }