当前位置:网站首页>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 :
边栏推荐
- Several silly built-in functions about relative path / absolute path operation in CAPL script
- C杂讲 浅拷贝 与 深拷贝
- Super detailed steps to implement Wechat public number H5 Message push
- MySQL实战优化高手04 借着更新语句在InnoDB存储引擎中的执行流程,聊聊binlog是什么?
- How to make shell script executable
- Safety notes
- Preliminary introduction to C miscellaneous lecture document
- 华南技术栈CNN+Bilstm+Attention
- MySQL实战优化高手02 为了执行SQL语句,你知道MySQL用了什么样的架构设计吗?
- Constants and pointers
猜你喜欢
AI的路线和资源
Carolyn Rosé博士的社交互通演讲记录
MySQL combat optimization expert 12 what does the memory data structure buffer pool look like?
[after reading the series of must know] one of how to realize app automation without programming (preparation)
16 医疗挂号系统_【预约下单】
cmooc互联网+教育
Listen to my advice and learn according to this embedded curriculum content and curriculum system
South China Technology stack cnn+bilstm+attention
The appearance is popular. Two JSON visualization tools are recommended for use with swagger. It's really fragrant
四川云教和双师模式
随机推荐
Retention policy of RMAN backup
max-flow min-cut
Not registered via @enableconfigurationproperties, marked (@configurationproperties use)
Mexican SQL manual injection vulnerability test (mongodb database) problem solution
Canoe CAPL file operation directory collection
C miscellaneous dynamic linked list operation
MySQL底层的逻辑架构
Good blog good material record link
西南大学:胡航-关于学习行为和学习效果分析
MySQL实战优化高手08 生产经验:在数据库的压测过程中,如何360度无死角观察机器性能?
MySQL实战优化高手10 生产经验:如何为数据库的监控系统部署可视化报表系统?
jar运行报错no main manifest attribute
MySQL combat optimization expert 02 in order to execute SQL statements, do you know what kind of architectural design MySQL uses?
Docker MySQL solves time zone problems
MySQL combat optimization expert 03 uses a data update process to preliminarily understand the architecture design of InnoDB storage engine
华南技术栈CNN+Bilstm+Attention
Installation de la pagode et déploiement du projet flask
NLP routes and resources
MySQL real battle optimization expert 08 production experience: how to observe the machine performance 360 degrees without dead angle in the process of database pressure test?
Southwest University: Hu hang - Analysis on learning behavior and learning effect