提交 26f4819e 编写于 作者: K kohsuke

i18n


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6810 71c3de6d-444a-0410-be80-ed276b4c234a
上级 fbf64b13
......@@ -3,7 +3,6 @@ package hudson.model;
import hudson.ExtensionPoint;
import hudson.StructuredForm;
import hudson.Util;
import hudson.security.Permission;
import hudson.model.Descriptor.FormException;
import hudson.model.listeners.ItemListener;
import hudson.search.QuickSilver;
......@@ -43,8 +42,7 @@ import org.kohsuke.stapler.export.Exported;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;
import java.awt.Color;
import java.awt.Paint;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
......@@ -819,7 +817,7 @@ public abstract class Job<JobT extends Job<JobT,RunT>, RunT extends Run<JobT,Run
DataSetBuilder<String,ChartLabel> data = new DataSetBuilder<String, ChartLabel>();
for( Run r : getBuilds() ) {
if(r.isBuilding()) continue;
data.add( ((double)r.getDuration())/(1000*60), "mins", new ChartLabel(r));
data.add( ((double)r.getDuration())/(1000*60), Messages.Job_minutes(), new ChartLabel(r));
}
final CategoryDataset dataset = data.build();
......
<!-- Displays the chart that show how long builds are taking -->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<l:layout title="${it.displayName} Build time trend">
<l:layout title="${%title(it.displayName)}">
<st:include page="sidepanel.jelly" />
<l:main-panel>
<j:choose>
......@@ -14,10 +14,10 @@
<table class="sortable" style="margin-top:1em;">
<tr>
<th><st:nbsp/></th>
<th initialSortDir="up">Build</th>
<th>Duration</th>
<th initialSortDir="up">${%Build}</th>
<th>${%Duration}</th>
<j:if test="${isMasterSlaveEnabled}">
<th>Slave</th>
<th>${%Slave}</th>
</j:if>
</tr>
<j:forEach var="r" items="${it.builds}">
......@@ -42,7 +42,7 @@
</div>
</j:when>
<j:otherwise>
More than 1 builds are needed for the trend report.
${%More than 1 builds are needed for the trend report.}
</j:otherwise>
</j:choose>
</l:main-panel>
......
title={0} Build time trend
\ No newline at end of file
......@@ -5,6 +5,8 @@ Hudson.Permissions.Title=Overall
Item.Permissions.Title=Job
Job.minutes=mins
Run.Permissions.Title=Run
View.Permissions.Title=View
......
......@@ -3,3 +3,5 @@ FreeStyleProject.DisplayName=\u30d5\u30ea\u30fc\u30b9\u30bf\u30a4\u30eb\u30bd\u3
ExternalJob.DisplayName=\u5916\u90e8\u30b8\u30e7\u30d6\u306e\u76e3\u8996
AbstractProject.Pronoun=\u30d7\u30ed\u30b8\u30a7\u30af\u30c8
Job.minutes=\u5206
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册