Skip to content

Commit

Permalink
Merge pull request #15 from sugi/master
Browse files Browse the repository at this point in the history
Japanese translation
  • Loading branch information
yury committed Oct 7, 2013
2 parents aee12c3 + 9da5e8e commit 99d30ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/assets/javascripts/anjlab/datepicker.js.coffee
Expand Up @@ -35,6 +35,16 @@ Locales =
daysMin: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"]
months: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"]
monthsShort: ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"]
ja:
dates:
format: 'yyyy/mm/dd'
weekStart: 0
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月"]


DateTools =
modes: [
Expand Down
3 changes: 3 additions & 0 deletions lib/anjlab-widgets.rb
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
require "anjlab-widgets/version"
require "anjlab-widgets/engine"

Expand All @@ -15,6 +16,8 @@ def self.date_format date_format_locale = ::I18n.default_locale
"%d/%m/%Y"
when :'zh-TW'
"%Y-%m-%d"
when :ja
"%Y/%m/%d"
else
"%Y-%m-%d"
end
Expand Down

0 comments on commit 99d30ee

Please sign in to comment.