about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-08-27 17:04:45 +0200
committerGitHub <noreply@github.com>2017-08-27 17:04:45 +0200
commit15093f9113e0eda8a66a7c12bbd92e7e8670da15 (patch)
tree093c7f8c5c02c2bf0a7c6a28140b6b41934a9fea /config
parentf92d991e529686a3bd402b957a2c3727a0094b85 (diff)
Shorten display of large numbers on public profiles (#4711)
Diffstat (limited to 'config')
-rw-r--r--config/i18n-tasks.yml4
-rw-r--r--config/locales/en.yml11
2 files changed, 13 insertions, 2 deletions
diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml
index 849e8116a..b51cf46df 100644
--- a/config/i18n-tasks.yml
+++ b/config/i18n-tasks.yml
@@ -36,7 +36,7 @@ ignore_missing:
   - 'activerecord.attributes.*'
   - 'activerecord.errors.*'
   - '{devise,pagination,doorkeeper}.*'
-  - '{date,datetime,time}.*'
+  - '{date,datetime,time,number}.*'
   - 'simple_form.{yes,no}'
   - 'simple_form.{placeholders,hints,labels}.*'
   - 'simple_form.{error_notification,required}.:'
@@ -50,7 +50,7 @@ ignore_unused:
   - 'activerecord.attributes.*'
   - 'activerecord.errors.*'
   - '{devise,pagination,doorkeeper}.*'
-  - '{date,datetime,time}.*'
+  - '{date,datetime,time,number}.*'
   - 'simple_form.{yes,no}'
   - 'simple_form.{placeholders,hints,labels}.*'
   - 'simple_form.{error_notification,required}.:'
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 96d08e6b2..1a9926edd 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -353,6 +353,17 @@ en:
     reblog:
       body: 'Your status was boosted by %{name}:'
       subject: "%{name} boosted your status"
+  number:
+    human:
+      decimal_units:
+        format: "%n%u"
+        units:
+          billion: B
+          million: M
+          quadrillion: Q
+          thousand: K
+          trillion: T
+          unit: ''
   pagination:
     next: Next
     prev: Prev