EasyUI Forum
September 14, 2025, 12:17:41 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Poll
Question: What About Localization
localize - 0 (0%)
data grid - 0 (0%)
Total Voters: 0

Pages: [1]
  Print  
Author Topic: localization  (Read 16274 times)
al__gol
Newbie
*
Posts: 2


View Profile Email
« on: July 07, 2013, 11:39:01 AM »

hi, everyone!

which have the ability to localize controls? my app needs to support language other than english, i would really like to change the strings in dataGrid, for example when data load in progress - "Processing, please wait", or text "Page.. of". and in all places where i get english text. Can everybody help me ? thanks.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 08, 2013, 02:04:00 AM »

Try to include a locale file in your page.
Code:
	<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../locale/easyui-lang-de.js"></script>
Logged
al__gol
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: July 10, 2013, 01:01:10 AM »

thanks)
Logged
bvn
Newbie
*
Posts: 13


View Profile
« Reply #3 on: January 04, 2018, 09:50:52 AM »

I have two short questions in this topic. Can you add my locale for Ukrainian (see in attachment)?

And how can I localize my own messages in my application? Does the EasyUI provide the instruments for that?
Logged
bvn
Newbie
*
Posts: 13


View Profile
« Reply #4 on: January 04, 2018, 12:55:13 PM »

Ok, localization of my own messages I have solved just with global object from correct locale file.

message = {
    somemsg: 'Some message',
    ....
};

and use it everywhere:

$.messager.alert(message.somemsg, ...);

So, I will be glad to see my locale file in new EasyUI update package. No need any author mentions.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!