Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Locale bug with Korean

    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);
    .....,
    --------------------------------------------------------------------------------------------


    #2
    The problem here was the Korean translation of attribute date_inputFormat (by a user on getlocalization.com/isomorphic) - this attribute represents the order in which date elements are displayed - the default is MDY (Month, Day, Year) and someone had translated this value to the equivalent Korean characters.

    We've updated it to YMD (Year, Month, Day), which appears to be the standard for Korean.

    You can test the change in builds dated March 28 and later.

    Comment

    Working...
    X