mirror of
https://github.com/unmojang/drasl.git
synced 2025-08-03 10:56:06 -04:00
i18n registration.tmpl
This commit is contained in:
parent
5e3d8e1929
commit
54f1b49b44
@ -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 "<a href=\"%s\">Source code</a>."
|
||||
msgstr "<a href=\"%s\">Código fuente</a>."
|
||||
|
||||
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"
|
||||
|
@ -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) {
|
||||
|
@ -22,7 +22,6 @@
|
||||
<input type="text" name="username" placeholder="Username" required />
|
||||
<input hidden name="returnUrl" value="{{ .URL }}" />
|
||||
<input
|
||||
class="long"
|
||||
type="password"
|
||||
name="password"
|
||||
placeholder="Password"
|
||||
|
@ -24,7 +24,7 @@
|
||||
<input type="submit" value="{{ call .T "Log out" }}" />
|
||||
</form>
|
||||
{{ else }}
|
||||
<a href="{{ .App.FrontEndURL }}/web/registration">{{ call .T "Register" }}</a>
|
||||
<a href="{{ .App.FrontEndURL }}/web/registration">{{ call .T "Registration" }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</nav>
|
||||
|
@ -15,14 +15,14 @@
|
||||
<div class="divider">or</div>
|
||||
{{ $dividerNeeded = false }}
|
||||
{{ end }}
|
||||
<h3><img class="openid-logo" src="{{ .App.PublicURL }}/openid-logo.svg" alt="OpenID logo"></h3>
|
||||
<h3><img class="openid-logo" src="{{ .App.PublicURL }}/openid-logo.svg" alt="{{ call .T "OpenID logo" }}"></h3>
|
||||
{{ range $provider := $.WebOIDCProviders }}
|
||||
<p>
|
||||
{{ 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 }}
|
||||
<p>
|
||||
<a href="{{ $provider.AuthURL }}">Sign in with {{ $provider.Name }}</a>
|
||||
</p>
|
||||
<a href="{{ $provider.AuthURL }}">{{ call $.T "Sign in with %s" $provider.Name }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $dividerNeeded = true }}
|
||||
@ -31,38 +31,31 @@
|
||||
<!-- RegistrationNewPlayer -->
|
||||
{{ if and .App.Config.RegistrationNewPlayer.Allow .App.Config.AllowPasswordLogin }}
|
||||
{{ if $dividerNeeded }}
|
||||
<div class="divider">or</div>
|
||||
<div class="divider">{{ call .T "or" }}</div>
|
||||
{{ $dividerNeeded = false }}
|
||||
{{ end }}
|
||||
<h3>Register</h3>
|
||||
<h3>{{ call .T "Register" }}</h3>
|
||||
{{ if and .App.Config.RegistrationNewPlayer.RequireInvite (not .InviteCode) }}
|
||||
<p>Registration as a new player is invite-only.</p>
|
||||
<p>{{ call .T "Registration as a new player is invite-only." }}</p>
|
||||
{{ else }}
|
||||
{{ if .App.Config.CreateNewPlayer.AllowChoosingUUID }}
|
||||
<p>Register a new account:</p>
|
||||
<p>{{ call .T "Register a new account:" }}</p>
|
||||
{{ else }}
|
||||
<p>Register a new account with a random UUID:</p>
|
||||
<p>{{ call .T "Register a new account with a random UUID:" }}</p>
|
||||
{{ end }}
|
||||
<form action="{{ .App.FrontEndURL }}/web/register" method="post">
|
||||
<input
|
||||
type="text"
|
||||
name="playerName"
|
||||
placeholder="Username"
|
||||
placeholder="{{ call .T "Username" }}"
|
||||
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
||||
required
|
||||
/>
|
||||
<input
|
||||
type="text"
|
||||
name="email"
|
||||
placeholder="Leave this blank"
|
||||
class="honeypot"
|
||||
/>
|
||||
<input
|
||||
type="password"
|
||||
name="password"
|
||||
placeholder="Password"
|
||||
placeholder="{{ call .T "Password" }}"
|
||||
minlength="{{ .App.Config.MinPasswordLength }}"
|
||||
class="long"
|
||||
required
|
||||
/>
|
||||
{{ 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}$"
|
||||
/>
|
||||
</p>
|
||||
@ -79,10 +72,10 @@
|
||||
<input type="text" name="inviteCode" value="{{ .InviteCode }}" hidden />
|
||||
<input hidden name="returnUrl" value="{{ .URL }}" />
|
||||
{{ if .InviteCode }}
|
||||
<p><em>Using invite code {{ .InviteCode }}</em></p>
|
||||
<p><em>{{ call .T "Using invite code %s" .InviteCode }}</em></p>
|
||||
{{ end }}
|
||||
<p>
|
||||
<input type="submit" value="Register" />
|
||||
<input type="submit" value="{{ call .T "Register" }}" />
|
||||
</p>
|
||||
</form>
|
||||
{{ end }}
|
||||
@ -92,29 +85,28 @@
|
||||
<!-- RegistrationExistingPlayer -->
|
||||
{{ if and .App.Config.RegistrationExistingPlayer.Allow .App.Config.AllowPasswordLogin }}
|
||||
{{ if $dividerNeeded }}
|
||||
<div class="divider">or</div>
|
||||
<div class="divider">{{ call .T "or" }}</div>
|
||||
{{ $dividerNeeded = false }}
|
||||
{{ end }}
|
||||
<h3>Register from an existing Minecraft player</h3>
|
||||
{{ if and .App.Config.RegistrationExistingPlayer.RequireInvite (not
|
||||
.InviteCode)
|
||||
}}
|
||||
<p>Registration as an existing player is invite-only.</p>
|
||||
<h3>{{ call .T "Register from an existing Minecraft player" }}</h3>
|
||||
{{ if and .App.Config.RegistrationExistingPlayer.RequireInvite (not .InviteCode) }}
|
||||
<p>{{ call .T "Registration as an existing player is invite-only." }}</p>
|
||||
{{ else }}
|
||||
{{ if .App.Config.ImportExistingPlayer.RequireSkinVerification }}
|
||||
<p>
|
||||
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
|
||||
}}
|
||||
</p>
|
||||
{{ if .InviteCode }}
|
||||
<p><em>Using invite code {{ .InviteCode }}</em></p>
|
||||
<p><em>{{ call .T "Using invite code %s" .InviteCode }}</em></p>
|
||||
{{ end }}
|
||||
<form action="{{ .App.FrontEndURL }}/web/register-challenge" method="get">
|
||||
<input
|
||||
type="text"
|
||||
name="playerName"
|
||||
placeholder="{{ .App.Config.ImportExistingPlayer.Nickname }} Player name"
|
||||
placeholder="{{ call .T "%s player name" .App.Config.ImportExistingPlayer.Nickname }}"
|
||||
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
||||
required
|
||||
/>
|
||||
@ -125,25 +117,24 @@
|
||||
hidden
|
||||
/>
|
||||
<input hidden name="returnUrl" value="{{ .URL }}" />
|
||||
<input type="submit" value="Continue" />
|
||||
<input type="submit" value="{{ call .T "Continue" }}" />
|
||||
</form>
|
||||
{{ else }}
|
||||
<p>
|
||||
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 }}
|
||||
</p>
|
||||
<form action="{{ .App.FrontEndURL }}/web/register" method="post">
|
||||
<input
|
||||
type="text"
|
||||
name="playerName"
|
||||
placeholder="{{ .App.Config.ImportExistingPlayer.Nickname }} Player name"
|
||||
placeholder="{{ call .T "%s player name" .App.Config.ImportExistingPlayer.Nickname }}"
|
||||
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
||||
required
|
||||
/>
|
||||
<input
|
||||
type="password"
|
||||
name="password"
|
||||
placeholder="Password"
|
||||
placeholder="{{ call .T "Password" }}"
|
||||
minlength="{{ .App.Config.MinPasswordLength }}"
|
||||
class="long"
|
||||
required
|
||||
@ -156,9 +147,9 @@
|
||||
hidden
|
||||
/>
|
||||
{{ if .InviteCode }}
|
||||
<p><em>Using invite code {{ .InviteCode }}</em></p>
|
||||
<p><em>{{ call .T "Using invite code %s" .InviteCode }}</em></p>
|
||||
{{ end }}
|
||||
<input type="submit" value="Register" />
|
||||
<input type="submit" value="{{ call .T "Register" }}" />
|
||||
</form>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div class="divider">or</div>
|
||||
{{ $dividerNeeded = false }}
|
||||
{{ end }}
|
||||
<h3><img class="openid-logo" src="{{ .App.PublicURL }}/openid-logo.svg" alt="OpenID logo"></h3>
|
||||
<h3><img class="openid-logo" src="{{ .App.PublicURL }}/openid-logo.svg" alt="{{ call .T "OpenID logo" }}"></h3>
|
||||
{{ range $provider := $.WebOIDCProviders }}
|
||||
<p>
|
||||
<a href="{{ $provider.AuthURL }}">{{ call $.T "Sign in with %s" $provider.Name }}</a>
|
||||
@ -35,7 +35,6 @@
|
||||
<input hidden name="returnUrl" value="{{ .URL }}" />
|
||||
<input hidden name="destination" value="{{ .Destination }}" />
|
||||
<input
|
||||
class="long"
|
||||
type="password"
|
||||
name="password"
|
||||
placeholder="{{ call .T "Password" }}"
|
||||
@ -114,7 +113,7 @@
|
||||
|
||||
<h4>{{ call .T "Minecraft 1.16 and later" }}</h4>
|
||||
|
||||
<p>{{ 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:" }}</p>
|
||||
<p>{{ 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 }}</p>
|
||||
<pre style="word-wrap: break-word; white-space: pre-wrap; overflow-x: auto">
|
||||
-Dminecraft.api.env=custom
|
||||
-Dminecraft.api.auth.host={{ .App.AuthURL }}
|
||||
|
@ -227,7 +227,6 @@
|
||||
type="password"
|
||||
name="password"
|
||||
id="password"
|
||||
class="long"
|
||||
placeholder="Leave blank to keep"
|
||||
/>
|
||||
</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user