From 496532ac22430950a5e8973a7942a51bfd6b39e5 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Tue, 03 Jun 2014 10:34:51 -0400
Subject: [PATCH] Externalize a translation resource

---
 src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java |    2 +-
 src/main/java/com/gitblit/wicket/GitBlitWebApp.properties     |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
index bd5d89e..d6fd57e 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
@@ -704,6 +704,7 @@
 gb.initWithReadmeDescription = This will generate a simple README document for your repository.
 gb.initWithGitignore = Include a .gitignore file
 gb.initWithGitignoreDescription = This will insert a config file that instructs your Git clients to ignore files or directories that match defined patterns.
+gb.pleaseSelectGitIgnore = Please select a .gitignore file
 gb.receive = receive
 gb.permissions = permissions
 gb.ownersDescription = Owners can manage all repository settings but they are not allowed to rename a repository unless it is their personal repository.
diff --git a/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java
index f0aa224..bc2c68c 100644
--- a/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java
@@ -130,7 +130,7 @@
 					if (addGitignore) {
 						gitignore = gitignoreModel.getObject();
 						if (StringUtils.isEmpty(gitignore)) {
-							throw new GitBlitException("Please select a .gitignore file");
+							throw new GitBlitException(getString("gb.pleaseSelectGitIgnore"));
 						}
 					}
 

--
Gitblit v1.9.1