From a3bac8aa3e2f182ddcd8fc977614d2686b71b29d Mon Sep 17 00:00:00 2001 From: mindless Date: Fri, 13 Feb 2009 22:36:24 +0000 Subject: [PATCH] [HUDSON-1670] use Localizables as parameters to another Localizable when creating a HealthReport (for both Build Stability and Test Results). When already-translated strings are used, these go into the cached health report, so all users see language of the person who cached it rather than their own language. Localizer package needs a fix so that Localizable.toString() defaults to LocaleProvider.getLocale() rather than Locale.getDefault().. then these strings will translate correctly to the language of the current request. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15320 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Job.java | 9 +++++---- .../java/hudson/tasks/test/AbstractTestResultAction.java | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/hudson/model/Job.java b/core/src/main/java/hudson/model/Job.java index d8c6635fd4..1816726ff9 100644 --- a/core/src/main/java/hudson/model/Job.java +++ b/core/src/main/java/hudson/model/Job.java @@ -89,6 +89,7 @@ import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.category.StackedAreaRenderer; import org.jfree.data.category.CategoryDataset; import org.jfree.ui.RectangleInsets; +import org.jvnet.localizer.Localizable; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.StaplerResponse; import org.kohsuke.stapler.WebMethod; @@ -860,16 +861,16 @@ public abstract class Job, RunT extends Run