Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added japanese translation. #63

Merged
merged 1 commit into from
Jan 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions src/Locales/ja_JP.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
// locale: Japanese ( ja-jp )
// author: Takumi https://github.com/takumi-dev
return array(
"months" => explode('_', '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'),
"monthsShort" => explode('_', '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'),
"weekdays" => explode('_', '月曜日_火曜日_水曜日_木曜日_金曜日_土曜日_日曜日'),
"weekdaysShort" => explode('_', '月_火_水_木_金_土_日'),
"calendar" => array(
"sameDay" => '[今日]',
"nextDay" => '[明日]',
"lastDay" => '[昨日]',
"lastWeek" => '[先週]l',
"sameElse" => 'l',
"withTime" => 'H時i分',
"default" => 'Y年m月d日',
),
"relativeTime" => array(
"future" => '%s後',
"past" => '%s前',
"s" => '数秒',
"m" => '1分',
"mm" => '%d分',
"h" => '1時間',
"hh" => '%d時間',
"d" => '1日',
"dd" => '%d日',
"M" => '1ヶ月',
"MM" => '%dヶ月',
"y" => '1年',
"yy" => '%d年',
),
"ordinal" => function ($number)
{
$prefix = '第';
return $prefix.$number;
},
"week" => array(
"dow" => 1, // Monday is the first day of the week.
"doy" => 4 // The week that contains Jan 4th is the first week of the year.
),
);