From: James Moger Date: Wed, 5 Mar 2014 13:07:36 +0000 (-0500) Subject: Externalize some additional strings X-Git-Tag: v1.4.0~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f50fd56848e8b5ff70eba7054035ecb1b2d9a36;p=gitblit.git Externalize some additional strings --- diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties index 49a57e9c..5cc8b7f2 100644 --- a/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties +++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties @@ -650,4 +650,9 @@ gb.hasNotReviewed = has not reviewed gb.about = about gb.ticketN = ticket #{0} gb.disableUser = disable user -gb.disableUserDescription = prevent this account from authenticating \ No newline at end of file +gb.disableUserDescription = prevent this account from authenticating +gb.any = any +gb.milestoneProgress = {0} open, {1} closed +gb.nOpenTickets = {0} open +gb.nClosedTickets = {0} closed +gb.nTotalTickets = {0} total \ No newline at end of file diff --git a/src/main/java/com/gitblit/wicket/pages/TicketPage.java b/src/main/java/com/gitblit/wicket/pages/TicketPage.java index dde31a2a..622f0867 100644 --- a/src/main/java/com/gitblit/wicket/pages/TicketPage.java +++ b/src/main/java/com/gitblit/wicket/pages/TicketPage.java @@ -265,7 +265,7 @@ public class TicketPage extends TicketBasePage { Label label = new Label("progress"); WicketUtils.setCssStyle(label, "width:" + progress + "%;"); milestoneProgress.add(label); - WicketUtils.setHtmlTooltip(milestoneProgress, MessageFormat.format("{0} open, {1} closed", open, closed)); + WicketUtils.setHtmlTooltip(milestoneProgress, MessageFormat.format(getString("gb.milestoneProgress"), open, closed)); add(milestoneProgress); } diff --git a/src/main/java/com/gitblit/wicket/pages/TicketsPage.html b/src/main/java/com/gitblit/wicket/pages/TicketsPage.html index 90544908..07e6563f 100644 --- a/src/main/java/com/gitblit/wicket/pages/TicketsPage.html +++ b/src/main/java/com/gitblit/wicket/pages/TicketsPage.html @@ -53,9 +53,9 @@
: diff --git a/src/main/java/com/gitblit/wicket/pages/TicketsPage.java b/src/main/java/com/gitblit/wicket/pages/TicketsPage.java index 2d60481f..489ed1ac 100644 --- a/src/main/java/com/gitblit/wicket/pages/TicketsPage.java +++ b/src/main/java/com/gitblit/wicket/pages/TicketsPage.java @@ -87,7 +87,7 @@ public class TicketsPage extends TicketBasePage { // set stateless page preference setStatelessHint(true); - any = new TicketResponsible("any", "[* TO *]", null); + any = new TicketResponsible(getString("gb.any"), "[* TO *]", null); UserModel user = GitBlitWebSession.get().getUser(); boolean isAuthenticated = user != null && user.isAuthenticated; @@ -185,16 +185,16 @@ public class TicketsPage extends TicketBasePage { milestonePanel.add(label); milestonePanel.add(new LinkPanel("openTickets", null, - currentMilestone.getOpenTickets() + " open", + MessageFormat.format(getString("gb.nOpenTickets"), currentMilestone.getOpenTickets()), TicketsPage.class, queryParameters(null, currentMilestone.name, openStatii, null, sortBy, desc, 1))); milestonePanel.add(new LinkPanel("closedTickets", null, - currentMilestone.getClosedTickets() + " closed", + MessageFormat.format(getString("gb.nClosedTickets"), currentMilestone.getClosedTickets()), TicketsPage.class, queryParameters(null, currentMilestone.name, closedStatii, null, sortBy, desc, 1))); - milestonePanel.add(new Label("totalTickets", currentMilestone.getTotalTickets() + " total")); + milestonePanel.add(new Label("totalTickets", MessageFormat.format(getString("gb.nTotalTickets"), currentMilestone.getTotalTickets()))); add(milestonePanel); }