diff options
author | Chad Pytel <chad@thoughtbot.com> | 2017-04-07 14:19:16 -0400 |
---|---|---|
committer | Chad Pytel <chad@thoughtbot.com> | 2017-04-07 14:23:18 -0400 |
commit | ad5ddd5e95062d0d5cd4bc56baff53698c598723 (patch) | |
tree | 4515ec60a05f2e8bf470b34bf035fb3eddf105b8 /config/locales | |
parent | 13c0077003288416b8cacd5d339f8796bc347f39 (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/locales')
-rw-r--r-- | config/locales/en.yml | 4 |
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: "…" + 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 |