diff --git a/scm-webapp/src/main/java/sonia/scm/template/TemplateServlet.java b/scm-webapp/src/main/java/sonia/scm/template/TemplateServlet.java index b66fd9dea0..bbbd122818 100644 --- a/scm-webapp/src/main/java/sonia/scm/template/TemplateServlet.java +++ b/scm-webapp/src/main/java/sonia/scm/template/TemplateServlet.java @@ -117,15 +117,15 @@ public class TemplateServlet extends HttpServlet params.put("locale", locale); - String shortLocale = locale; - int i = shortLocale.indexOf("_"); + String country = locale; + int i = country.indexOf("_"); if (i > 0) { - shortLocale = shortLocale.substring(0, i); + country = country.substring(0, i); } - params.put("shortLocale", shortLocale); + params.put("country", country); String templateName = getTemplateName(contextPath, request.getRequestURI()); Writer writer = null; diff --git a/scm-webapp/src/main/webapp/index.html b/scm-webapp/src/main/webapp/index.html index 714e34dfb6..6ad929a024 100644 --- a/scm-webapp/src/main/webapp/index.html +++ b/scm-webapp/src/main/webapp/index.html @@ -43,6 +43,13 @@ --> + + @@ -64,9 +71,9 @@ - <#if shortLocale != 'en'> - - + <#if country != 'en'> + + #if>