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-body
%h1 Theming
%p.lead Welcome to the Theme Editor!
%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
And with that:
%b Happy Theming!
%h1= t(".heading")
%p.lead= t(".lead")
= t(".body_html")
- if current_user.theme
.pull-right
= button_to 'Delete Theme', delete_user_theme_path, data: { confirm: 'Are you sure?' }, 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|
= 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|
.card
.card-body
%h2 General

View File

@ -38,7 +38,6 @@ en:
password: "Leave this blank if you don't want to change it"
delete:
action: "Delete my account"
confirm: "Are you sure?"
heading: "Unsatisfied?"
profile:
adjust:
@ -52,6 +51,15 @@ en:
connect: "Connect to %{service}"
disconnect: "Disconnect"
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:
edit:
title: "Profile Settings"

View File

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