diff --git a/app/models/i18n_content.rb b/app/models/i18n_content.rb index d7914c83a..8d130539b 100644 --- a/app/models/i18n_content.rb +++ b/app/models/i18n_content.rb @@ -6,6 +6,6 @@ class I18nContent < ActiveRecord::Base validates :key, uniqueness: true translates :value, touch: true - globalize_accessors locales: [:en, :es, :fr, :nl, :val, :pt_br] + globalize_accessors locales: [:en, :es, :fr, :nl, :val] end diff --git a/app/views/admin/site_customization/information_texts/_form_field.html.erb b/app/views/admin/site_customization/information_texts/_form_field.html.erb index 4ae31adec..09227feaf 100644 --- a/app/views/admin/site_customization/information_texts/_form_field.html.erb +++ b/app/views/admin/site_customization/information_texts/_form_field.html.erb @@ -2,7 +2,7 @@ <%= hidden_field_tag "contents[content_#{content.key}][id]", content.key %> <%= text_area_tag "contents[content_#{content.key}]values[value_#{locale}]", I18nContent.where(key: content.key).first.try(:value) || - I18n.backend.translate(locale, content.key), + t(content.key, locale: locale), { rows: 5, class: "js-globalize-attribute", style: display_translation?(locale),