feat(i18n): 支持系统中英文切换

为页面、菜单及提示接入中英文资源,保留业务值和导出中文标题,以支持用户切换界面语言。
This commit is contained in:
2026-11-02 11:16:43 +08:00
parent 4bc1da6491
commit e30bb4b1b7
859 changed files with 91079 additions and 11959 deletions
@@ -84,14 +84,14 @@ namespace Web.Controls
{
foreach (Model.DataSourceTeam dataSourceTeam in dataSourceChart.DataSourceTeams)
{
this.lblTotal.Text = "累计值为:";
this.lblTotal.Text = BLL.UiText.Message("累计值为:");
if (dataSourceTeam.DataPointName == "累计")
{
foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints)
{
this.lblTotal.Text += (dataSourcePoint.PointText + ":" + dataSourcePoint.PointValue + ",");
}
if (this.lblTotal.Text != "累计值为:")
if (this.lblTotal.Text != BLL.UiText.Get("累计值为:"))
{
this.lblTotal.Text = this.lblTotal.Text.Substring(0, this.lblTotal.Text.LastIndexOf(","));
}
@@ -120,14 +120,14 @@ namespace Web.Controls
{
foreach (Model.DataSourceTeam dataSourceTeam in dataSourceChart.DataSourceTeams)
{
this.lblTotal.Text = "累计值为:";
this.lblTotal.Text = BLL.UiText.Message("累计值为:");
if (dataSourceTeam.DataPointName == "累计")
{
foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints)
{
this.lblTotal.Text += (dataSourcePoint.PointText + ":" + dataSourcePoint.PointValue + ",");
}
if (this.lblTotal.Text != "累计值为:")
if (this.lblTotal.Text != BLL.UiText.Get("累计值为:"))
{
this.lblTotal.Text = this.lblTotal.Text.Substring(0, this.lblTotal.Text.LastIndexOf(","));
}
@@ -336,7 +336,7 @@ namespace Web.Controls
for (int i = 0; i < chart1.Series["本月概算费用"].Points.Count; i++)
{
chart1.Series["本月概算费用"].Points[i].ToolTip = "本月概算费用\n#VALX\n#VALY";
chart1.Series["本月概算费用"].Points[i].ToolTip = BLL.UiText.Message("本月概算费用\n#VALX\n#VALY");
}
chart1.Series["本月实际费用"].Points.DataBindXY(dv, "月份", dv, "本月实际费用");
@@ -344,7 +344,7 @@ namespace Web.Controls
for (int i = 0; i < chart1.Series["本月实际费用"].Points.Count; i++)
{
chart1.Series["本月实际费用"].Points[i].ToolTip = "本月实际费用\n#VALX\n#VALY";
chart1.Series["本月实际费用"].Points[i].ToolTip = BLL.UiText.Message("本月实际费用\n#VALX\n#VALY");
}
chart1.Series["累计概算费用"].Points.DataBindXY(dv, "月份", dv, "累计概算费用");
@@ -354,7 +354,7 @@ namespace Web.Controls
for (int i = 0; i < chart1.Series["累计概算费用"].Points.Count; i++)
{
chart1.Series["累计概算费用"].Points[i].ToolTip = "累计概算费用\n#VALX\n#VALY";
chart1.Series["累计概算费用"].Points[i].ToolTip = BLL.UiText.Message("累计概算费用\n#VALX\n#VALY");
}
chart1.Series["累计实际费用"].Points.DataBindXY(dv, "月份", dv, "累计实际费用");
@@ -364,7 +364,7 @@ namespace Web.Controls
for (int i = 0; i < chart1.Series["累计实际费用"].Points.Count; i++)
{
chart1.Series["累计实际费用"].Points[i].ToolTip = "累计实际费用\n#VALX\n#VALY";
chart1.Series["累计实际费用"].Points[i].ToolTip = BLL.UiText.Message("累计实际费用\n#VALX\n#VALY");
}
Controls.Add(chart1);
@@ -458,7 +458,7 @@ namespace Web.Controls
{
foreach (Model.DataSourceTeam dataSourceTeam in dataSourceChart.DataSourceTeams)
{
this.lblTotal.Text = "累计值为:";
this.lblTotal.Text = BLL.UiText.Message("累计值为:");
if (dataSourceTeam.DataPointName == "累计")
{
foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints)
@@ -466,7 +466,7 @@ namespace Web.Controls
this.lblTotal.Text += (dataSourcePoint.PointText + ":" + dataSourcePoint.PointValue + ",");
}
if (this.lblTotal.Text != "累计值为:")
if (this.lblTotal.Text != BLL.UiText.Get("累计值为:"))
{
this.lblTotal.Text = this.lblTotal.Text.Substring(0, this.lblTotal.Text.LastIndexOf(","));
}
@@ -497,7 +497,7 @@ namespace Web.Controls
{
foreach (Model.DataSourceTeam dataSourceTeam in dataSourceChart.DataSourceTeams)
{
this.lblTotal.Text = "累计值为:";
this.lblTotal.Text = BLL.UiText.Message("累计值为:");
if (dataSourceTeam.DataPointName == "累计")
{
foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints)
@@ -505,7 +505,7 @@ namespace Web.Controls
this.lblTotal.Text += (dataSourcePoint.PointText + ":" + dataSourcePoint.PointValue + ",");
}
if (this.lblTotal.Text != "累计值为:")
if (this.lblTotal.Text != BLL.UiText.Get("累计值为:"))
{
this.lblTotal.Text = this.lblTotal.Text.Substring(0, this.lblTotal.Text.LastIndexOf(","));
}