update 国际化修改

This commit is contained in:
lijiarao
2023-11-13 17:57:09 +08:00
parent 144f0a559b
commit f03c6fff2f
7 changed files with 8 additions and 9 deletions
@@ -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);