From bd196e554bb6f5cb97cd02bc7a90c6924ff9b858 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 10 Jul 2012 17:41:24 -0400 Subject: [PATCH] Updated Apache Commons Daemon to 1.0.10 --- src/com/gitblit/wicket/pages/RootPage.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/com/gitblit/wicket/pages/RootPage.java b/src/com/gitblit/wicket/pages/RootPage.java index deb2f4b..636ed00 100644 --- a/src/com/gitblit/wicket/pages/RootPage.java +++ b/src/com/gitblit/wicket/pages/RootPage.java @@ -297,8 +297,9 @@ Set<Integer> choicesSet = new HashSet<Integer>(Arrays.asList(daysBack, 14, 28, 60, 90, 180)); List<Integer> choices = new ArrayList<Integer>(choicesSet); Collections.sort(choices); + String lastDaysPattern = getString("gb.lastNDays"); for (Integer db : choices) { - String txt = "last " + db + (db.intValue() > 1 ? " days" : "day"); + String txt = MessageFormat.format(lastDaysPattern, db); items.add(new DropDownMenuItem(txt, "db", db.toString(), params)); } items.add(new DropDownMenuItem()); -- Gitblit v1.9.1