Skip to content

Commit

Permalink
Merge pull request #2933 from SCADA-LTS/fix/#2896_Fixed_alert_languag…
Browse files Browse the repository at this point in the history
…e_in_watchlist_view

#2896 Fixed alert language in watchlist view
  • Loading branch information
Limraj authored Jul 3, 2024
2 parents ac392df + fe6ad07 commit 598c89b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions WebContent/WEB-INF/jsp/include/tech.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
--%><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %><%--
--%><%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %><%--
--%><fmt:setBundle basename="messages" /><%--
--%><fmt:setLocale scope='session' value="${sessionScope.get('org.springframework.web.servlet.i18n.SessionLocaleResolver.LOCALE')}"/><%--
--%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%--
--%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %><%--
--%><%@ taglib prefix="mango" uri="/WEB-INF/tld/mango.tld" %><%--
Expand Down
11 changes: 2 additions & 9 deletions src/com/serotonin/mango/web/dwr/BaseDwr.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
*/
package com.serotonin.mango.web.dwr;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.jstl.core.Config;
Expand Down Expand Up @@ -302,10 +298,7 @@ protected String getMessage(LocalizableMessage message) {
}

protected ResourceBundle getResourceBundle() {
WebContext webContext = WebContextFactory.get();
LocalizationContext localizationContext = (LocalizationContext) Config.get(webContext.getHttpServletRequest(),
Config.FMT_LOCALIZATION_CONTEXT);
return localizationContext.getResourceBundle();
return Common.getBundle();
}

public static String generateContent(HttpServletRequest request, String snippet, Map<String, Object> model) {
Expand Down

0 comments on commit 598c89b

Please sign in to comment.