summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutfuckllc <40531868+gutfuckllc@users.noreply.github.com>2018-08-01 14:25:55 -0400
committergutfuckllc <40531868+gutfuckllc@users.noreply.github.com>2018-08-01 14:25:55 -0400
commitc5b682dc8976f42a91b2c44feb18228605b0a162 (patch)
treef598e8a70b150fd14a8bb7f1e6d521079fe8e856
parentTranslated common/views/widgets/tips.vue (diff)
downloadmisskey-c5b682dc8976f42a91b2c44feb18228605b0a162.tar.gz
misskey-c5b682dc8976f42a91b2c44feb18228605b0a162.tar.bz2
misskey-c5b682dc8976f42a91b2c44feb18228605b0a162.zip
common/views/widgets/calendar.vue
Did weird formatting tricks. Hopefully should work.
-rw-r--r--locales/en.yml14
-rw-r--r--locales/ja.yml13
-rw-r--r--src/client/app/common/views/widgets/calendar.vue14
3 files changed, 34 insertions, 7 deletions
diff --git a/locales/en.yml b/locales/en.yml
index 23a3942dd4..7a10149408 100644
--- a/locales/en.yml
+++ b/locales/en.yml
@@ -237,6 +237,20 @@ common/views/widgets/broadcast.vue:
no-broadcasts: "No announcements"
have-a-nice-day: "Have a nice day!"
next: "Next"
+
+common/views/widgets/calendar.vue:
+ year-english: "Year "
+ year-japanese: ""
+ month-english: "Month "
+ month-japanese: ""
+ day-english: "Day "
+ day-japanese: ""
+ weekday-english: "Weekday "
+ weekday-japanese: ""
+ today: "Today: "
+ this-month: "This month: "
+ this-year: "This year: "
+
common/views/widgets/donation.vue:
title: "Request for donations"
text: "To keep Misskey up and running, we have to spend money on our domain name, the server costs and so on. Since we don't receive money from advertisements, we count on donations from all of you. If you're interested in helping, contact {}. Thank you for your contribution!"
diff --git a/locales/ja.yml b/locales/ja.yml
index 1f76c9604c..a542f72933 100644
--- a/locales/ja.yml
+++ b/locales/ja.yml
@@ -266,6 +266,19 @@ common/views/widgets/broadcast.vue:
no-broadcasts: "お知らせはありません"
have-a-nice-day: "良い一日を!"
next: "次"
+
+common/views/widgets/calendar.vue:
+ year-english: ""
+ year-japanese: "年"
+ month-english: ""
+ month-japanese: "月"
+ day-english: ""
+ day-japanese: "日"
+ weekday-english: ""
+ weekday-japanese: "曜日"
+ today: "今日:"
+ this-month: "今月:"
+ this-year: "今年:"
common/views/widgets/donation.vue:
title: "寄付のお願い"
diff --git a/src/client/app/common/views/widgets/calendar.vue b/src/client/app/common/views/widgets/calendar.vue
index 9c8f1bff68..d928663bb4 100644
--- a/src/client/app/common/views/widgets/calendar.vue
+++ b/src/client/app/common/views/widgets/calendar.vue
@@ -4,27 +4,27 @@
<div class="mkw-calendar--body">
<div class="calendar" :data-is-holiday="isHoliday">
<p class="month-and-year">
- <span class="year">{{ year }}年</span>
- <span class="month">{{ month }}月</span>
+ <span class="year">%i18n:year-english%{{ year }}%i18n:year-japanese%</span>
+ <span class="month">%i18n:month-english%{{ month }}%i18n:month-japanese%</span>
</p>
- <p class="day">{{ day }}日</p>
- <p class="week-day">{{ weekDay }}曜日</p>
+ <p class="day">>%i18n:day-english%{{ day }}%i18n:day-japanese%</p>
+ <p class="week-day">%i18n:weekday-english%{{ weekDay }}%i18n:weekday-japanese%</p>
</div>
<div class="info">
<div>
- <p>今日:<b>{{ dayP.toFixed(1) }}%</b></p>
+ <p>%i18n:today%<b>{{ dayP.toFixed(1) }}%</b></p>
<div class="meter">
<div class="val" :style="{ width: `${dayP}%` }"></div>
</div>
</div>
<div>
- <p>今月:<b>{{ monthP.toFixed(1) }}%</b></p>
+ <p>%i18n:this-month%<b>{{ monthP.toFixed(1) }}%</b></p>
<div class="meter">
<div class="val" :style="{ width: `${monthP}%` }"></div>
</div>
</div>
<div>
- <p>今年:<b>{{ yearP.toFixed(1) }}%</b></p>
+ <p>%i18n:this-year%<b>{{ yearP.toFixed(1) }}%</b></p>
<div class="meter">
<div class="val" :style="{ width: `${yearP}%` }"></div>
</div>