mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
improve i18n support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user