Translate lead section of theme settings

This commit is contained in:
Andreas Nedbal 2022-02-12 23:39:51 +01:00 committed by Andreas Nedbal
parent 64f794256c
commit 78357faed5
3 changed files with 16 additions and 14 deletions

View File

@ -1,20 +1,13 @@
.card .card
.card-body .card-body
%h1 Theming %h1= t(".heading")
%p.lead Welcome to the Theme Editor! %p.lead= t(".lead")
%p = t(".body_html")
Here you'll be able to modify your Retrospring experience by adjusting all available colors.
To further help you with adjusting needs, there are a few example elements using the specified colors, and sections will include
descriptions on their general use on the site!
%p
And with that:
%b Happy Theming!
- if current_user.theme - if current_user.theme
.pull-right .pull-right
= button_to 'Delete Theme', delete_user_theme_path, data: { confirm: 'Are you sure?' }, tabindex: -1, method: :delete, class: 'btn btn-danger' = button_to t(".delete"), delete_user_theme_path, data: { confirm: t("voc.confirm") }, tabindex: -1, method: :delete, class: "btn btn-danger"
= bootstrap_form_for(current_user.theme || Theme.new, url: { action: 'update_theme' }, html: { id: 'update_theme' }, method: :patch) do |f| = bootstrap_form_for(current_user.theme || Theme.new, url: { action: "update_theme" }, html: { id: "update_theme" }, method: :patch) do |f|
.card .card
.card-body .card-body
%h2 General %h2 General

View File

@ -38,7 +38,6 @@ en:
password: "Leave this blank if you don't want to change it" password: "Leave this blank if you don't want to change it"
delete: delete:
action: "Delete my account" action: "Delete my account"
confirm: "Are you sure?"
heading: "Unsatisfied?" heading: "Unsatisfied?"
profile: profile:
adjust: adjust:
@ -52,6 +51,15 @@ en:
connect: "Connect to %{service}" connect: "Connect to %{service}"
disconnect: "Disconnect" disconnect: "Disconnect"
confirm: "Really disconnect service %{service}?" confirm: "Really disconnect service %{service}?"
theme:
heading: "Theming"
lead: "Welcome to the Theme Editor!"
body_html: |
<p>Here you'll be able to modify your Retrospring experience by adjusting all available colors.
To further help you with adjusting needs, there are a few example elements using the specified colors, and sections will include
descriptions on their general use on the site!</p>
<p>And with that: <b>Happy Theming!</b>
delete: "Delete Theme"
user: user:
edit: edit:
title: "Profile Settings" title: "Profile Settings"

View File

@ -2,6 +2,7 @@ en:
voc: voc:
cancel: "Cancel" cancel: "Cancel"
close: "Close" close: "Close"
confirm: "Are you sure?"
delete: "Delete" delete: "Delete"
edit: "Edit" edit: "Edit"
login: "Sign in" login: "Sign in"