From 27ae9095639bb228a1b7ff86a3ebe4264abf05be Mon Sep 17 00:00:00 2001
From: mschaefers <mschaefers@scoop-gmbh.de>
Date: Thu, 29 Nov 2012 12:33:09 -0500
Subject: [PATCH] feature: when using LdapUserService one can configure Gitblit to fetch all users from ldap that can possibly login. This allows to see newly generated LDAP users instantly in Gitblit. By now an LDAP user had to log in once to appear in GitBlit.

---
 src/com/gitblit/client/Translation.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/com/gitblit/client/Translation.java b/src/com/gitblit/client/Translation.java
index 2e7b5bb..16ef20d 100644
--- a/src/com/gitblit/client/Translation.java
+++ b/src/com/gitblit/client/Translation.java
@@ -18,6 +18,8 @@
 import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 
+import com.gitblit.utils.TimeUtils;
+
 /**
  * Loads the Gitblit language resource file.
  * 
@@ -27,6 +29,8 @@
 public class Translation {
 
 	private final static ResourceBundle translation;
+	
+	private final static TimeUtils timeUtils;
 
 	static {
 		ResourceBundle bundle;
@@ -38,6 +42,8 @@
 			bundle = ResourceBundle.getBundle("GitBlitWebApp");
 		}
 		translation = bundle;
+		
+		timeUtils = new TimeUtils(translation);
 	}
 
 	public static String get(String key) {
@@ -46,4 +52,8 @@
 		}
 		return key;
 	}
+	
+	public static TimeUtils getTimeUtils() {
+		return timeUtils;
+	}
 }

--
Gitblit v1.9.1