summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/pages/PatchPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/wicket/pages/PatchPage.java')
-rw-r--r--src/com/gitblit/wicket/pages/PatchPage.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/gitblit/wicket/pages/PatchPage.java b/src/com/gitblit/wicket/pages/PatchPage.java
index 04934735..878cfb45 100644
--- a/src/com/gitblit/wicket/pages/PatchPage.java
+++ b/src/com/gitblit/wicket/pages/PatchPage.java
@@ -34,7 +34,7 @@ public class PatchPage extends WebPage {
super(params);
if (!params.containsKey("r")) {
- GitBlitWebSession.get().cacheErrorMessage("Repository not specified!");
+ GitBlitWebSession.get().cacheErrorMessage(getString("gb.repositoryNotSpecified"));
redirectToInterceptPage(new RepositoriesPage());
return;
}
@@ -46,14 +46,14 @@ public class PatchPage extends WebPage {
Repository r = GitBlit.self().getRepository(repositoryName);
if (r == null) {
- GitBlitWebSession.get().cacheErrorMessage("Can not load repository " + repositoryName);
+ GitBlitWebSession.get().cacheErrorMessage(getString("gb.canNotLoadRepository") + " " + repositoryName);
redirectToInterceptPage(new RepositoriesPage());
return;
}
RevCommit commit = JGitUtils.getCommit(r, objectId);
if (commit == null) {
- GitBlitWebSession.get().cacheErrorMessage("Commit is null");
+ GitBlitWebSession.get().cacheErrorMessage(getString("gb.commitIsNull"));
redirectToInterceptPage(new RepositoriesPage());
return;
}