Created
December 24, 2014 04:00
-
-
Save fronteer-kr/f785397d9cdfa78159e2 to your computer and use it in GitHub Desktop.
bootstrap-datepicker 한글화
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 월-년 ==> 년-월 표시 | |
fill() 함수 내 수정 (대략 738 line 부근) | |
// 수정전 | |
this.picker.find('.datepicker-days thead th.datepicker-switch') | |
.text(dates[this.o.language].months[month]+' '+year); | |
// 수정후 | |
this.picker.find('.datepicker-days thead th.datepicker-switch') | |
.text(year + '년 ' + dates[this.o.language].months[month]); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function($){ | |
$.fn.datepicker.dates['kr'] = { | |
days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"], | |
daysShort: ["일", "월", "화", "수", "목", "금", "토", "일"], | |
daysMin: ["일", "월", "화", "수", "목", "금", "토", "일"], | |
months: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], | |
monthsShort: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"] | |
}; | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment