[Fusionforge-commits] r9674 - trunk/plugins/coclico/hudson/include

Mélanie Le Bail melanelebail at libremir.placard.fr.eu.org
Fri Apr 30 16:26:20 CEST 2010


Author: melanelebail
Date: 2010-04-30 16:26:19 +0200 (Fri, 30 Apr 2010)
New Revision: 9674

Modified:
   trunk/plugins/coclico/hudson/include/hudsonViews.class.php
   trunk/plugins/coclico/hudson/include/hudson_Widget_JobBuildHistory.class.php
   trunk/plugins/coclico/hudson/include/hudson_Widget_JobLastArtifacts.class.php
   trunk/plugins/coclico/hudson/include/hudson_Widget_JobLastBuilds.class.php
   trunk/plugins/coclico/hudson/include/hudson_Widget_JobTestResults.class.php
   trunk/plugins/coclico/hudson/include/hudson_Widget_JobTestTrend.class.php
Log:
fix stringsin hudson plugin


Modified: trunk/plugins/coclico/hudson/include/hudsonViews.class.php
===================================================================
--- trunk/plugins/coclico/hudson/include/hudsonViews.class.php	2010-04-30 14:23:37 UTC (rev 9673)
+++ trunk/plugins/coclico/hudson/include/hudsonViews.class.php	2010-04-30 14:26:19 UTC (rev 9674)
@@ -314,12 +314,12 @@
 					// function toggle_iframe is in script plugins/hudson/www/hudson_tab.js
 					echo '  <td class="boxitem"><a href="'.$job->getUrl().'" onclick="toggle_iframe(this); return false;" title="'.vsprintf(_("Show job %s"),  array($row['name'])).'">'.$row['name'].'</a></td>';
 					if ($job->getLastSuccessfulBuildNumber() != '') {
-						echo '  <td><a href="'.$job->getLastSuccessfulBuildUrl().'" onclick="toggle_iframe(this); return false;" title="'.sprintf(_("Show build #$1 of job $2"),  array($job->getLastSuccessfulBuildNumber(), $row['name'])).'">'._("build").' #'.$job->getLastSuccessfulBuildNumber().'</a></td>';
+						echo '  <td><a href="'.$job->getLastSuccessfulBuildUrl().'" onclick="toggle_iframe(this); return false;" title="'.sprintf(_("Show build #%s of job %s"),  array($job->getLastSuccessfulBuildNumber(), $row['name'])).'">'._("build").' #'.$job->getLastSuccessfulBuildNumber().'</a></td>';
 					} else {
 						echo '  <td>&nbsp;</td>';
 					}
 					if ($job->getLastFailedBuildNumber() != '') {
-						echo '  <td><a href="'.$job->getLastFailedBuildUrl().'" onclick="toggle_iframe(this); return false;" title="'.sprintf(_("Show build #$1 of job $2"),  array($job->getLastFailedBuildNumber(), $row['name'])).'">'._("build").' #'.$job->getLastFailedBuildNumber().'</a></td>';
+						echo '  <td><a href="'.$job->getLastFailedBuildUrl().'" onclick="toggle_iframe(this); return false;" title="'.sprintf(_("Show build #%s of job %s"),  array($job->getLastFailedBuildNumber(), $row['name'])).'">'._("build").' #'.$job->getLastFailedBuildNumber().'</a></td>';
 					} else {
 						echo '  <td>&nbsp;</td>';
 					}
@@ -358,7 +358,7 @@
 					// delete job
 					echo '   <span class="job_action">';
 					echo '    <a href="?action=delete_job&group_id='.$group_id.'&job_id='.$row['job_id'].'" onclick="return confirm(';
-					echo "'" . sprintf(_("Are you sure you want to delete Job $1 from project $2?"),  array($row['name'], $project->getUnixName())) . "'";
+					echo "'" . sprintf(_("Are you sure you want to delete Job %s from project %s?"),  array($row['name'], $project->getUnixName())) . "'";
 					echo ');"><img src="'.$this->getControler()->getIconsPath().'cross.png" alt="'._("Delete this job").' title="'._("Delete this job").'">';
 					echo '</a>';
 					echo '   </span>';

