How Can Translate Search operation in JQGrid
-
28-10-2019 - |
سؤال
How can translate Search opetarion in JQGrid search box in Search box For example, instead of equal use = simbole.
thanks all
المحلول
jqgrid has full i18n support, check out: jqGrid Internationalization. Looks like you are using Arabic. Simply replace:
<script src="js/lib/grid.locale-en.js"></script>
with Arabic language:
<script src="js/lib/grid.locale-ar.js"></script>
The latter file is part of the jqGrid distribution and contains all you need:
grid.locale-en.js
:
$.jgrid = {
search : {
odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'],
grid.locale-ar.js
:
$.jgrid = {
search : {
odata : ['يساوي', 'يختلف', 'أقل', 'أقل أو يساوي','أكبر','أكبر أو يساوي', 'يبدأ بـ','لا يبدأ بـ','est dans',"n'est pas dans",'ينته بـ','لا ينته بـ','يحتوي','لا يحتوي'],
لا تنتمي إلى StackOverflow