forked from spree-contrib/spree_editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request spree-contrib#45 from rterbush/translations
Port to Spree 2.0 translations
- Loading branch information
Showing
8 changed files
with
200 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.