feat(i18n): 支持系统中英文切换
为页面、菜单及提示接入中英文资源,保留业务值和导出中文标题,以支持用户切换界面语言。
This commit is contained in:
@@ -132,7 +132,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference("ProjectDevicesEdit.aspx", "添加设备", 800, 300));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference("ProjectDevicesEdit.aspx",BLL.UiText.Message( "添加设备"), 800, 300));
|
||||
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("请至少选择一条记录!"), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("同步设备出错:"+ addMessage, MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("同步设备出错:"+ addMessage), MessageBoxIcon.Warning);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -190,7 +190,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("请至少选择一条记录!"), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
YunMouHelper.setDefence(device.DeviceSerial, "1", token);
|
||||
if (string.IsNullOrEmpty(res))
|
||||
{
|
||||
Alert.ShowInTop("关联权限出错!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("关联权限出错!"), MessageBoxIcon.Warning);
|
||||
|
||||
}
|
||||
else
|
||||
@@ -220,7 +220,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("请至少选择一条记录!"), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -232,7 +232,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
var res = YunMouHelper.deleteDevicesFromGroups(project.YunMouGroupId, new string[] { device.DeviceSerial }, token);//从权限组移除设备
|
||||
if (string.IsNullOrEmpty(res))
|
||||
{
|
||||
Alert.ShowInTop("关联权限出错!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("关联权限出错!"), MessageBoxIcon.Warning);
|
||||
|
||||
}
|
||||
else
|
||||
@@ -251,11 +251,11 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("请至少选择一条记录!"), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectDevicesEdit.aspx?DeviceId={0}", Grid1.SelectedRowID), "编辑项目单位", 800, 300));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectDevicesEdit.aspx?DeviceId={0}", Grid1.SelectedRowID),BLL.UiText.Message( "编辑项目单位"), 800, 300));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user