Hello everyone,
first of all, nice job and good luck with the development of Kendo UI. it has made our lives easier in many ways.
I am building a web application and need multi-language support in client-side. I am using Kendo UI / JQuery and for the language part i chose this library which is actually a JQuery plugin, so it should have full compatibility with Kendo UI.
So, imagine we have the following html:
and in javascript:
Translations are stored in a seperate file (in our case that would be gr.js - since english is the default defined in html) in the form:
The problem is: Of all the translations that should happen, only the "search" is translated... The other strings are left untouched. I thought of refreshing a Kendo element so it renders the new values, but uncommenting the two lines in onChange() function doesn't change a thing...
Any ideas?
Thank you,
fedon
first of all, nice job and good luck with the development of Kendo UI. it has made our lives easier in many ways.
I am building a web application and need multi-language support in client-side. I am using Kendo UI / JQuery and for the language part i chose this library which is actually a JQuery plugin, so it should have full compatibility with Kendo UI.
So, imagine we have the following html:
<ul id="menu"> <li lang="en"> Home </li> <li lang="en"> Profile </li> <li> <div id="search-box"> <input type="text" id="searchfor" class="k-textbox" /> <button class="k-button" id="search" lang="en">search</button> </div> </li> <li> <select id="select_lang"> <option lang="en" value="en"> English </option> <option lang="en" value="gr"> Greek </option> </select> </li></ul>and in javascript:
window.lang = new jquery_lang_js(); // Create translator$(document).ready(function() { $("#menu").kendoMenu(); $("#select_lang").kendoDropDownList({ change: onLangChange }); window.lang.run(); //start translator function onLangChange() { var value = $("#select_lang").val(); window.lang.change(value); //var dropDownLanguage = $("#select_lang").data("kendoDropDownList"); //dropDownLanguage.refresh(); } });Translations are stored in a seperate file (in our case that would be gr.js - since english is the default defined in html) in the form:
jquery_lang_js.prototype.lang.gr = { 'Home': 'Αρχική Σελίδα', 'Profile': 'Προφίλ', 'World Events': 'Παγκόσμια Γεγονότα', 'Documents': 'Έγγραφα', 'Organizations': 'Οργανώσεις', 'search': 'αναζήτηση', 'English': 'Αγγλικά', 'Greek': 'Ελληνικά'}The problem is: Of all the translations that should happen, only the "search" is translated... The other strings are left untouched. I thought of refreshing a Kendo element so it renders the new values, but uncommenting the two lines in onChange() function doesn't change a thing...
Any ideas?
Thank you,
fedon