Merge pull request #21 from finnlabs/bug-4159-edit-config-field-names-locale

Added locales for export card field names which can't get translated.
pull/6827/head
ulferts 11 years ago
commit 8c3f7077c2
  1. 8
      app/views/export_card_configurations/_form.html.erb
  2. 6
      app/views/export_card_configurations/index.html.erb
  3. 4
      config/locales/de.yml
  4. 4
      config/locales/en.yml

@ -28,11 +28,11 @@ See doc/COPYRIGHT.md for more details.
<!--[form:export_card_configuration]-->
<p><%= f.text_field :name, :required => true %></p>
<p><%= f.text_area :description, :class => "wiki-edit" %></p>
<p><%= f.text_field :per_page, :required => true %></p>
<p><%= f.text_field :page_size, :required => true, :value => "A4", :readonly => true %></p>
<P><%= f.select :orientation, [:landscape, :portrait], :required => true %></p>
<p><%= f.text_field :per_page, :required => true, :label => I18n.t('export_config_per_page') %></p>
<p><%= f.text_field :page_size, :required => true, :value => "A4", :readonly => true, :label => I18n.t('export_config_page_size') %></p>
<P><%= f.select :orientation, [:landscape, :portrait], :required => true, :label => I18n.t('export_config_orientation') %></p>
<% 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 } %>
<!--[eoform:export_card_configuration]-->

@ -42,13 +42,13 @@ See doc/COPYRIGHT.md for more details.
<%= Type.human_attribute_name(:name) %>
</th>
<th>
<%= Type.human_attribute_name(:page_size) %>
<%= l(:export_config_page_size) %>
</th>
<th>
<%= Type.human_attribute_name(:per_page) %>
<%= l(:export_config_per_page) %>
</th>
<th>
<%= Type.human_attribute_name(:orientation) %>
<%= l(:export_config_orientation) %>
</th>
<th>
<%= Type.human_attribute_name(:active) %>

@ -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"

@ -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"

Loading…
Cancel
Save