More translations, incl. attributes
This commit is contained in:
parent
10fa821f19
commit
21f71f9d32
@ -9,14 +9,13 @@
|
|||||||
.form-check.form-switch
|
.form-check.form-switch
|
||||||
= form.check_box :team, class: "form-check-input"
|
= form.check_box :team, class: "form-check-input"
|
||||||
= form.label :team
|
= form.label :team
|
||||||
| Team contest
|
.form-text = t("activerecord.attributes.contest.team_description")
|
||||||
.form-text For UI display purposes mainly
|
|
||||||
.row.mb-3
|
.row.mb-3
|
||||||
.col
|
.col
|
||||||
.form-check.form-switch
|
.form-check.form-switch
|
||||||
= form.check_box :allow_registration, class: "form-check-input"
|
= form.check_box :allow_registration, class: "form-check-input"
|
||||||
= form.label :allow_registration
|
= form.label :allow_registration
|
||||||
.form-text Generates a shareable registration form for this contest
|
.form-text = t("activerecord.attributes.contest.allow_registration_description")
|
||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
= form.submit submit_text, class: "btn btn-primary"
|
= form.submit submit_text, class: "btn btn-primary"
|
@ -1 +1 @@
|
|||||||
= render "form", contest: @contest, submit_text: "Save"
|
= render "form", contest: @contest, submit_text: t("helpers.buttons.save")
|
@ -15,7 +15,11 @@
|
|||||||
.card-header
|
.card-header
|
||||||
= contest.name
|
= contest.name
|
||||||
.card-body
|
.card-body
|
||||||
.card-text.mb-2 = "#{contest.puzzles.length} puzzles - #{contest.contestants.length} participants"
|
.card-text.mb-2
|
||||||
|
= "#{contest.puzzles.length} #{t('puzzles.singular')}" if contest.puzzles.length <= 1
|
||||||
|
= "#{contest.puzzles.length} #{t('puzzles.plural')}" if contest.puzzles.length > 1
|
||||||
|
= " - #{contest.contestants.length} #{t('contestants.singular')}" if contest.contestants.length <= 1
|
||||||
|
= " - #{contest.contestants.length} #{t('contestants.plural')}" if contest.contestants.length > 1
|
||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
- contest.puzzles.each do |puzzle|
|
- contest.puzzles.each do |puzzle|
|
||||||
|
@ -1 +1 @@
|
|||||||
= render "form", contest: @contest, submit_text: "Create"
|
= render "form", contest: @contest, submit_text: t("helpers.buttons.create")
|
@ -13,15 +13,14 @@
|
|||||||
a.btn.btn-primary href=edit_contest_path(@contest)
|
a.btn.btn-primary href=edit_contest_path(@contest)
|
||||||
| Edit contest
|
| Edit contest
|
||||||
p
|
p
|
||||||
|> Public scoreboard:
|
= t("contests.show.public_scoreboard")
|
||||||
= link_to root_url + "public/#{@contest.slug}", root_url + "public/#{@contest.slug}"
|
= link_to root_url + "public/#{@contest.slug}", root_url + "public/#{@contest.slug}"
|
||||||
|
|
||||||
.row.mb-4
|
.row.mb-4
|
||||||
.col-6
|
.col-6
|
||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
h4
|
h4 = t("puzzles.plural").capitalize
|
||||||
| Puzzles
|
|
||||||
.row.row-cols-1.row-cols-md-3.g-4.mb-4
|
.row.row-cols-1.row-cols-md-3.g-4.mb-4
|
||||||
- @puzzles.each do |puzzle|
|
- @puzzles.each do |puzzle|
|
||||||
.col
|
.col
|
||||||
@ -38,11 +37,11 @@
|
|||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
a.btn.btn-primary href=new_contest_puzzle_path(@contest)
|
a.btn.btn-primary href=new_contest_puzzle_path(@contest)
|
||||||
| Add puzzle
|
= t("contests.show.add_puzzle")
|
||||||
.col-6
|
.col-6
|
||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
h4 = t("contests.show.contestants")
|
h4 = t("contestants.plural").capitalize
|
||||||
table.table.table-striped.table-hover
|
table.table.table-striped.table-hover
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
= form_with model: user, method: method do |form|
|
= form_with model: user, method: method do |form|
|
||||||
- if method == :patch
|
- if method == :patch
|
||||||
h4 General settings
|
h4 = t("users.edit.general_section")
|
||||||
|
|
||||||
.row.mb-3
|
.row.mb-3
|
||||||
.col
|
.col
|
||||||
@ -21,7 +21,6 @@
|
|||||||
.form-floating
|
.form-floating
|
||||||
= form.select :lang, Languages::AVAILABLE_LANGUAGES.map { |lang| [ lang[:name], lang[:id] ] }, {}, class: "form-select"
|
= form.select :lang, Languages::AVAILABLE_LANGUAGES.map { |lang| [ lang[:name], lang[:id] ] }, {}, class: "form-select"
|
||||||
= form.label :lang
|
= form.label :lang
|
||||||
| Language
|
|
||||||
|
|
||||||
- if method == :post
|
- if method == :post
|
||||||
.row.mb-3
|
.row.mb-3
|
||||||
@ -29,10 +28,10 @@
|
|||||||
.form-floating
|
.form-floating
|
||||||
= form.password_field :password, autocomplete: "off", class: "form-control"
|
= form.password_field :password, autocomplete: "off", class: "form-control"
|
||||||
= form.label :password, class: "required"
|
= form.label :password, class: "required"
|
||||||
= form.submit "Save", class: "btn btn-primary"
|
= form.submit t("helpers.buttons.save"), class: "btn btn-primary"
|
||||||
|
|
||||||
- if method == :patch
|
- if method == :patch
|
||||||
h4.mt-5 Change password
|
h4.mt-5 = t("users.edit.password_section")
|
||||||
|
|
||||||
= form_with model: user, method: method do |form|
|
= form_with model: user, method: method do |form|
|
||||||
.row.mb-3
|
.row.mb-3
|
||||||
@ -40,5 +39,4 @@
|
|||||||
.form-floating
|
.form-floating
|
||||||
= form.password_field :password, autocomplete: "off", class: "form-control"
|
= form.password_field :password, autocomplete: "off", class: "form-control"
|
||||||
= form.label :password, class: "required"
|
= form.label :password, class: "required"
|
||||||
| New password
|
= form.submit t("helpers.buttons.save"), class: "btn btn-primary"
|
||||||
= form.submit "Save new password", class: "btn btn-primary"
|
|
@ -28,6 +28,19 @@
|
|||||||
# enabled: "ON"
|
# enabled: "ON"
|
||||||
|
|
||||||
en:
|
en:
|
||||||
|
activerecord:
|
||||||
|
attributes:
|
||||||
|
contest:
|
||||||
|
name: "Name"
|
||||||
|
team: "Team contest"
|
||||||
|
team_description: "For UI display purposes mainly"
|
||||||
|
allow_registration: "Allow registration"
|
||||||
|
allow_registration_description: "Generates a shareable registration form for this contest"
|
||||||
|
user:
|
||||||
|
username: "Username"
|
||||||
|
email_address: "Email address"
|
||||||
|
lang: "Language"
|
||||||
|
password: "New password"
|
||||||
completions:
|
completions:
|
||||||
edit:
|
edit:
|
||||||
title: "Edit completion"
|
title: "Edit completion"
|
||||||
@ -41,18 +54,30 @@ en:
|
|||||||
manage_contests: "Manage my contests"
|
manage_contests: "Manage my contests"
|
||||||
new_contest: "Create a new contest"
|
new_contest: "Create a new contest"
|
||||||
new:
|
new:
|
||||||
title: "New jigsaw puzzle competition"
|
title: "New jigsaw puzzle contest"
|
||||||
scoreboard:
|
scoreboard:
|
||||||
title: "%{name}"
|
title: "%{name}"
|
||||||
show:
|
show:
|
||||||
title: "%{name}"
|
title: "%{name}"
|
||||||
add_participant: "Add contestant"
|
add_participant: "Add contestant"
|
||||||
contestants: "Contestants"
|
add_puzzle: "Add puzzle"
|
||||||
|
public_scoreboard: "Public scoreboard: "
|
||||||
contestants:
|
contestants:
|
||||||
edit:
|
edit:
|
||||||
title: "Contestant"
|
title: "Participant"
|
||||||
|
team_title: "Teams"
|
||||||
new:
|
new:
|
||||||
title: "New contestant"
|
title: "New participant"
|
||||||
|
team_title: "New team"
|
||||||
|
singular: "participant"
|
||||||
|
plural: "participants"
|
||||||
|
teams:
|
||||||
|
singular: "team"
|
||||||
|
plural: "teams"
|
||||||
|
helpers:
|
||||||
|
buttons:
|
||||||
|
create: "Create"
|
||||||
|
save: "Save"
|
||||||
nav:
|
nav:
|
||||||
users: "Users"
|
users: "Users"
|
||||||
home: "Home"
|
home: "Home"
|
||||||
@ -63,12 +88,16 @@ en:
|
|||||||
title: "Edit contest puzzle"
|
title: "Edit contest puzzle"
|
||||||
new:
|
new:
|
||||||
title: "New contest puzzle"
|
title: "New contest puzzle"
|
||||||
|
singular: "puzzle"
|
||||||
|
plural: "puzzles"
|
||||||
sessions:
|
sessions:
|
||||||
new:
|
new:
|
||||||
title: "Login to the Public Scoreboard app"
|
title: "Login to the Public Scoreboard app"
|
||||||
users:
|
users:
|
||||||
edit:
|
edit:
|
||||||
title: "My settings"
|
title: "My settings"
|
||||||
|
general_section: "General settings"
|
||||||
|
password_section: "Change password"
|
||||||
index:
|
index:
|
||||||
title: "All users"
|
title: "All users"
|
||||||
new:
|
new:
|
||||||
|
@ -1,4 +1,17 @@
|
|||||||
fr:
|
fr:
|
||||||
|
activerecord:
|
||||||
|
attributes:
|
||||||
|
contest:
|
||||||
|
name: "Nom"
|
||||||
|
team: "Concours par équipes"
|
||||||
|
team_description: "Principalement pour des raisons d'affichage"
|
||||||
|
allow_registration: "Autoriser l'inscription via l'interface"
|
||||||
|
allow_registration_description: "Génère un formulaire d'inscription pour ce concours"
|
||||||
|
user:
|
||||||
|
username: "Nom d'utilisateur.ice"
|
||||||
|
email_address: "Adresse email"
|
||||||
|
lang: "Langue de l'interface"
|
||||||
|
password: "Nouveau mot de passe"
|
||||||
completions:
|
completions:
|
||||||
edit:
|
edit:
|
||||||
title: "Modifier la complétion"
|
title: "Modifier la complétion"
|
||||||
@ -18,12 +31,24 @@ fr:
|
|||||||
show:
|
show:
|
||||||
title: "%{name}"
|
title: "%{name}"
|
||||||
add_participant: "Ajouter un.e participant.e"
|
add_participant: "Ajouter un.e participant.e"
|
||||||
contestants: "Participant.e.s"
|
add_puzzle: "Ajouter un puzzle"
|
||||||
|
public_scoreboard: "Classement public : "
|
||||||
contestants:
|
contestants:
|
||||||
edit:
|
edit:
|
||||||
title: "Participant"
|
title: "Participant.e"
|
||||||
|
team_title: "Équipe"
|
||||||
new:
|
new:
|
||||||
title: "Nouveau.elle participant.e"
|
title: "Nouveau.elle participant.e"
|
||||||
|
team_title: "Nouvelle équipe"
|
||||||
|
singular: "participant.e"
|
||||||
|
plural: "participant.e.s"
|
||||||
|
teams:
|
||||||
|
singular: "équipe"
|
||||||
|
plural: "équipes"
|
||||||
|
helpers:
|
||||||
|
buttons:
|
||||||
|
create: "Créer"
|
||||||
|
save: "Modifier"
|
||||||
nav:
|
nav:
|
||||||
users: "Utilisateur.ices"
|
users: "Utilisateur.ices"
|
||||||
home: "Accueil"
|
home: "Accueil"
|
||||||
@ -34,12 +59,16 @@ fr:
|
|||||||
title: "Modifier le puzzle"
|
title: "Modifier le puzzle"
|
||||||
new:
|
new:
|
||||||
title: "Nouveau puzzle"
|
title: "Nouveau puzzle"
|
||||||
|
singular: "puzzle"
|
||||||
|
plural: "puzzles"
|
||||||
sessions:
|
sessions:
|
||||||
new:
|
new:
|
||||||
title: "Se connecter à l'app Public Scoreboard"
|
title: "Se connecter à l'app Public Scoreboard"
|
||||||
users:
|
users:
|
||||||
edit:
|
edit:
|
||||||
title: "Mes paramètres"
|
title: "Mes paramètres"
|
||||||
|
general_section: "Paramètres globaux"
|
||||||
|
password_section: "Modifier mon mot de passe"
|
||||||
index:
|
index:
|
||||||
title: "Tous.tes les utilisateur.ices"
|
title: "Tous.tes les utilisateur.ices"
|
||||||
new:
|
new:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user