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 }} -

- Sign in with {{ $provider.Name }} -

+ {{ call $.T "Sign in with %s" $provider.Name }} +

{{ 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 }}
- {{ if .App.Config.CreateNewPlayer.AllowChoosingUUID }} @@ -71,7 +64,7 @@ class="long" type="text" name="uuid" - placeholder="Player UUID (leave blank for random)" + placeholder="{{ call .T "Player UUID (leave blank for random)" }}" pattern="^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$" />

@@ -79,10 +72,10 @@ {{ if .InviteCode }} -

Using invite code {{ .InviteCode }}

+

{{ call .T "Using invite code %s" .InviteCode }}

{{ 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 }}
@@ -125,25 +117,24 @@ hidden /> - +
{{ 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 }}

{{ if .InviteCode }} -

Using invite code {{ .InviteCode }}

+

{{ call .T "Using invite code %s" .InviteCode }}

{{ end }} - +
{{ 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 @@
or
{{ $dividerNeeded = false }} {{ end }} -

+

{{ range $provider := $.WebOIDCProviders }}

{{ call $.T "Sign in with %s" $provider.Name }} @@ -35,7 +35,6 @@ {{ call .T "Minecraft 1.16 and later" }} -

{{ 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 }}

 -Dminecraft.api.env=custom
 -Dminecraft.api.auth.host={{ .App.AuthURL }}
diff --git a/view/user.tmpl b/view/user.tmpl
index d86de83..8a053d6 100644
--- a/view/user.tmpl
+++ b/view/user.tmpl
@@ -227,7 +227,6 @@
           type="password"
           name="password"
           id="password"
-          class="long"
           placeholder="Leave blank to keep"
         />