From 81a42e5935bc27862596a70afe37170379cf2e9c Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 28 Jan 2020 10:12:29 +0100 Subject: [PATCH] customize home page : full texts --- .../templates/admin/settings/home_page.html | 2 +- config/locales/app.admin.en.yml | 16 ++++++++++++++++ config/locales/app.admin.es.yml | 16 ++++++++++++++++ config/locales/app.admin.fr.yml | 2 +- config/locales/app.admin.pt.yml | 16 ++++++++++++++++ 5 files changed, 50 insertions(+), 2 deletions(-) diff --git a/app/assets/templates/admin/settings/home_page.html b/app/assets/templates/admin/settings/home_page.html index 6fdadb330..87e60fa4e 100644 --- a/app/assets/templates/admin/settings/home_page.html +++ b/app/assets/templates/admin/settings/home_page.html @@ -50,7 +50,7 @@

- {{ 'app.admin.settings.home_css_notice' }} + {{ 'app.admin.settings.home_css_notice_html' }}

diff --git a/config/locales/app.admin.en.yml b/config/locales/app.admin.en.yml index 7293ebb5b..a29b730cc 100644 --- a/config/locales/app.admin.en.yml +++ b/config/locales/app.admin.en.yml @@ -928,6 +928,19 @@ en: space_explications_alert: "explanation message on the space reservation page" main_color: "main colour" secondary_color: "secondary colour" + customize_home_page: "Customize home page" + reset_home_page: "Reset the home page to its initial state" + confirmation_required: "Confirmation required" + confirm_reset_home_page: "Do you really want to reset the home page to its factory value?" + home_items: "Home page items" + item_news: "News" + item_projects: "Last projects" + item_twitter: "Last tweet" + item_members: "Last members" + item_events: "Next events" + home_content: "the home page" + home_content_reset: "Home page was successfully reset to its initial configuration." + home_css: "the stylesheet of the home page" home_blogpost: "homepage's brief" twitter_name: "Twitter feed name" link_name: "link title to the \"About\" page" @@ -957,6 +970,9 @@ en: elements_ordering: "Elements ordering" machines_order: "Machines order" display_machines_sorted_by: "Display machines sorted by" + advanced: "Advanced settings" + customize_home_page_css: "Customise the stylesheet og the home page" + home_css_notice_html: "You can customize the stylesheet which will apply to the home page, using the SASS syntax. These styles will be automatically subordinated to the .home-page selector to prevent any risk of breaking the application. Meanwhile please be careful, any changes in the home page editor at the top of the page may broke your styles, always refer to the HTML code." sort_by: default: "Default" name: "Name" diff --git a/config/locales/app.admin.es.yml b/config/locales/app.admin.es.yml index d8d60a425..e8a0d7e28 100644 --- a/config/locales/app.admin.es.yml +++ b/config/locales/app.admin.es.yml @@ -928,6 +928,19 @@ es: space_explications_alert: "mensaje de explicación en la página de reserva de espacio" main_color: "Color principal" secondary_color: "color secundario" + customize_home_page: "Customize home page" + reset_home_page: "Reset the home page to its initial state" + confirmation_required: "Confirmation required" + confirm_reset_home_page: "Do you really want to reset the home page to its factory value?" + home_items: "Home page items" + item_news: "News" + item_projects: "Last projects" + item_twitter: "Last tweet" + item_members: "Last members" + item_events: "Next events" + home_content: "the home page" + home_content_reset: "Home page was successfully reset to its initial configuration." + home_css: "the stylesheet of the home page" home_blogpost: "Resumen de la página de inicio" twitter_name: "Twitter feed name" link_name: "link title to the \"About\" page" @@ -957,6 +970,9 @@ es: elements_ordering: "Orden de visualización de los elementos" machines_order: "Orden de las máquinas" display_machines_sorted_by: "Ver máquinas ordenadas por" + advanced: "Advanced settings" + customize_home_page_css: "Customise the stylesheet og the home page" + home_css_notice_html: "You can customize the stylesheet which will apply to the home page, using the SASS syntax. These styles will be automatically subordinated to the .home-page selector to prevent any risk of breaking the application. Meanwhile please be careful, any changes in the home page editor at the top of the page may broke your styles, always refer to the HTML code." sort_by: default: "Defecto" name: "Nombre" diff --git a/config/locales/app.admin.fr.yml b/config/locales/app.admin.fr.yml index abac07774..94c46c09b 100644 --- a/config/locales/app.admin.fr.yml +++ b/config/locales/app.admin.fr.yml @@ -972,7 +972,7 @@ fr: display_machines_sorted_by: "Afficher les machines triées par" advanced: "Paramètres avancés" customize_home_page_css: "Personnaliser la feuille de style de la page d'accueil" - home_css_notice: "Vous pouvez utiliser la syntaxe SASS. Pas de garantie que ça va pas péter avec les updates" + home_css_notice_html: "Vous pouvez personnaliser la feuille de style qui s'appliquera à la page d'accueil en utilisant la syntaxe SASS. Ces styles seront automatiquement subordonnées au sélecteur .home-page pour prévenir tout risque de casse de l'application. Attention toutefois, les modifications de la page d'accueil dans l'éditeur en haut de page peuvent rendre caduque vos styles, référez vous toujours au code HTML." sort_by: default: "Défaut" name: "Nom" diff --git a/config/locales/app.admin.pt.yml b/config/locales/app.admin.pt.yml index 963fef504..2ba804e25 100755 --- a/config/locales/app.admin.pt.yml +++ b/config/locales/app.admin.pt.yml @@ -928,6 +928,19 @@ pt: space_explications_alert: "mensagem de explicação na página de reserva de espaço" main_color: "Cor principal" secondary_color: "Cor secundária" + customize_home_page: "Customize home page" + reset_home_page: "Reset the home page to its initial state" + confirmation_required: "Confirmation required" + confirm_reset_home_page: "Do you really want to reset the home page to its factory value?" + home_items: "Home page items" + item_news: "News" + item_projects: "Last projects" + item_twitter: "Last tweet" + item_members: "Last members" + item_events: "Next events" + home_content: "the home page" + home_content_reset: "Home page was successfully reset to its initial configuration." + home_css: "the stylesheet of the home page" home_blogpost: "Resumo da página inicial" twitter_name: "Nome do feed do Twitter" link_name: "link title to the \"About\" page" @@ -957,6 +970,9 @@ pt: elements_ordering: "Elements ordering" machines_order: "Machines order" display_machines_sorted_by: "Display machines sorted by" + advanced: "Advanced settings" + customize_home_page_css: "Customise the stylesheet og the home page" + home_css_notice_html: "You can customize the stylesheet which will apply to the home page, using the SASS syntax. These styles will be automatically subordinated to the .home-page selector to prevent any risk of breaking the application. Meanwhile please be careful, any changes in the home page editor at the top of the page may broke your styles, always refer to the HTML code." sort_by: default: "Default" name: "Nome"