diff --git a/app/views/export_card_configurations/_form.html.erb b/app/views/export_card_configurations/_form.html.erb index fc9d07cae8..f4d295b687 100644 --- a/app/views/export_card_configurations/_form.html.erb +++ b/app/views/export_card_configurations/_form.html.erb @@ -28,11 +28,11 @@ See doc/COPYRIGHT.md for more details.

<%= f.text_field :name, :required => true %>

<%= f.text_area :description, :class => "wiki-edit" %>

-

<%= f.text_field :per_page, :required => true %>

-

<%= f.text_field :page_size, :required => true, :value => "A4", :readonly => true %>

-

<%= f.select :orientation, [:landscape, :portrait], :required => true %>

+

<%= f.text_field :per_page, :required => true, :label => I18n.t('export_config_per_page') %>

+

<%= f.text_field :page_size, :required => true, :value => "A4", :readonly => true, :label => I18n.t('export_config_page_size') %>

+

<%= f.select :orientation, [:landscape, :portrait], :required => true, :label => I18n.t('export_config_orientation') %>

- <% field = (f.text_area :rows, :required => true, :class => "wiki-edit") %> + <% field = (f.text_area :rows, :required => true, :class => "wiki-edit", :label => I18n.t('export_config_rows')) %> <%= render partial: "rows_format_help", locals: { field: field } %> diff --git a/app/views/export_card_configurations/index.html.erb b/app/views/export_card_configurations/index.html.erb index 9ae59ba931..fa4282adc1 100644 --- a/app/views/export_card_configurations/index.html.erb +++ b/app/views/export_card_configurations/index.html.erb @@ -42,13 +42,13 @@ See doc/COPYRIGHT.md for more details. <%= Type.human_attribute_name(:name) %> - <%= Type.human_attribute_name(:page_size) %> + <%= l(:export_config_page_size) %> - <%= Type.human_attribute_name(:per_page) %> + <%= l(:export_config_per_page) %> - <%= Type.human_attribute_name(:orientation) %> + <%= l(:export_config_orientation) %> <%= Type.human_attribute_name(:active) %> diff --git a/config/locales/de.yml b/config/locales/de.yml index 220bbe62e7..2d6065b146 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -43,3 +43,7 @@ de: validation_error_uknown_key: "Unbekannter Schlüssel:" yaml_error: "YAML Fehler:" help_link_rows_format: "Rows formatieren" + export_config_per_page: "Pro Seite" + export_config_page_size: "Seitengröße" + export_config_orientation: "Ausrichtung" + export_config_rows: "Reihen" diff --git a/config/locales/en.yml b/config/locales/en.yml index 770ee1c91f..831bbfefad 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -43,3 +43,7 @@ en: validation_error_uknown_key: "Unknown key:" yaml_error: "YAML error:" help_link_rows_format: "Rows Formatting" + export_config_per_page: "Per page" + export_config_page_size: "Page size" + export_config_orientation: "Orientation" + export_config_rows: "Rows"