当前位置:网站首页>Ueeditor internationalization configuration, supporting Chinese and English switching
Ueeditor internationalization configuration, supporting Chinese and English switching
2022-07-06 10:17:00 【CHQIUU】
UEditor At present, it supports Chinese and English . Which language needs to be used to directly load the response js that will do
As shown in the figure below
load lang/en/en.js Show English after
load lang/zh-cn/zh-cn.js Chinese is displayed after
Here is JSP and FreeMarker There are two ways to realize automatic switching of page internationalization .
FreeMarker Page configuration
<#if language=='EN'>
<script type="text/javascript" charset="utf-8" src="${contextPath}/static/ueditor/lang/en/en.js"></script>
<#else>
<script type="text/javascript" charset="utf-8" src="${contextPath}/static/ueditor/lang/zh-cn/zh-cn.js"></script>
</#if>
JSP Page configuration
<%if ("EN".equals(language)){
%>
<script type="text/javascript" charset="utf-8" src="<%=contextPath%>/static/ueditor/lang/en/en.js"></script>
<%} else {
%>
<script type="text/javascript" charset="utf-8" src="<%=contextPath%>/static/ueditor/lang/zh-cn/zh-cn.js"></script>
<%} %>
The following is the renderings :
边栏推荐
- Vh6501 Learning Series
- AI的路线和资源
- How to make shell script executable
- [after reading the series of must know] one of how to realize app automation without programming (preparation)
- 实现微信公众号H5消息推送的超级详细步骤
- MySQL Real Time Optimization Master 04 discute de ce qu'est binlog en mettant à jour le processus d'exécution des déclarations dans le moteur de stockage InnoDB.
- 四川云教和双师模式
- 解决在window中远程连接Linux下的MySQL
- Write your own CPU Chapter 10 - learning notes
- Solve the problem of remote connection to MySQL under Linux in Windows
猜你喜欢
Carolyn Rosé博士的社交互通演讲记录
max-flow min-cut
17 医疗挂号系统_【微信支付】
A necessary soft skill for Software Test Engineers: structured thinking
MySQL底层的逻辑架构
14 医疗挂号系统_【阿里云OSS、用户认证与就诊人】
Implement sending post request with form data parameter
Release of the sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
14 medical registration system_ [Alibaba cloud OSS, user authentication and patient]
颜值爆表,推荐两款JSON可视化工具,配合Swagger使用真香
随机推荐
Constants and pointers
Canoe CAPL file operation directory collection
Super detailed steps to implement Wechat public number H5 Message push
Jar runs with error no main manifest attribute
Write your own CPU Chapter 10 - learning notes
高并发系统的限流方案研究,其实限流实现也不复杂
What is the current situation of the game industry in the Internet world?
华南技术栈CNN+Bilstm+Attention
cmooc互联网+教育
Compress decompress
Sichuan cloud education and double teacher model
[CV] target detection: derivation of common terms and map evaluation indicators
Control the operation of the test module through the panel in canoe (Advanced)
Random notes
max-flow min-cut
NLP routes and resources
竞赛vscode配置指南
South China Technology stack cnn+bilstm+attention
Flash operation and maintenance script (running for a long time)
AI的路线和资源