update 国际化修改
This commit is contained in:
@@ -86,6 +86,8 @@ public class ResultCommon {
|
||||
|
||||
public static final String ZIP_CHARSET_ERROR = "zip.charset.error"; // zip压缩包编码错误
|
||||
|
||||
/**字段名称太长*/
|
||||
public static final String TAG_ADD_ERROR_1 = "tag.add.error.1";
|
||||
/**同一所属模块下,展示区域名称不能重复!*/
|
||||
public static final String TAG_ERROR_1 = "tag.error.1";
|
||||
/**该展示区域有关联数据,无法删除!*/
|
||||
|
||||
@@ -16,7 +16,7 @@ public class MyLocaleResolver implements LocaleResolver {
|
||||
|
||||
@Override
|
||||
public Locale resolveLocale(HttpServletRequest httpServletRequest) {
|
||||
String l = httpServletRequest.getHeader("l");
|
||||
String l = httpServletRequest.getHeader("Language");
|
||||
Locale locale = Locale.CHINESE;
|
||||
if (StringUtils.isNotBlank(l)){
|
||||
locale = new Locale(l);
|
||||
|
||||
Reference in New Issue
Block a user