diff options
| -rw-r--r-- | locales/en.json | 4 | ||||
| -rw-r--r-- | locales/ja.json | 6 | ||||
| -rw-r--r-- | views/publicEventList.handlebars | 2 | 
3 files changed, 8 insertions, 4 deletions
diff --git a/locales/en.json b/locales/en.json index fece34d..cc0db9d 100644 --- a/locales/en.json +++ b/locales/en.json @@ -299,7 +299,9 @@    "views.publiceventlist.events": "Events",    "views.publiceventlist.groups": "Groups",    "views.publiceventlist.nogroups": "No groups!", -  "views.publiceventlist.numoevents": "{{this.numberOfEvents}} {{plural this.numberOfEvents \"event(s)\"}}", +  "views.publiceventlist.numoevents_one": "{{count}} event", +  "views.publiceventlist.numoevents_other": "{{count}} events", +  "views.publiceventlist.numoevents_zero": "No event",    "views.publiceventlist.pastevents": "Past events",    "views.publiceventlist.upcomingevents": "Upcoming events",    "views.right": "Get it right!" diff --git a/locales/ja.json b/locales/ja.json index cfa1e75..f470b46 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -257,7 +257,7 @@    "views.partials.editeventgroup.del": "このイベントグループを削除する",    "views.partials.editeventgroup.delbutton": "イベントグループを削除",    "views.partials.eventform.creatoremail": "あなたのメールアドレス", -  "views.partials.eventform.eventdescription": "説明(必須)", +  "views.partials.eventform.eventdescription": "説明",    "views.partials.eventform.eventgroup": "イベントグループにリンクする",    "views.partials.eventform.eventgroupdata": "このイベントをイベントグループにリンク",    "views.partials.eventform.eventgroupedittoken": "この長い文字列は、グループを作成したときに送信する確認メールにも記載しています。", @@ -299,7 +299,9 @@    "views.publiceventlist.events": "公開イベント",    "views.publiceventlist.groups": "公開グループ",    "views.publiceventlist.nogroups": "公開グループなし!", -  "views.publiceventlist.numoevents": "{{this.numberOfEvents}} 件のイベント", +  "views.publiceventlist.numoevents_one": "{{count}} 件のイベント", +  "views.publiceventlist.numoevents_other": "{{count}} 件のイベント", +  "views.publiceventlist.numoevents_zero": "イベントなし",    "views.publiceventlist.pastevents": "過去の公開イベント",    "views.publiceventlist.upcomingevents": "今後の公開イベント",    "views.right": "了解!" diff --git a/views/publicEventList.handlebars b/views/publicEventList.handlebars index e95379b..a16735b 100644 --- a/views/publicEventList.handlebars +++ b/views/publicEventList.handlebars @@ -40,7 +40,7 @@          <a href="/group/{{this.id}}" class="list-group-item list-group-item-action">              <i class="fas fa-fw fa-calendar-alt"></i>              <strong>{{this.name}}</strong> -            <span class="badge badge-secondary ml-2">{{{t "views.publiceventlist.numoevents" }}}</span> +            <span class="badge badge-secondary ml-2">{{plural "views.publiceventlist.numoevents" this.numberOfEvents }}</span>          </a>          {{/each}}      {{else}}  | 
