diff --git a/core/src/main/java/hudson/Util.java b/core/src/main/java/hudson/Util.java index a83963c329..35e71eaa4e 100644 --- a/core/src/main/java/hudson/Util.java +++ b/core/src/main/java/hudson/Util.java @@ -9,6 +9,7 @@ import org.apache.tools.ant.types.FileSet; import org.apache.tools.ant.taskdefs.Chmod; import org.apache.tools.ant.taskdefs.Copy; import org.kohsuke.stapler.Stapler; +import org.jvnet.localizer.Localizable; import java.io.BufferedReader; import java.io.ByteArrayInputStream; @@ -365,6 +366,7 @@ public class Util { /** * Returns a human readable text of the time duration. + * This version should be used for representing a duration of some activity (like build) * * @param duration * number of milliseconds. @@ -389,6 +391,14 @@ public class Util { return Messages.Util_year(duration); } + /** + * Get a human readable string representing strings like "xxx days ago", + * which should be used to point to the occurence of an event in the past. + */ + public static String getPastTimeString(long duration) { + return Messages.Util_pastTime(getTimeSpanString(duration)); + } + /** * Combines number and unit, with a plural suffix if needed. */ diff --git a/core/src/main/java/hudson/model/Run.java b/core/src/main/java/hudson/model/Run.java index 3a38b7ef8d..178c1c5460 100644 --- a/core/src/main/java/hudson/model/Run.java +++ b/core/src/main/java/hudson/model/Run.java @@ -345,7 +345,7 @@ public abstract class Run ,RunT extends Run - + diff --git a/core/src/main/resources/lib/hudson/projectView_ja.properties b/core/src/main/resources/lib/hudson/projectView_ja.properties index e855b6a50f..351b581789 100644 --- a/core/src/main/resources/lib/hudson/projectView_ja.properties +++ b/core/src/main/resources/lib/hudson/projectView_ja.properties @@ -2,4 +2,5 @@ Job=\u30b8\u30e7\u30d6 Last\ Success=\u6700\u5f8c\u306e\u6210\u529f Last\ Failure=\u6700\u5f8c\u306e\u5931\u6557 Last\ Duration=\u30d3\u30eb\u30c9\u6240\u8981\u6642\u9593 -N/A=\u2015 \ No newline at end of file +N/A=\u2015 +Schedule\ a\ build=\u30d3\u30eb\u30c9\u5b9f\u884c \ No newline at end of file