summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-06-03 10:12:30 -0400
committerJames Moger <james.moger@gitblit.com>2014-06-03 10:34:51 -0400
commit496532ac22430950a5e8973a7942a51bfd6b39e5 (patch)
treeaf47faf1d9c8c41b4d1e7f2aebb2751c061bcd53 /src
parent1cf554d51e0237ee411eb4c6e71dfac695ed4b73 (diff)
downloadgitblit-496532ac22430950a5e8973a7942a51bfd6b39e5.tar.gz
gitblit-496532ac22430950a5e8973a7942a51bfd6b39e5.zip
Externalize a translation resource
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp.properties1
-rw-r--r--src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java2
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 bd5d89e0..d6fd57e9 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
@@ -704,6 +704,7 @@ gb.initWithReadme = Include a README
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 f0aa2241..bc2c68cc 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 @@ public class NewRepositoryPage extends RootSubPage {
if (addGitignore) {
gitignore = gitignoreModel.getObject();
if (StringUtils.isEmpty(gitignore)) {
- throw new GitBlitException("Please select a .gitignore file");
+ throw new GitBlitException(getString("gb.pleaseSelectGitIgnore"));
}
}