]> cat aescling's git repositories - mastodon.git/commitdiff
Allow use of plurals on about page stats. (#8363)
authorM Somerville <dracos@users.noreply.github.com>
Wed, 22 Aug 2018 17:42:47 +0000 (18:42 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 22 Aug 2018 17:42:47 +0000 (19:42 +0200)
app/views/about/more.html.haml
app/views/about/show.html.haml
config/locales/en.yml

index 8411cd276d2da1412d40a0bf9c476807aaa79ae6..20d5a262b96b491b29ecb019ec151b656037b730 100644 (file)
           .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')
index 8a40b97ccb74f97fcb490cd8cc73b1c1408a852c..229b0f55b2bbd64ff2b2973a072876b00b8d1561 100644 (file)
                 .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')
                 .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')
index 45b32131258865dd2b19735708f46449d82927da..5e127dc7138e4f169ca06eba0986c0ff5ece9c06 100644 (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: