Browse Source

Externalize a translation resource

tags/v1.6.0
James Moger 10 years ago
parent
commit
496532ac22

+ 1
- 0
src/main/java/com/gitblit/wicket/GitBlitWebApp.properties View File

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

+ 1
- 1
src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java View File

@@ -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"));
}
}

Loading…
Cancel
Save