With this class ErgoDataGrid is a multi-language application:
- inside it all the words used for the ErgoDataGrid working are declared, in the various possible languages (english and italian); choosen language is estabilished every time by the ErgoDataGrid.language variable value;
- to make it work in a language different from that included in the zip, it's possible to modify lang.js as reported in the code on end:
lang.js file (grid/lang.js)
function lang(grid) {
if (grid.language=="it") {
this.noBrowser="Mi dispiace,<BR>questo script funziona solo con Internet Explorer";
... (others words in italian language)
} else if (grid.language=="en") {
this.noBrowser="I'm sorry,<BR>this script works only with Internet Explorer"
... (others words in english language)
} else if (grid.language=="language_to_add_abbrevation") {
this.noBrowser="words for the string which indicate, in the language to add: this browser is not supported";
... (others words in the language to add)
}
}
|