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
@@ -21,34 +21,34 @@
<rows>
<f:FormRow>
<Items>
<f:Label ID="lbProjectName" runat="server" Label="项目名称"></f:Label>
<f:Label ID="lbProjectName" runat="server" Label="<%$ Resources:UiText, T_项目名称 %>"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="lbUnitName" runat="server" Label="单位名称"></f:Label>
<f:Label ID="lbUnitName" runat="server" Label="<%$ Resources:UiText, T_单位名称 %>"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="lbUserCode" runat="server" Label="用户编码"></f:Label>
<f:Label ID="lbUserName" runat="server" Label="用户名称"></f:Label>
<f:Label ID="lbUserCode" runat="server" Label="<%$ Resources:UiText, T_用户编码 %>"></f:Label>
<f:Label ID="lbUserName" runat="server" Label="<%$ Resources:UiText, T_用户名称 %>"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpRole" runat="server" Label="角色" EnableEdit="true" ForceSelection="false"
<f:DropDownList ID="drpRole" runat="server" Label="<%$ Resources:UiText, T_角色 %>" EnableEdit="true" ForceSelection="false"
Required="true" ShowRedStar="true" EnableMultiSelect="true" MaxLength="500" EnableCheckBoxSelect="true">
</f:DropDownList>
<f:DropDownList ID="drpIsPost" runat="server" Label="在岗" EnableEdit="true" ForceSelection="false"
<f:DropDownList ID="drpIsPost" runat="server" Label="<%$ Resources:UiText, T_在岗 %>" EnableEdit="true" ForceSelection="false"
Required="true" ShowRedStar="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownBox runat="server" Label="单位工程"
ID="txtUnitWork" EmptyText="--请选择--" EnableMultiSelect="true" MatchFieldWidth="true">
<f:DropDownBox runat="server" Label="<%$ Resources:UiText, T_单位工程 %>"
ID="txtUnitWork" EmptyText="<%$ Resources:UiText, T_请选择_2 %>" EnableMultiSelect="true" MatchFieldWidth="true">
<PopPanel>
<f:Grid ID="gvUnitWork" DataIDField="UnitWorkId"
EnableMultiSelect="true" KeepCurrentSelection="true" Height="300px" Hidden="true" SortField="UnitWorkId" DataTextField="UnitWorkName"
@@ -57,7 +57,7 @@
<Columns>
<f:BoundField Width="100px" DataField="UnitWorkId" SortField="UnitWorkId" DataFormatString="{0}" Hidden="true" />
<f:BoundField Width="100px" DataField="UnitWorkName" SortField="UnitWorkName" DataFormatString="{0}"
HeaderText="单位工程名称" />
HeaderText="<%$ Resources:UiText, T_单位工程名称 %>" />
</Columns>
</f:Grid>
</PopPanel>
@@ -66,10 +66,10 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpWorkPost" runat="server" Label="项目岗位" EnableEdit="true" ForceSelection="false">
<f:DropDownList ID="drpWorkPost" runat="server" Label="<%$ Resources:UiText, T_项目岗位 %>" EnableEdit="true" ForceSelection="false">
</f:DropDownList>
<f:Label ID="Temp" runat="server" Margin="0 0 0 50" Text="说明:项目岗位通过身份证号码与项目现场人员关联。" CssClass="label" ></f:Label>
<f:Label ID="Temp" runat="server" Margin="0 0 0 50" Text="<%$ Resources:UiText, T_说明_项目岗位通过身份证号码与项目现场人员关联 %>" CssClass="label" ></f:Label>
</Items>
</f:FormRow>
</rows>
@@ -77,9 +77,9 @@
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1"
OnClick="btnSave_Click" Text="保存">
OnClick="btnSave_Click" Text="<%$ Resources:UiText, T_保存 %>">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
<f:Button ID="btnClose" EnablePostBack="false" Text="<%$ Resources:UiText, T_关闭 %>" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>