I use jqGrid grid table plugin for my HTML files. How can I internationalize my table's column, header etc? I mean I will load a property file or change a variable, my table template will be in that language?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
If you're using version 4.8 and above, regional parameter can be set in grid control.
E.g $("#jqGrid").jqGrid({ ... regional : 'cn', ... });
I wrote my suggestion how one can implement the jqGrid internationalization in the post. See the demo for example. You can make yourself the changes which I suggestion. One needs only to modify the "i18n/grid.locale-XX.js" files without changing of the main jqGrid code.
So you will be able to implement pages which supports many languages, the default language will be choosed based on the language of the web browser. Moreover you can allow the user to change the jqGrid language dynamically from
to
for example.
P.S. Another old suggestion to use jQuery Globalization plugin could be also interesting for you.
Simply replace:
with a language of your choice, like:
Standard (English) locale, Redmond theme:
Polish locale, Le Frog jQuery UI theme:
Source