我正在尝试从 AJAX Control Toolkit 实现 HtmlEditorExtender。
是否可以更改控制语言?我希望语言是法语。更改 CalendarExtender 控件的语言完全没有问题,但它根本不适用于 HtmlEditorExtender。例如,控件仍然显示“Font”和“Size”等英文单词。
我已经完成了网络上建议的一切来更改语言。
全球化文化在 web.config 中设置:
全球化 uiCulture="fr"culture="fr-CA" fileEncoding="utf-8"
我在母版页中有一个脚本管理器,并且 EnableScriptGlobalization 和 EnableScriptLocalization 都设置为 true:
asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true" ScriptMode="Release" AsyncPostBackTimeOut="0"/>
文化在页面上设置:
%@ Page Language="C#" MasterPageFile="~/FullForm.master" AutoEventWireup="true" Culture="fr-CA" UICulture="fr" Inherits="LAC.WebApp.Management.Parameters.ParametersPage" meta:resourcekey ="页面" CodeBehind="Parameters.aspx.cs" %
我在 bin 文件夹中有一个“fr”文件夹,其中包含 AjaxControlToolkit.resources.dll 文件。
我试图在发布模式下运行应用程序,但它根本没有改变任何东西。
如果您有任何想法,请分享!
谢谢