Skip to content

Commit

Permalink
Merge pull request spree-contrib#45 from rterbush/translations
Browse files Browse the repository at this point in the history
Port to Spree 2.0 translations
  • Loading branch information
JDutil committed May 12, 2013
2 parents 01d9223 + 680fd95 commit 6043ed0
Show file tree
Hide file tree
Showing 8 changed files with 200 additions and 196 deletions.
4 changes: 2 additions & 2 deletions app/overrides/add_rich_editor_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
:name => "add_rich_editor_link",
:insert_after => "[data-hook='admin_configurations_menu'], #admin_configurations_menu[data-hook]",
:text => "<tr>
<td><%= link_to t(\"rich_editor\"), admin_editor_settings_path %></td>
<td><%= t(\"rich_editor_description\") %></td>
<td><%= link_to Spree.t(\"rich_editor\"), admin_editor_settings_path %></td>
<td><%= Spree.t(\"rich_editor_description\") %></td>
</tr>")
2 changes: 1 addition & 1 deletion app/overrides/add_rich_editor_tab.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Deface::Override.new(:virtual_path => "spree/admin/shared/_configuration_menu",
:name => "add_rich_editor_tab",
:insert_bottom => "[data-hook='admin_configurations_sidebar_menu'], #admin_configurations_sidebar_menu[data-hook]",
:text => "<li<%== ' class=\"active\"' if controller.controller_name == 'editor_settings' %>><%= link_to t(\"rich_editor\"), admin_editor_settings_path %></li>")
:text => "<li<%== ' class=\"active\"' if controller.controller_name == 'editor_settings' %>><%= link_to Spree.t(\"rich_editor\"), admin_editor_settings_path %></li>")
14 changes: 7 additions & 7 deletions app/views/spree/admin/editor_settings/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<%= render :partial => 'spree/admin/shared/configuration_menu' %>

<h1><%= t('rich_editor') %></h1>
<h1><%= Spree.t('rich_editor') %></h1>

<%= form_for(@config, :as => "editor_configuration", :url => spree.admin_editor_settings_path, :method => :put) do |form| %>
<fieldset id="preferences">
<%= form.field_container :current_editor do %>
<%= form.label(:current_editor, t('rich_editor_engine')) %>
<%= select_tag :current_editor, options_for_select(SpreeEditor::EditorEngines, @config[:current_editor]) %>
<%= form.label(:current_editor, Spree.t('rich_editor_engine')) %>
<%= select_tag :current_editor, options_for_selecSpree.t(SpreeEditor::EditorEngines, @config[:current_editor]) %>
<% end %>
<%= form.field_container :enabled do %>
<%= preference_field_tag(:enabled, @config[:enabled], :type => :boolean) %>
<%= form.label(:enabled, t(:enable_rich_editor)) %>
<%= form.label(:enabled, Spree.t(:enable_rich_editor)) %>
<% end %>
<%= form.field_container :ids do %>
<%= form.label(:ids, t(:rich_editor_ids_description)+": ") + tag(:br) %>
<%= form.label(:ids, Spree.t(:rich_editor_ids_description)+": ") + tag(:br) %>
<%= preference_field_tag(:ids, @config[:ids], :type => :text) %>
<% end %>
</fieldset>
<p class="form-buttons">
<%= button t('update') %>
<%= t("or") %> <%= link_to t("cancel"), spree.admin_editor_settings_url %>
<%= button Spree.t('update') %>
<%= Spree.t("or") %> <%= link_to Spree.t("cancel"), spree.admin_editor_settings_url %>
</p>
<% end %>
16 changes: 8 additions & 8 deletions app/views/spree/admin/editor_settings/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<%= render :partial => 'spree/admin/shared/configuration_menu' %>

<h1><%= t("rich_editor") %></h1>
<h1><%= Spree.t("rich_editor") %></h1>

<table>
<thead>
<tr>
<th><%= t('setting') %></th>
<th><%= t('value') %></th>
<th><%= Spree.t('setting') %></th>
<th><%= Spree.t('value') %></th>
</tr>
</thead>
<tbody>
<tr>
<td><%= t('enable_rich_editor') %>:</td>
<td><%= @config[:enabled] ? t('yes') : t('no') %></td>
<td><%= Spree.t('enable_rich_editor') %>:</td>
<td><%= @config[:enabled] ? Spree.t('yes') : Spree.t('no') %></td>
</tr>
<tr>
<td><%= t('rich_editor_engine') %>:</td>
<td><%= Spree.t('rich_editor_engine') %>:</td>
<td><%= @config[:current_editor] %></td>
</tr>
<tr>
<td><%= t('rich_editor_ids') %>:</td>
<td><%= Spree.t('rich_editor_ids') %>:</td>
<td><%= @config[:ids] %></td>
</tr>
</tbody>
</table>

<p><%= link_to t("edit"), spree.edit_admin_editor_settings_path, class: 'button icon-edit' %></p>
<p><%= link_to Spree.t("edit"), spree.edit_admin_editor_settings_path, class: 'button icon-edit' %></p>
91 changes: 46 additions & 45 deletions config/locales/en-AU.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
---
en-AU:
editor:
align_center: Align Center
align_left: Align Left
align_right: Align Right
alignment: Alignment
background_color: Background Color
bold: Bold
create_an_ordered_list: Create an Ordered List
create_an_unordered_list: Create an Unordered List
edit_html_code: Edit HTML code
enter_file_name: Enter file name
font_name_and_size: Font Name and Size
font_color: Font Color
font_style: Font Style
footer: Footer
header: Header
hide_more_fields: Hide more fields
html_link: HTML Link
indenting_and_lists: "Indenting/Lists"
insert_item: Insert Item
insert_image: Insert Image
indent: Indent
italic: Italic
justify: Justify
loading: Loading
normal: Normal
outdent: Outdent
paragraph_style: Paragraph Style
remove_formatting: Remove Formatting
show_hide_hidden_elements: "Show/Hide Hidden Elements"
show_more_fields: Show more fields
sidebar: Sidebar
subscript: Subscript
superscript: Superscript
underline: Underline
upload: Upload
upload_image: Upload Image
upload_file: Upload File

enable_rich_editor: "Enable Rich Editor"
rich_editor: "Rich Editor"
rich_editor_description: "Configure Rich Editor settings."
rich_editor_engine: "Rich Editor engine"
rich_editor_ids: "Rich Editor Identificators"
rich_editor_ids_description: "List textarea's ids splitted by spaces here"
spree:
editor:
align_center: Align Center
align_left: Align Left
align_right: Align Right
alignment: Alignment
background_color: Background Color
bold: Bold
create_an_ordered_list: Create an Ordered List
create_an_unordered_list: Create an Unordered List
edit_html_code: Edit HTML code
enter_file_name: Enter file name
font_name_and_size: Font Name and Size
font_color: Font Color
font_style: Font Style
footer: Footer
header: Header
hide_more_fields: Hide more fields
html_link: HTML Link
indenting_and_lists: "Indenting/Lists"
insert_item: Insert Item
insert_image: Insert Image
indent: Indent
italic: Italic
justify: Justify
loading: Loading
normal: Normal
outdent: Outdent
paragraph_style: Paragraph Style
remove_formatting: Remove Formatting
show_hide_hidden_elements: "Show/Hide Hidden Elements"
show_more_fields: Show more fields
sidebar: Sidebar
subscript: Subscript
superscript: Superscript
underline: Underline
upload: Upload
upload_image: Upload Image
upload_file: Upload File

enable_rich_editor: "Enable Rich Editor"
rich_editor: "Rich Editor"
rich_editor_description: "Configure Rich Editor settings."
rich_editor_engine: "Rich Editor engine"
rich_editor_ids: "Rich Editor Identificators"
rich_editor_ids_description: "List textarea's ids splitted by spaces here"
91 changes: 46 additions & 45 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
---
en:
editor:
align_center: Align Center
align_left: Align Left
align_right: Align Right
alignment: Alignment
background_color: Background Color
bold: Bold
create_an_ordered_list: Create an Ordered List
create_an_unordered_list: Create an Unordered List
edit_html_code: Edit HTML code
enter_file_name: Enter file name
font_name_and_size: Font Name and Size
font_color: Font Color
font_style: Font Style
footer: Footer
header: Header
hide_more_fields: Hide more fields
html_link: HTML Link
indenting_and_lists: "Indenting/Lists"
insert_item: Insert Item
insert_image: Insert Image
indent: Indent
italic: Italic
justify: Justify
loading: Loading
normal: Normal
outdent: Outdent
paragraph_style: Paragraph Style
remove_formatting: Remove Formatting
show_hide_hidden_elements: "Show/Hide Hidden Elements"
show_more_fields: Show more fields
sidebar: Sidebar
subscript: Subscript
superscript: Superscript
underline: Underline
upload: Upload
upload_image: Upload Image
upload_file: Upload File

enable_rich_editor: "Enable Rich Editor"
rich_editor: "Rich Editor"
rich_editor_description: "Configure Rich Editor settings."
rich_editor_engine: "Rich Editor engine"
rich_editor_ids: "Rich Editor Identificators"
rich_editor_ids_description: "List textarea's ids splitted by spaces here"
spree:
editor:
align_center: Align Center
align_left: Align Left
align_right: Align Right
alignment: Alignment
background_color: Background Color
bold: Bold
create_an_ordered_list: Create an Ordered List
create_an_unordered_list: Create an Unordered List
edit_html_code: Edit HTML code
enter_file_name: Enter file name
font_name_and_size: Font Name and Size
font_color: Font Color
font_style: Font Style
footer: Footer
header: Header
hide_more_fields: Hide more fields
html_link: HTML Link
indenting_and_lists: "Indenting/Lists"
insert_item: Insert Item
insert_image: Insert Image
indent: Indent
italic: Italic
justify: Justify
loading: Loading
normal: Normal
outdent: Outdent
paragraph_style: Paragraph Style
remove_formatting: Remove Formatting
show_hide_hidden_elements: "Show/Hide Hidden Elements"
show_more_fields: Show more fields
sidebar: Sidebar
subscript: Subscript
superscript: Superscript
underline: Underline
upload: Upload
upload_image: Upload Image
upload_file: Upload File

enable_rich_editor: "Enable Rich Editor"
rich_editor: "Rich Editor"
rich_editor_description: "Configure Rich Editor settings."
rich_editor_engine: "Rich Editor engine"
rich_editor_ids: "Rich Editor Identificators"
rich_editor_ids_description: "List textarea's ids splitted by spaces here"
87 changes: 44 additions & 43 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
es:
editor:
align_center: Centrado
align_left: Alineación izquierda
align_right: Alineación derecha
alignment: Alineación
background_color: Color de fondo
bold: Negrita
create_an_ordered_list: Crear lista ordenada
create_an_unordered_list: Crear lista desordenada
enter_file_name: Nombre del archivo
font_name_and_size: Nombre y tamaño de la fuente
font_color: Color de la fuente
font_style: Estilo de la fuente
footer: Pie
header: Cabecera
hide_more_fields: Ocultar más campos
html_link: Enlace HTML
indenting_and_lists: "Tabulaciones y listas"
insert_item: Insertar elemento
insert_image: Insertar imagen
indent: Tabular hacia dentro
italic: Cursiva
justify: Justificar
loading: Cargando
normal: Normal
outdent: Tabular hacia fuera
paragraph_style: Estilo de párrafo
remove_formatting: Eliminar formato
show_hide_hidden_elements: "Mostrar/ocultar elementos ocultos"
show_more_fields: Mostrar más campos
sidebar: Barra lateral
subscript: Subíndice
superscript: Superíndice
underline: Subrayar
upload: Subir
upload_image: Subir imagen
upload_file: Subir fichero
spree:
editor:
align_center: Centrado
align_left: Alineación izquierda
align_right: Alineación derecha
alignment: Alineación
background_color: Color de fondo
bold: Negrita
create_an_ordered_list: Crear lista ordenada
create_an_unordered_list: Crear lista desordenada
enter_file_name: Nombre del archivo
font_name_and_size: Nombre y tamaño de la fuente
font_color: Color de la fuente
font_style: Estilo de la fuente
footer: Pie
header: Cabecera
hide_more_fields: Ocultar más campos
html_link: Enlace HTML
indenting_and_lists: "Tabulaciones y listas"
insert_item: Insertar elemento
insert_image: Insertar imagen
indent: Tabular hacia dentro
italic: Cursiva
justify: Justificar
loading: Cargando
normal: Normal
outdent: Tabular hacia fuera
paragraph_style: Estilo de párrafo
remove_formatting: Eliminar formato
show_hide_hidden_elements: "Mostrar/ocultar elementos ocultos"
show_more_fields: Mostrar más campos
sidebar: Barra lateral
subscript: Subíndice
superscript: Superíndice
underline: Subrayar
upload: Subir
upload_image: Subir imagen
upload_file: Subir fichero

enable_rich_editor: "Activar editor avanzado"
rich_editor: "Editor avanzado"
rich_editor_description: "Configurar opciones del editor."
rich_editor_engine: "Motor del editor avanzado"
rich_editor_ids: "Identificadores del editor avanzado"
rich_editor_ids_description: "Listar aquí los ids de los textareas, separados por espacios"
enable_rich_editor: "Activar editor avanzado"
rich_editor: "Editor avanzado"
rich_editor_description: "Configurar opciones del editor."
rich_editor_engine: "Motor del editor avanzado"
rich_editor_ids: "Identificadores del editor avanzado"
rich_editor_ids_description: "Listar aquí los ids de los textareas, separados por espacios"
Loading

0 comments on commit 6043ed0

Please sign in to comment.