EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: al__gol on July 07, 2013, 11:39:01 AM



Title: localization
Post by: al__gol 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.


Title: Re: localization
Post by: stworthy 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>


Title: Re: localization
Post by: al__gol on July 10, 2013, 01:01:10 AM
thanks)


Title: Re: localization
Post by: bvn 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?


Title: Re: localization
Post by: bvn 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.