EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 09, 2024, 01:52:19 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
How to change language from english?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to change language from english? (Read 11100 times)
zzdfc
Jr. Member
Posts: 58
How to change language from english?
«
on:
August 01, 2015, 09:35:13 AM »
How to change language from english?
Logged
yamilbracho
Jr. Member
Posts: 64
Re: How to change language from english?
«
Reply #1 on:
August 01, 2015, 03:14:40 PM »
In the jEasyui download, folder 'locale', you can find translation for many languages. To use just include the appropiate file for your language, for example, if you want spanish messages just :
<script type="text/javascript" src="easyui/locale/easyui-lang-es.js"></script>
HTH,
Yamil
Logged
zzdfc
Jr. Member
Posts: 58
Re: How to change language from english?
«
Reply #2 on:
August 01, 2015, 09:35:59 PM »
How to change language according to language of browser,please?
Logged
yamilbracho
Jr. Member
Posts: 64
Re: How to change language from english?
«
Reply #3 on:
August 02, 2015, 12:33:02 PM »
You can get browser language using
var language = window.navigator.userLanguage || window.navigator.language;
alert(language);
Accoring the result you can load the appropiate easyui translation file
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...