about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorChad Pytel <chad@thoughtbot.com>2017-04-07 14:19:16 -0400
committerChad Pytel <chad@thoughtbot.com>2017-04-07 14:23:18 -0400
commitad5ddd5e95062d0d5cd4bc56baff53698c598723 (patch)
tree4515ec60a05f2e8bf470b34bf035fb3eddf105b8 /config
parent13c0077003288416b8cacd5d339f8796bc347f39 (diff)
Use I18n for media attachment validation errors
These are currently user facing errors, but are not localized. This adds the
ability for these messages to be localized.
Diffstat (limited to 'config')
-rw-r--r--config/locales/en.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 742219df9..aa3a732f9 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -163,3 +163,7 @@ en:
     invalid_otp_token: Invalid two-factor code
   will_paginate:
     page_gap: "&hellip;"
+  media_attachments:
+    validations:
+      too_many: Cannot attach more than 4 files
+      images_and_video: Cannot attach a video to a status that already contains images