app/views/spotlight/translations/_general.html.erb in blacklight-spotlight-3.0.0.alpha.9 vs app/views/spotlight/translations/_general.html.erb in blacklight-spotlight-3.0.0.alpha.10

- old
+ new

@@ -3,19 +3,19 @@ <% # Add a hidden field for the language so the redirect knows how to come back here %> <%= hidden_field_tag :language, @language %> <div class='translation-basic-settings'> <h2 class='translation-subheading'> - <%= t('spotlight.exhibits.translations.general.basic_settings.label') %> + <%= t('.basic_settings.label') %> </h2> <% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{current_exhibit.slug}.title", locale: @language) %> <%= f.fields_for :translations, translation do |translation_fields| %> <%= translation_fields.hidden_field :key %> <%= translation_fields.hidden_field :locale %> <div data-translation-progress-item='true' class='row form-group translation-form translation-basic-settings-title'> - <%= translation_fields.label :value, t('spotlight.exhibits.translations.general.basic_settings.title'), class: 'col-form-label col-12 col-sm-2' %> + <%= translation_fields.label :value, t('.basic_settings.title'), class: 'col-form-label col-12 col-sm-2' %> <div class='col-11 col-sm-9 card card-body panel-translation'> <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %> <small class="form-text text-muted"> <%= current_exhibit[:title] %> </small> @@ -32,11 +32,11 @@ <% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{current_exhibit.slug}.subtitle", locale: @language) %> <%= f.fields_for :translations, translation do |translation_fields| %> <%= translation_fields.hidden_field :key %> <%= translation_fields.hidden_field :locale %> <div data-translation-progress-item='true' class='row form-group translation-form translation-basic-settings-subtitle'> - <%= translation_fields.label :value, t('spotlight.exhibits.translations.general.basic_settings.subtitle'), class: 'col-form-label col-12 col-sm-2' %> + <%= translation_fields.label :value, t('.basic_settings.subtitle'), class: 'col-form-label col-12 col-sm-2' %> <div class='col-11 col-sm-9 card card-body panel-translation'> <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %> <small class="form-text text-muted"> <%= current_exhibit[:subtitle] %> </small> @@ -53,11 +53,11 @@ <% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{current_exhibit.slug}.description", locale: @language) %> <%= f.fields_for :translations, translation do |translation_fields| %> <%= translation_fields.hidden_field :key %> <%= translation_fields.hidden_field :locale %> <div data-translation-progress-item='true' class='row form-group translation-form translation-basic-settings-description'> - <%= translation_fields.label :value, t('spotlight.exhibits.translations.general.basic_settings.description'), class: 'col-form-label col-12 col-sm-2' %> + <%= translation_fields.label :value, t('.basic_settings.description'), class: 'col-form-label col-12 col-sm-2' %> <div class='col-11 col-sm-9 card card-body panel-translation'> <%= translation_fields.text_area_without_bootstrap :value, class: 'form-control' %> <small class="form-text text-muted"> <%= current_exhibit.description %> </small> @@ -72,19 +72,19 @@ </div> <% end %> </div> <div class='translation-main-menu'> <h2 class='translation-subheading'> - <%= t('spotlight.exhibits.translations.general.main_menu.label') %> + <%= t('.main_menu.label') %> </h2> <% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "spotlight.curation.nav.home", locale: @language) %> <%= f.fields_for :translations, translation do |translation_fields| %> <%= translation_fields.hidden_field :key %> <%= translation_fields.hidden_field :locale %> <div data-translation-progress-item='true' class='row form-group translation-form translation-main-menu-home'> - <%= translation_fields.label :value, t('spotlight.exhibits.translations.general.main_menu.home'), class: 'col-form-label col-12 col-sm-2' %> + <%= translation_fields.label :value, t('.main_menu.home'), class: 'col-form-label col-12 col-sm-2' %> <div class='col-11 col-sm-9 card card-body panel-translation'> <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %> <small class="form-text text-muted"> <%= t(:'spotlight.curation.nav.home', locale: I18n.default_locale) %> </small> @@ -103,10 +103,10 @@ <% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "main_navigation.#{navigation.nav_type}.label", locale: @language) %> <%= f.fields_for :translations, translation do |translation_fields| %> <%= translation_fields.hidden_field :key %> <%= translation_fields.hidden_field :locale %> <div data-translation-progress-item='true' class='row form-group translation-form translation-main-menu-<%= navigation.nav_type %>'> - <%= translation_fields.label :value, t("spotlight.exhibits.translations.general.main_menu.#{navigation.nav_type}", default: navigation.default_label), class: 'col-form-label col-12 col-sm-2' %> + <%= translation_fields.label :value, t(".main_menu.#{navigation.nav_type}", default: navigation.default_label), class: 'col-form-label col-12 col-sm-2' %> <div class='col-11 col-sm-9 card card-body panel-translation'> <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %> <small class="form-text text-muted"> <%= navigation[:label].presence || navigation.default_label %> </small>