Merge pull request #12 from nikolaydubina/feature/korean
Feature/korean
@ -209,7 +209,7 @@ func (d *MonthLabelsVisitor) Visit(iter *DayIterator) {
|
||||
// All weekday labels assumed to have same width, which really depends on font.
|
||||
// offset argument is top right corner of where to insert column of weekday labels.
|
||||
func drawWeekdayLabels(img *image.RGBA, offset image.Point, weekdays map[time.Weekday]bool, boxSize int, margin int, color color.RGBA, lp LabelsProvider) {
|
||||
width := 300
|
||||
width := 250
|
||||
height := 100
|
||||
y := offset.Y + height
|
||||
for _, w := range weekdayOrder {
|
||||
|
@ -32,27 +32,27 @@ var localeConfig = map[string]LabelsProvider{
|
||||
},
|
||||
"ko_KR": LabelsProvider{
|
||||
months: map[time.Month]string{
|
||||
time.January: "일월",
|
||||
time.February: "이월",
|
||||
time.March: "삼월",
|
||||
time.April: "사월",
|
||||
time.May: "오월",
|
||||
time.June: "유월",
|
||||
time.July: "칠월",
|
||||
time.August: "팔월",
|
||||
time.September: "구월",
|
||||
time.October: "시월",
|
||||
time.November: "십일월",
|
||||
time.December: "십이월",
|
||||
time.January: "1월",
|
||||
time.February: "2월",
|
||||
time.March: "3월",
|
||||
time.April: "4월",
|
||||
time.May: "5월",
|
||||
time.June: "6월",
|
||||
time.July: "7월",
|
||||
time.August: "8월",
|
||||
time.September: "9월",
|
||||
time.October: "10월",
|
||||
time.November: "11월",
|
||||
time.December: "12월",
|
||||
},
|
||||
weekdays: map[time.Weekday]string{
|
||||
time.Monday: "월요일",
|
||||
time.Tuesday: "화요일",
|
||||
time.Wednesday: "수요일",
|
||||
time.Thursday: "목요일",
|
||||
time.Friday: "금요일",
|
||||
time.Saturday: "토요일",
|
||||
time.Sunday: "일요일",
|
||||
time.Monday: "월",
|
||||
time.Tuesday: "화",
|
||||
time.Wednesday: "수",
|
||||
time.Thursday: "목",
|
||||
time.Friday: "금",
|
||||
time.Saturday: "토",
|
||||
time.Sunday: "일",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
BIN
charts/testdata/basic.png
vendored
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
BIN
charts/testdata/colorscale_1.png
vendored
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
BIN
charts/testdata/colorscale_2.png
vendored
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
BIN
charts/testdata/korean.png
vendored
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 73 KiB |
BIN
charts/testdata/noseparator.png
vendored
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 86 KiB |