Browse Source

Allow use of plurals on about page stats. (#8363)

master
M Somerville 5 years ago
committed by Eugen Rochko
parent
commit
ad41806e53
3 changed files with 12 additions and 8 deletions
  1. +2
    -2
      app/views/about/more.html.haml
  2. +4
    -4
      app/views/about/show.html.haml
  3. +6
    -2
      config/locales/en.yml

+ 2
- 2
app/views/about/more.html.haml View File

@@ -18,11 +18,11 @@
.information-board__section
%span= t 'about.user_count_before'
%strong= number_with_delimiter @instance_presenter.user_count
%span= t 'about.user_count_after'
%span= t 'about.user_count_after', count: @instance_presenter.user_count
.information-board__section
%span= t 'about.status_count_before'
%strong= number_with_delimiter @instance_presenter.status_count
%span= t 'about.status_count_after'
%span= t 'about.status_count_after', count: @instance_presenter.status_count
.row__mascot
.landing-page__mascot
= image_tag asset_pack_path('elephant_ui_plane.svg')


+ 4
- 4
app/views/about/show.html.haml View File

@@ -56,11 +56,11 @@
.information-board__section
%span= t 'about.user_count_before'
%strong= number_with_delimiter @instance_presenter.user_count
%span= t 'about.user_count_after'
%span= t 'about.user_count_after', count: @instance_presenter.user_count
.information-board__section
%span= t 'about.status_count_before'
%strong= number_with_delimiter @instance_presenter.status_count
%span= t 'about.status_count_after'
%span= t 'about.status_count_after', count: @instance_presenter.status_count
.row__mascot
.landing-page__mascot
= image_tag asset_pack_path('elephant_ui_plane.svg')
@@ -88,11 +88,11 @@
.information-board__section
%span= t 'about.user_count_before'
%strong= number_with_delimiter @instance_presenter.user_count
%span= t 'about.user_count_after'
%span= t 'about.user_count_after', count: @instance_presenter.user_count
.information-board__section
%span= t 'about.status_count_before'
%strong= number_with_delimiter @instance_presenter.status_count
%span= t 'about.status_count_after'
%span= t 'about.status_count_after', count: @instance_presenter.status_count
.row__mascot
.landing-page__mascot
= image_tag asset_pack_path('elephant_ui_plane.svg')


+ 6
- 2
config/locales/en.yml View File

@@ -30,10 +30,14 @@ en:
other_instances: Instance list
privacy_policy: Privacy policy
source_code: Source code
status_count_after: statuses
status_count_after:
one: status
other: statuses
status_count_before: Who authored
terms: Terms of service
user_count_after: users
user_count_after:
one: user
other: users
user_count_before: Home to
what_is_mastodon: What is Mastodon?
accounts:


Loading…
Cancel
Save