Commit 5702d719 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Replaced hardcoded english words with resource bundles. JM-286


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1325 b35dd754-fafc-0310-a699-88a17e54d16e
parent 99d16618
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
<% admin.init(request, response, session, application, out ); %> <% admin.init(request, response, session, application, out ); %>
<%! <%!
static final String NONE = LocaleUtils.getLocalizedString("logviewer.none");
static final String ERROR = "error"; static final String ERROR = "error";
static final String INFO = "info"; static final String INFO = "info";
static final String WARN = "warn"; static final String WARN = "warn";
...@@ -39,7 +41,7 @@ ...@@ -39,7 +41,7 @@
static final String[] LINES = {"50","100","250","500"}; static final String[] LINES = {"50","100","250","500"};
static final String[] REFRESHES = {"None","10","30","60","90"}; static final String[] REFRESHES = {NONE,"10","30","60","90"};
private static HashMap parseCookie(Cookie cookie) { private static HashMap parseCookie(Cookie cookie) {
if (cookie == null || cookie.getValue() == null) { if (cookie == null || cookie.getValue() == null) {
...@@ -204,7 +206,7 @@ ...@@ -204,7 +206,7 @@
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" /> <jsp:include page="title.jsp" flush="true" />
<% if (refreshParam != null && !"None".equals(refreshParam)) { %> <% if (refreshParam != null && !NONE.equals(refreshParam)) { %>
<meta http-equiv="refresh" content="<%= refresh %>"> <meta http-equiv="refresh" content="<%= refresh %>">
...@@ -410,7 +412,7 @@ IFRAME { ...@@ -410,7 +412,7 @@ IFRAME {
</td> </td>
<td width="1%"> <td width="1%">
<input type="hidden" name="wasDebugEnabled" value="<%= debugEnabled %>"> <input type="hidden" name="wasDebugEnabled" value="<%= debugEnabled %>">
<input type="submit" name="" value="Update"> <input type="submit" name="" value="<fmt:message key="global.save_changes" />">
</td> </td>
<td width="94%">&nbsp;</td> <td width="94%">&nbsp;</td>
</tr> </tr>
...@@ -431,7 +433,7 @@ IFRAME { ...@@ -431,7 +433,7 @@ IFRAME {
<br> <br>
<span class="jive-description" style="color:#666;"> <span class="jive-description" style="color:#666;">
Log dir: <%= JiveGlobals.getHomeDirectory() %><%= File.separator %>logs <fmt:message key="logviewer.log_dir" />: <%= JiveGlobals.getHomeDirectory() %><%= File.separator %>logs
</span> </span>
<br><br> <br><br>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment