Dear, I am using SmartClient Ent version 11.0p build 2016-12.25.
I have a problem with locale "ko".
I hvae tried add "ko" to the example, "localization".
After I added it and tried, the date field disappers.
Secondly, the Nationalhood has very strange charaters not like "2017/03/25"
Could you please look into the bug?
---------------------------------------
// replace "myApp" with an abbreviation of your application name or company name to avoid
// collisions. This structure would typically be loaded from a file based on the locale,
// similar to how the frameworkMessages file is loaded
var myApp = {
messages: {
localeTitle: "Locale",
changeLocaleTitle: "Change Locale",
dateTitle: "Date",
filterTitle: "Filter",
countryTitle: "Country",
continentTitle: "Continent",
populationTitle: "Population",
areaTitle: "Area (km²)",
nationhoodTitle: "Nationhood"
}
}
isc.DynamicForm.create({
ID: "localeForm",
fields: [
{name:"locale", title: myApp.messages.localeTitle, type:"select",
defaultValue: "en",
valueMap: {
"en" : "English",
"cs" : "Czech",
"de" : "German",
"es" : "Spanish",
"fr" : "French",
"it" : "Italian",
"pt" : "Portuguese",
"pt_BR" : "Brazilian Portuguese",
"ru_RU" : "Russian",
"ko":"Korean" // <----------------------------------------------------------- Here I've added ko
}
},
{name:"changeLocale", title: myApp.messages.changeLocaleTitle, type:"button",
click : function (form, item) {
var newUrl = window.location.href;
var selLocale = form.getValue("locale");
if (newUrl.indexOf("locale") > 0) {
var regex = new RegExp("locale=[a-zA-Z_]+");
newUrl = newUrl.replace(regex, "locale=" + selLocale);
.....,
--------------------------------------------------------------------------------------------
I have a problem with locale "ko".
I hvae tried add "ko" to the example, "localization".
After I added it and tried, the date field disappers.
Secondly, the Nationalhood has very strange charaters not like "2017/03/25"
Could you please look into the bug?
---------------------------------------
// replace "myApp" with an abbreviation of your application name or company name to avoid
// collisions. This structure would typically be loaded from a file based on the locale,
// similar to how the frameworkMessages file is loaded
var myApp = {
messages: {
localeTitle: "Locale",
changeLocaleTitle: "Change Locale",
dateTitle: "Date",
filterTitle: "Filter",
countryTitle: "Country",
continentTitle: "Continent",
populationTitle: "Population",
areaTitle: "Area (km&sup2;)",
nationhoodTitle: "Nationhood"
}
}
isc.DynamicForm.create({
ID: "localeForm",
fields: [
{name:"locale", title: myApp.messages.localeTitle, type:"select",
defaultValue: "en",
valueMap: {
"en" : "English",
"cs" : "Czech",
"de" : "German",
"es" : "Spanish",
"fr" : "French",
"it" : "Italian",
"pt" : "Portuguese",
"pt_BR" : "Brazilian Portuguese",
"ru_RU" : "Russian",
"ko":"Korean" // <----------------------------------------------------------- Here I've added ko
}
},
{name:"changeLocale", title: myApp.messages.changeLocaleTitle, type:"button",
click : function (form, item) {
var newUrl = window.location.href;
var selLocale = form.getValue("locale");
if (newUrl.indexOf("locale") > 0) {
var regex = new RegExp("locale=[a-zA-Z_]+");
newUrl = newUrl.replace(regex, "locale=" + selLocale);
.....,
--------------------------------------------------------------------------------------------
Comment