From 54f1b49b44e4da41b9555d49aea6101c285c7c02 Mon Sep 17 00:00:00 2001
From: Evan Goode
Date: Tue, 8 Jul 2025 21:04:44 -0400
Subject: [PATCH] i18n registration.tmpl
---
locales/es/default.po | 43 ++++++++++++++++++++
public/style.css | 3 +-
view/complete-registration.tmpl | 1 -
view/header.tmpl | 2 +-
view/registration.tmpl | 71 ++++++++++++++-------------------
view/root.tmpl | 5 +--
view/user.tmpl | 1 -
7 files changed, 79 insertions(+), 47 deletions(-)
diff --git a/locales/es/default.po b/locales/es/default.po
index 0986540..4f8ba0a 100644
--- a/locales/es/default.po
+++ b/locales/es/default.po
@@ -3,6 +3,12 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Language: es\n"
+msgid "OpenID logo"
+msgstr "Logo de OpenID"
+
+msgid "Registration"
+msgstr "Registro"
+
msgid "Register"
msgstr "Registrarse"
@@ -110,3 +116,40 @@ msgstr "Con licencia %s."
msgid "Source code."
msgstr "Código fuente."
+
+msgid "Signing in with %s requires an invite."
+msgstr "Iniciar sesión con %s requiere una invitación."
+
+msgid "Register a new account:"
+
+msgid "Register a new account with a random UUID:"
+
+msgid "Player UUID (leave blank for random)"
+msgstr "UUID del jugador (dejar en blanco para uno aleatorio)"
+
+msgid "Using invite code %s"
+msgstr "Usando el código de invitación %s"
+
+msgid "Register from an existing Minecraft player"
+msgstr "Registrarse como un jugador existente de Minecraft"
+
+msgid "Registration as a new player is invite-only."
+msgstr "El registro como nuevo jugador es solo por invitación."
+
+msgid "Registration as an existing player is invite-only."
+msgstr "El registro como jugador existente es solo por invitación."
+
+msgid "Register a new account with the UUID of an existing %s account. Requires verification that you own the account."
+msgstr "Registra una nueva cuenta con el UUID de una cuenta existente de %s. Se requiere verificación de que eres el propietario de la cuenta."
+
+msgid "Register a new account with the UUID of an existing %s account"
+msgstr "Registrar una nueva cuenta con el UUID de una cuenta existente de %s"
+
+msgid "%s player name"
+msgstr "Nombre de jugador de %s"
+
+msgid "Continue"
+msgstr "Continuar"
+
+msgid "Register"
+msgstr "Registrarse"
diff --git a/public/style.css b/public/style.css
index 61ea255..36e4373 100644
--- a/public/style.css
+++ b/public/style.css
@@ -138,6 +138,7 @@ input:disabled {
input[type="text"],
input[type="number"],
input[type="password"] {
+ width: 20em;
margin: 0.5em 0;
background-color: black;
padding: 0.5em;
@@ -145,7 +146,7 @@ input[type="password"] {
}
input.long {
- width: 22em;
+ width: 34em;
}
@media (max-width: 600px) {
diff --git a/view/complete-registration.tmpl b/view/complete-registration.tmpl
index e515054..6b7c410 100644
--- a/view/complete-registration.tmpl
+++ b/view/complete-registration.tmpl
@@ -22,7 +22,6 @@
{{ else }}
- {{ call .T "Register" }}
+ {{ call .T "Registration" }}
{{ end }}
diff --git a/view/registration.tmpl b/view/registration.tmpl
index 62a1ecc..2cef844 100644
--- a/view/registration.tmpl
+++ b/view/registration.tmpl
@@ -15,14 +15,14 @@
or
{{ $dividerNeeded = false }}
{{ end }}
-
+
{{ range $provider := $.WebOIDCProviders }}
+
{{ if and $provider.RequireInvite (not $.InviteCode) }}
- Signing in with {{ $provider.Name }} is invite-only.
+ {{ call $.T "Signing in with %s requires an invite." $provider.Name }}
{{ else }}
-
{{ end }}
{{ end }}
{{ $dividerNeeded = true }}
@@ -31,38 +31,31 @@
{{ if and .App.Config.RegistrationNewPlayer.Allow .App.Config.AllowPasswordLogin }}
{{ if $dividerNeeded }}
-
or
+
{{ call .T "or" }}
{{ $dividerNeeded = false }}
{{ end }}
-
Register
+
{{ call .T "Register" }}
{{ if and .App.Config.RegistrationNewPlayer.RequireInvite (not .InviteCode) }}
-
Registration as a new player is invite-only.
+
{{ call .T "Registration as a new player is invite-only." }}
{{ else }}
{{ if .App.Config.CreateNewPlayer.AllowChoosingUUID }}
-
Register a new account:
+
{{ call .T "Register a new account:" }}
{{ else }}
-
Register a new account with a random UUID:
+
{{ call .T "Register a new account with a random UUID:" }}
{{ end }}
{{ end }}
@@ -92,29 +85,28 @@
{{ if and .App.Config.RegistrationExistingPlayer.Allow .App.Config.AllowPasswordLogin }}
{{ if $dividerNeeded }}
-
or
+
{{ call .T "or" }}
{{ $dividerNeeded = false }}
{{ end }}
-
Register from an existing Minecraft player
- {{ if and .App.Config.RegistrationExistingPlayer.RequireInvite (not
- .InviteCode)
- }}
-
Registration as an existing player is invite-only.
+
{{ call .T "Register from an existing Minecraft player" }}
+ {{ if and .App.Config.RegistrationExistingPlayer.RequireInvite (not .InviteCode) }}
+
{{ call .T "Registration as an existing player is invite-only." }}
{{ else }}
{{ if .App.Config.ImportExistingPlayer.RequireSkinVerification }}
- Register a new account with the UUID of an existing
- {{ .App.Config.ImportExistingPlayer.Nickname }} account.
- Requires verification that you own the account.
+ {{ call .T
+ "Register a new account with the UUID of an existing %s account. Requires verification that you own the account."
+ .App.Config.ImportExistingPlayer.Nickname
+ }}
{{ if .InviteCode }}
-
Using invite code {{ .InviteCode }}
+
{{ call .T "Using invite code %s" .InviteCode }}
{{ end }}
{{ else }}
- Register a new account with the UUID of an existing
- {{ .App.Config.ImportExistingPlayer.Nickname }} account.
+ {{ call .T "Register a new account with the UUID of an existing %s account" .App.Config.ImportExistingPlayer.Nickname }}
{{ end }}
{{ end }}
diff --git a/view/root.tmpl b/view/root.tmpl
index 1130fdb..3abdd24 100644
--- a/view/root.tmpl
+++ b/view/root.tmpl
@@ -16,7 +16,7 @@
{{ call .T "On recent versions of Minecraft, you can use %s on an unmodified Vanilla server. To do so, add the following arguments before you specify the jar file when you start the server:" }}
+
{{ call .T "On recent versions of Minecraft, you can use %s on an unmodified Vanilla server. To do so, add the following arguments before you specify the jar file when you start the server:" .App.Config.ApplicationName }}