|
From: Benjamin C. <bc...@us...> - 2004-10-18 12:01:14
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21431 Modified Files: Tag: htmltemplates index.php Log Message: Fixed the translation problem in the project bug count display as suggested by Sven Fischer Index: index.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/index.php,v retrieving revision 1.39.2.6 retrieving revision 1.39.2.7 diff -u -r1.39.2.6 -r1.39.2.7 --- index.php 6 Sep 2004 04:54:03 -0000 1.39.2.6 +++ index.php 18 Oct 2004 12:01:03 -0000 1.39.2.7 @@ -139,14 +139,13 @@ $sOpenStatusQuery = '&status%5B%5D='.@join('&status%5B%5D=', $db->getCol("select status_id from " . TBL_STATUS ." where bug_open = 1")); - // QUESTION: Will this still work with using translate('Project')? foreach ($aProjects['projects'] as $iProjectNumberKey => $value1) { foreach ($aProjects['projects'][$iProjectNumberKey] as $sResolutionKey => $value2) { - if ($sResolutionKey != translate("Project") && $sResolutionKey != translate("Total") && $sResolutionKey != translate("Open")) { + if ($sResolutionKey != "Project" && $sResolutionKey != "Total" && $sResolutionKey != "Open") { $aProjects['projects'][$iProjectNumberKey][$sResolutionKey] = "<A HREF='query.php?resolution%5B%5D=" . $aResolutionsToIds[$sResolutionKey] . "&projects=" . $aProjectsToIds[$aProjects['projects'][$iProjectNumberKey]["Project"]] . "&op=doquery'>" . $aProjects['projects'][$iProjectNumberKey][$sResolutionKey] . "</A>"; - } elseif ($sResolutionKey == translate("Open")) { + } elseif ($sResolutionKey == "Open") { $aProjects['projects'][$iProjectNumberKey][$sResolutionKey] = "<A HREF='query.php?projects=" . $aProjectsToIds[$aProjects['projects'][$iProjectNumberKey]["Project"]] . $sOpenStatusQuery . "&op=doquery'>" . $aProjects['projects'][$iProjectNumberKey][$sResolutionKey] . "</A>"; - } elseif ($sResolutionKey == translate("Total")) { + } elseif ($sResolutionKey == "Total") { $aProjects['projects'][$iProjectNumberKey][$sResolutionKey] = "<A HREF='query.php?projects=" . $aProjectsToIds[$aProjects['projects'][$iProjectNumberKey]["Project"]] . "&op=doquery'>" . $aProjects['projects'][$iProjectNumberKey][$sResolutionKey] . "</A>"; } } |