From 71da662aa757531599f511632bb5d64c53fc1aec Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 10 Aug 2009 21:58:22 +0000 Subject: [PATCH] i18n git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20604 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/MyViewsProperty.java | 2 +- core/src/main/java/hudson/model/ProxyView.java | 2 +- core/src/main/resources/hudson/model/Messages.properties | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/model/MyViewsProperty.java b/core/src/main/java/hudson/model/MyViewsProperty.java index b11b45f73f..c48b6ef1d6 100644 --- a/core/src/main/java/hudson/model/MyViewsProperty.java +++ b/core/src/main/java/hudson/model/MyViewsProperty.java @@ -68,7 +68,7 @@ public class MyViewsProperty extends UserProperty implements ViewGroup, Action { } private MyViewsProperty() { - views.add(new AllView(hudson.model.Messages.Hudson_ViewName(), this)); + views.add(new AllView(Messages.Hudson_ViewName(), this)); primaryViewName = views.get(0).getViewName(); } diff --git a/core/src/main/java/hudson/model/ProxyView.java b/core/src/main/java/hudson/model/ProxyView.java index 31a3635208..00707e5fa4 100644 --- a/core/src/main/java/hudson/model/ProxyView.java +++ b/core/src/main/java/hudson/model/ProxyView.java @@ -119,7 +119,7 @@ public class ProxyView extends View { if(Hudson.getInstance().getView(view)!=null) return FormValidation.ok(); else - return FormValidation.error(String.format("Global view %s does not exist", value)); + return FormValidation.error(Messages.ProxyView_NoSuchViewExists(value)); } @Extension diff --git a/core/src/main/resources/hudson/model/Messages.properties b/core/src/main/resources/hudson/model/Messages.properties index 4546822977..b395457429 100644 --- a/core/src/main/resources/hudson/model/Messages.properties +++ b/core/src/main/resources/hudson/model/Messages.properties @@ -118,6 +118,7 @@ Label.GroupOf=group of {0} Label.InvalidLabel=invalid label Label.ProvisionedFrom=Provisioned from {0} MultiStageTimeSeries.EMPTY_STRING= +ProxyView.NoSuchViewExists=Global view {0} does not exist Queue.AllNodesOffline=All nodes of label ''{0}'' are offline Queue.BlockedBy=Blocked by {0} Queue.HudsonIsAboutToShutDown=Hudson is about to shut down