mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
260 stars 182 forks source link

support Korean #55

Closed perhapsspy closed 11 years ago

perhapsspy commented 11 years ago

I hope support Korean.

this is code.

...

    var DAYS_OF_WEEK_KO = ['일', '월', '화', '수', '목', '금', '토'];

...

    var MONTHS_KO = [ "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월" ];

...

    } else if (locale === "es"){
        daysOfWeek = DAYS_OF_WEEK_ES;
    } else if (locale === "ko"){
        daysOfWeek = DAYS_OF_WEEK_KO;
    }

...

    } else if(locale == "es"){
        $now_month.text(date.getFullYear() + " - " + MONTHS_ES[date.getMonth()]);
    } else if(locale == "ko"){
        $now_month.text(date.getFullYear() + " - " + MONTHS_KO[date.getMonth()]);
    } else {
        $now_month.text(date.getFullYear() + " - " + MONTHS_EN[date.getMonth()]);
    }
mugifly commented 11 years ago

Thank you! :)

8150cb31f1ba3e156c083a5ea006acb3a7e07a16 Add: Korean locale (Thanks to: perhapsspy)

I will release this plugin as a new version that includes your locale, in a few days.