后台信息国际化
This commit is contained in:
@@ -1,38 +1,44 @@
|
|||||||
|
#错误消息
|
||||||
|
not.null=* 必须填写
|
||||||
|
user.jcaptcha.error=验证码错误
|
||||||
|
user.jcaptcha.expire=验证码已失效
|
||||||
|
user.not.exists=用户不存在/密码错误
|
||||||
|
user.password.not.match=用户不存在/密码错误
|
||||||
|
user.password.retry.limit.count=密码输入错误{0}次
|
||||||
|
user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定{1}分钟
|
||||||
|
user.password.delete=对不起,您的账号已被删除
|
||||||
|
user.blocked=用户已封禁,请联系管理员
|
||||||
|
role.blocked=角色已封禁,请联系管理员
|
||||||
|
login.blocked=很遗憾,访问IP已被列入系统黑名单
|
||||||
|
user.logout.success=退出成功
|
||||||
|
|
||||||
|
length.not.valid=长度必须在{min}到{max}个字符之间
|
||||||
|
|
||||||
|
user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头
|
||||||
|
user.password.not.valid=* 5-50个字符
|
||||||
|
|
||||||
|
user.email.not.valid=邮箱格式错误
|
||||||
|
user.mobile.phone.number.not.valid=手机号格式错误
|
||||||
|
user.login.success=登录成功
|
||||||
|
user.register.success=注册成功
|
||||||
|
user.notfound=请重新登录
|
||||||
|
user.forcelogout=管理员强制退出,请重新登录
|
||||||
|
user.unknown.error=未知错误,请重新登录
|
||||||
|
|
||||||
|
##文件上传消息
|
||||||
|
upload.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB!
|
||||||
|
upload.filename.exceed.length=上传的文件名最长{0}个字符
|
||||||
|
|
||||||
|
##权限
|
||||||
|
no.permission=您没有数据的权限,请联系管理员添加权限 [{0}]
|
||||||
|
no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}]
|
||||||
|
no.update.permission=您没有修改数据的权限,请联系管理员添加权限 [{0}]
|
||||||
|
no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}]
|
||||||
|
no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}]
|
||||||
|
no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}]
|
||||||
|
|
||||||
|
|
||||||
#????
|
#????
|
||||||
not.null=* ????
|
ajax.result.success=????
|
||||||
user.jcaptcha.error=?????
|
ajax.result.fail=????
|
||||||
user.jcaptcha.expire=??????
|
table.result.success=????
|
||||||
user.not.exists=?????/????
|
|
||||||
user.password.not.match=?????/????
|
|
||||||
user.password.retry.limit.count=??????{0}?
|
|
||||||
user.password.retry.limit.exceed=??????{0}??????{1}??
|
|
||||||
user.password.delete=????????????
|
|
||||||
user.blocked=????????????
|
|
||||||
role.blocked=????????????
|
|
||||||
login.blocked=??????IP?????????
|
|
||||||
user.logout.success=????
|
|
||||||
|
|
||||||
length.not.valid=?????{min}?{max}?????
|
|
||||||
|
|
||||||
user.username.not.valid=* 2?20?????????????????????????
|
|
||||||
user.password.not.valid=* 5-50???
|
|
||||||
|
|
||||||
user.email.not.valid=??????
|
|
||||||
user.mobile.phone.number.not.valid=???????
|
|
||||||
user.login.success=????
|
|
||||||
user.register.success=????
|
|
||||||
user.notfound=?????
|
|
||||||
user.forcelogout=?????????????
|
|
||||||
user.unknown.error=??????????
|
|
||||||
|
|
||||||
##??????
|
|
||||||
upload.exceed.maxSize=?????????????????<br/>???????????{0}MB?
|
|
||||||
upload.filename.exceed.length=????????{0}???
|
|
||||||
|
|
||||||
##??
|
|
||||||
no.permission=??????????????????? [{0}]
|
|
||||||
no.create.permission=????????????????????? [{0}]
|
|
||||||
no.update.permission=????????????????????? [{0}]
|
|
||||||
no.delete.permission=????????????????????? [{0}]
|
|
||||||
no.export.permission=????????????????????? [{0}]
|
|
||||||
no.view.permission=????????????????????? [{0}]
|
|
||||||
|
|||||||
@@ -1,38 +1,44 @@
|
|||||||
#????
|
#错误消息
|
||||||
not.null=* ????
|
not.null=* 必须填写
|
||||||
user.jcaptcha.error=?????
|
user.jcaptcha.error=验证码错误
|
||||||
user.jcaptcha.expire=??????
|
user.jcaptcha.expire=验证码已失效
|
||||||
user.not.exists=?????/????
|
user.not.exists=用户不存在/密码错误
|
||||||
user.password.not.match=?????/????
|
user.password.not.match=用户不存在/密码错误
|
||||||
user.password.retry.limit.count=??????{0}?
|
user.password.retry.limit.count=密码输入错误{0}次
|
||||||
user.password.retry.limit.exceed=??????{0}??????{1}??
|
user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定{1}分钟
|
||||||
user.password.delete=????????????
|
user.password.delete=对不起,您的账号已被删除
|
||||||
user.blocked=????????????
|
user.blocked=用户已封禁,请联系管理员
|
||||||
role.blocked=????????????
|
role.blocked=角色已封禁,请联系管理员
|
||||||
login.blocked=??????IP?????????
|
login.blocked=很遗憾,访问IP已被列入系统黑名单
|
||||||
user.logout.success=????
|
user.logout.success=退出成功
|
||||||
|
|
||||||
length.not.valid=?????{min}?{max}?????
|
length.not.valid=长度必须在{min}到{max}个字符之间
|
||||||
|
|
||||||
user.username.not.valid=* 2?20?????????????????????????
|
user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头
|
||||||
user.password.not.valid=* 5-50???
|
user.password.not.valid=* 5-50个字符
|
||||||
|
|
||||||
user.email.not.valid=??????
|
user.email.not.valid=邮箱格式错误
|
||||||
user.mobile.phone.number.not.valid=???????
|
user.mobile.phone.number.not.valid=手机号格式错误
|
||||||
user.login.success=????
|
user.login.success=登录成功
|
||||||
user.register.success=????
|
user.register.success=注册成功
|
||||||
user.notfound=?????
|
user.notfound=请重新登录
|
||||||
user.forcelogout=?????????????
|
user.forcelogout=管理员强制退出,请重新登录
|
||||||
user.unknown.error=??????????
|
user.unknown.error=未知错误,请重新登录
|
||||||
|
|
||||||
##??????
|
##文件上传消息
|
||||||
upload.exceed.maxSize=?????????????????<br/>???????????{0}MB?
|
upload.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB!
|
||||||
upload.filename.exceed.length=????????{0}???
|
upload.filename.exceed.length=上传的文件名最长{0}个字符
|
||||||
|
|
||||||
##??
|
##权限
|
||||||
no.permission=??????????????????? [{0}]
|
no.permission=您没有数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.create.permission=????????????????????? [{0}]
|
no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.update.permission=????????????????????? [{0}]
|
no.update.permission=您没有修改数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.delete.permission=????????????????????? [{0}]
|
no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.export.permission=????????????????????? [{0}]
|
no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.view.permission=????????????????????? [{0}]
|
no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ajax.result.success=success
|
||||||
|
ajax.result.fail=fail
|
||||||
|
table.result.success=success
|
||||||
|
|||||||
@@ -1,38 +1,43 @@
|
|||||||
#????
|
#错误消息
|
||||||
not.null=* ????
|
not.null=* 必须填写
|
||||||
user.jcaptcha.error=?????
|
user.jcaptcha.error=验证码错误
|
||||||
user.jcaptcha.expire=??????
|
user.jcaptcha.expire=验证码已失效
|
||||||
user.not.exists=?????/????
|
user.not.exists=用户不存在/密码错误
|
||||||
user.password.not.match=?????/????
|
user.password.not.match=用户不存在/密码错误
|
||||||
user.password.retry.limit.count=??????{0}?
|
user.password.retry.limit.count=密码输入错误{0}次
|
||||||
user.password.retry.limit.exceed=??????{0}??????{1}??
|
user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定{1}分钟
|
||||||
user.password.delete=????????????
|
user.password.delete=对不起,您的账号已被删除
|
||||||
user.blocked=????????????
|
user.blocked=用户已封禁,请联系管理员
|
||||||
role.blocked=????????????
|
role.blocked=角色已封禁,请联系管理员
|
||||||
login.blocked=??????IP?????????
|
login.blocked=很遗憾,访问IP已被列入系统黑名单
|
||||||
user.logout.success=????
|
user.logout.success=退出成功
|
||||||
|
|
||||||
length.not.valid=?????{min}?{max}?????
|
length.not.valid=长度必须在{min}到{max}个字符之间
|
||||||
|
|
||||||
user.username.not.valid=* 2?20?????????????????????????
|
user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头
|
||||||
user.password.not.valid=* 5-50???
|
user.password.not.valid=* 5-50个字符
|
||||||
|
|
||||||
user.email.not.valid=??????
|
user.email.not.valid=邮箱格式错误
|
||||||
user.mobile.phone.number.not.valid=???????
|
user.mobile.phone.number.not.valid=手机号格式错误
|
||||||
user.login.success=????
|
user.login.success=登录成功
|
||||||
user.register.success=????
|
user.register.success=注册成功
|
||||||
user.notfound=?????
|
user.notfound=请重新登录
|
||||||
user.forcelogout=?????????????
|
user.forcelogout=管理员强制退出,请重新登录
|
||||||
user.unknown.error=??????????
|
user.unknown.error=未知错误,请重新登录
|
||||||
|
|
||||||
##??????
|
##文件上传消息
|
||||||
upload.exceed.maxSize=?????????????????<br/>???????????{0}MB?
|
upload.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB!
|
||||||
upload.filename.exceed.length=????????{0}???
|
upload.filename.exceed.length=上传的文件名最长{0}个字符
|
||||||
|
|
||||||
##??
|
##权限
|
||||||
no.permission=??????????????????? [{0}]
|
no.permission=您没有数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.create.permission=????????????????????? [{0}]
|
no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.update.permission=????????????????????? [{0}]
|
no.update.permission=您没有修改数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.delete.permission=????????????????????? [{0}]
|
no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.export.permission=????????????????????? [{0}]
|
no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}]
|
||||||
no.view.permission=????????????????????? [{0}]
|
no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}]
|
||||||
|
|
||||||
|
|
||||||
|
ajax.result.success=操作成功
|
||||||
|
ajax.result.fail=操作失败
|
||||||
|
table.result.success=查询成功
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package com.ruoyi.common.core.controller;
|
|||||||
import java.beans.PropertyEditorSupport;
|
import java.beans.PropertyEditorSupport;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.common.utils.*;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.web.bind.WebDataBinder;
|
import org.springframework.web.bind.WebDataBinder;
|
||||||
@@ -15,10 +17,6 @@ import com.ruoyi.common.core.domain.model.LoginUser;
|
|||||||
import com.ruoyi.common.core.page.PageDomain;
|
import com.ruoyi.common.core.page.PageDomain;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
import com.ruoyi.common.core.page.TableSupport;
|
import com.ruoyi.common.core.page.TableSupport;
|
||||||
import com.ruoyi.common.utils.DateUtils;
|
|
||||||
import com.ruoyi.common.utils.PageUtils;
|
|
||||||
import com.ruoyi.common.utils.SecurityUtils;
|
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
|
||||||
import com.ruoyi.common.utils.sql.SqlUtil;
|
import com.ruoyi.common.utils.sql.SqlUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -84,7 +82,7 @@ public class BaseController
|
|||||||
{
|
{
|
||||||
TableDataInfo rspData = new TableDataInfo();
|
TableDataInfo rspData = new TableDataInfo();
|
||||||
rspData.setCode(HttpStatus.SUCCESS);
|
rspData.setCode(HttpStatus.SUCCESS);
|
||||||
rspData.setMsg("查询成功");
|
rspData.setMsg(MessageUtils.message("table.result.success"));
|
||||||
rspData.setRows(list);
|
rspData.setRows(list);
|
||||||
rspData.setTotal(new PageInfo(list).getTotal());
|
rspData.setTotal(new PageInfo(list).getTotal());
|
||||||
return rspData;
|
return rspData;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package com.ruoyi.common.core.domain;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.ruoyi.common.constant.HttpStatus;
|
import com.ruoyi.common.constant.HttpStatus;
|
||||||
|
import com.ruoyi.common.utils.MessageUtils;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -66,7 +67,7 @@ public class AjaxResult extends HashMap<String, Object>
|
|||||||
*/
|
*/
|
||||||
public static AjaxResult success()
|
public static AjaxResult success()
|
||||||
{
|
{
|
||||||
return AjaxResult.success("操作成功");
|
return AjaxResult.success(MessageUtils.message("ajax.result.success"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -76,7 +77,7 @@ public class AjaxResult extends HashMap<String, Object>
|
|||||||
*/
|
*/
|
||||||
public static AjaxResult success(Object data)
|
public static AjaxResult success(Object data)
|
||||||
{
|
{
|
||||||
return AjaxResult.success("操作成功", data);
|
return AjaxResult.success(MessageUtils.message("ajax.result.success"), data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -132,7 +133,7 @@ public class AjaxResult extends HashMap<String, Object>
|
|||||||
*/
|
*/
|
||||||
public static AjaxResult error()
|
public static AjaxResult error()
|
||||||
{
|
{
|
||||||
return AjaxResult.error("操作失败");
|
return AjaxResult.error(MessageUtils.message("ajax.result.fail"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
|
|||||||
import org.springframework.web.servlet.i18n.SessionLocaleResolver;
|
import org.springframework.web.servlet.i18n.SessionLocaleResolver;
|
||||||
import com.ruoyi.common.constant.Constants;
|
import com.ruoyi.common.constant.Constants;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 资源文件配置加载
|
* 资源文件配置加载
|
||||||
*
|
*
|
||||||
@@ -22,7 +24,7 @@ public class I18nConfig implements WebMvcConfigurer
|
|||||||
{
|
{
|
||||||
SessionLocaleResolver slr = new SessionLocaleResolver();
|
SessionLocaleResolver slr = new SessionLocaleResolver();
|
||||||
// 默认语言
|
// 默认语言
|
||||||
slr.setDefaultLocale(Constants.DEFAULT_LOCALE);
|
slr.setDefaultLocale(Locale.US);
|
||||||
return slr;
|
return slr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user