Modified: trunk/plugins/coclico/hudson/include/hudson_Widget_JobBuildHistory.class.php
===================================================================
--- trunk/plugins/coclico/hudson/include/hudson_Widget_JobBuildHistory.class.php	2010-04-30 14:23:37 UTC (rev 9673)
+++ trunk/plugins/coclico/hudson/include/hudson_Widget_JobBuildHistory.class.php	2010-04-30 14:26:19 UTC (rev 9674)
@@ -46,7 +46,7 @@
         if ($this->job) {
             $title .= vsprintf(_("%s Builds History"),  array($this->job->getName()));
         } else {
-            $title .= _("$1 Builds History");
+            $title .= _("%s Builds History");
         }
         return  $title;
     }
@@ -104,4 +104,4 @@
     }
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/plugins/coclico/hudson/include/hudson_Widget_JobLastArtifacts.class.php
===================================================================
--- trunk/plugins/coclico/hudson/include/hudson_Widget_JobLastArtifacts.class.php	2010-04-30 14:23:37 UTC (rev 9673)
+++ trunk/plugins/coclico/hudson/include/hudson_Widget_JobLastArtifacts.class.php	2010-04-30 14:26:19 UTC (rev 9674)
@@ -49,7 +49,7 @@
         if ($this->job) {
             $title .= vsprintf(_("%s Last Artifacts"),  array($this->job->getName()));
         } else {
-             $title .= _("$1 Last Artifacts");
+             $title .= _("%s Last Artifacts");
         }
         return  $title;
     }
@@ -111,4 +111,4 @@
     }
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/plugins/coclico/hudson/include/hudson_Widget_JobLastBuilds.class.php
===================================================================
--- trunk/plugins/coclico/hudson/include/hudson_Widget_JobLastBuilds.class.php	2010-04-30 14:23:37 UTC (rev 9673)
+++ trunk/plugins/coclico/hudson/include/hudson_Widget_JobLastBuilds.class.php	2010-04-30 14:26:19 UTC (rev 9674)
@@ -46,7 +46,7 @@
         if ($this->job) {
             $title .= vsprintf(_("%s Last Builds"),  array($this->job->getName()));
         } else {
-            $title .= _("$1 Last Builds");
+            $title .= _("%s Last Builds");
         }
         return  $title;
     }
@@ -107,4 +107,4 @@
     }
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/plugins/coclico/hudson/include/hudson_Widget_JobTestResults.class.php
===================================================================
--- trunk/plugins/coclico/hudson/include/hudson_Widget_JobTestResults.class.php	2010-04-30 14:23:37 UTC (rev 9673)
+++ trunk/plugins/coclico/hudson/include/hudson_Widget_JobTestResults.class.php	2010-04-30 14:26:19 UTC (rev 9674)
@@ -47,7 +47,7 @@
     function getTitle() {
         $title = '';
         if ($this->job && $this->test_result) {
-            $title .= TODOBETTERvsprintf(_("$1 Test Results ($2 / $3)"),  array($this->job->getName(), $this->test_result->getPassCount(), $this->test_result->getTotalCount()));
+            $title .= TODOBETTERvsprintf(_("%s Test Results (%s / %s)"),  array($this->job->getName(), $this->test_result->getPassCount(), $this->test_result->getTotalCount()));
         } elseif ($this->job && ! $this->test_result) {
             $title .= vsprintf(_("%s Test Results"),  array($this->job->getName()));
         } else {
@@ -112,4 +112,4 @@
     }
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/plugins/coclico/hudson/include/hudson_Widget_JobTestTrend.class.php
===================================================================
--- trunk/plugins/coclico/hudson/include/hudson_Widget_JobTestTrend.class.php	2010-04-30 14:23:37 UTC (rev 9673)
+++ trunk/plugins/coclico/hudson/include/hudson_Widget_JobTestTrend.class.php	2010-04-30 14:26:19 UTC (rev 9674)
@@ -48,7 +48,7 @@
         if ($this->job) {
             $title .= vsprintf(_("%s Test Result Trend"),  array($this->job->getName()));
         } else {
-             $title .= _("$1 Test Result Trend");
+             $title .= _("%s Test Result Trend");
         }
         return  $title;
     }
@@ -110,4 +110,4 @@
     }
 }
 
-?>
\ No newline at end of file
+?>




More information about the Fusionforge-commits mailing list