From 65f55eee1c41a9cdfec96dc4310efcc6e57df97f Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 01 Aug 2012 09:48:06 -0400
Subject: [PATCH] Add recursion depth control for repository search (issue 103)

---
 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