mirror of
https://github.com/unmojang/drasl.git
synced 2025-09-07 22:25:03 -04:00
i18n registration.tmpl
This commit is contained in:
parent
95ca36950e
commit
f49086f5ae
@ -3,6 +3,12 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Language: es\n"
|
"Language: es\n"
|
||||||
|
|
||||||
|
msgid "OpenID logo"
|
||||||
|
msgstr "Logo de OpenID"
|
||||||
|
|
||||||
|
msgid "Registration"
|
||||||
|
msgstr "Registro"
|
||||||
|
|
||||||
msgid "Register"
|
msgid "Register"
|
||||||
msgstr "Registrarse"
|
msgstr "Registrarse"
|
||||||
|
|
||||||
@ -110,3 +116,40 @@ msgstr "Con licencia %s."
|
|||||||
|
|
||||||
msgid "<a href=\"%s\">Source code</a>."
|
msgid "<a href=\"%s\">Source code</a>."
|
||||||
msgstr "<a href=\"%s\">Código fuente</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="text"],
|
||||||
input[type="number"],
|
input[type="number"],
|
||||||
input[type="password"] {
|
input[type="password"] {
|
||||||
|
width: 20em;
|
||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
@ -145,7 +146,7 @@ input[type="password"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input.long {
|
input.long {
|
||||||
width: 22em;
|
width: 34em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
<input type="text" name="username" placeholder="Username" required />
|
<input type="text" name="username" placeholder="Username" required />
|
||||||
<input hidden name="returnUrl" value="{{ .URL }}" />
|
<input hidden name="returnUrl" value="{{ .URL }}" />
|
||||||
<input
|
<input
|
||||||
class="long"
|
|
||||||
type="password"
|
type="password"
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<input type="submit" value="{{ call .T "Log out" }}" />
|
<input type="submit" value="{{ call .T "Log out" }}" />
|
||||||
</form>
|
</form>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ .App.FrontEndURL }}/web/registration">{{ call .T "Register" }}</a>
|
<a href="{{ .App.FrontEndURL }}/web/registration">{{ call .T "Registration" }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
<div class="divider">or</div>
|
<div class="divider">or</div>
|
||||||
{{ $dividerNeeded = false }}
|
{{ $dividerNeeded = false }}
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ range $provider := $.WebOIDCProviders }}
|
||||||
|
<p>
|
||||||
{{ if and $provider.RequireInvite (not $.InviteCode) }}
|
{{ 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 }}
|
{{ else }}
|
||||||
<p>
|
<a href="{{ $provider.AuthURL }}">{{ call $.T "Sign in with %s" $provider.Name }}</a>
|
||||||
<a href="{{ $provider.AuthURL }}">Sign in with {{ $provider.Name }}</a>
|
</p>
|
||||||
</p>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $dividerNeeded = true }}
|
{{ $dividerNeeded = true }}
|
||||||
@ -31,38 +31,31 @@
|
|||||||
<!-- RegistrationNewPlayer -->
|
<!-- RegistrationNewPlayer -->
|
||||||
{{ if and .App.Config.RegistrationNewPlayer.Allow .App.Config.AllowPasswordLogin }}
|
{{ if and .App.Config.RegistrationNewPlayer.Allow .App.Config.AllowPasswordLogin }}
|
||||||
{{ if $dividerNeeded }}
|
{{ if $dividerNeeded }}
|
||||||
<div class="divider">or</div>
|
<div class="divider">{{ call .T "or" }}</div>
|
||||||
{{ $dividerNeeded = false }}
|
{{ $dividerNeeded = false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h3>Register</h3>
|
<h3>{{ call .T "Register" }}</h3>
|
||||||
{{ if and .App.Config.RegistrationNewPlayer.RequireInvite (not .InviteCode) }}
|
{{ 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 }}
|
{{ else }}
|
||||||
{{ if .App.Config.CreateNewPlayer.AllowChoosingUUID }}
|
{{ if .App.Config.CreateNewPlayer.AllowChoosingUUID }}
|
||||||
<p>Register a new account:</p>
|
<p>{{ call .T "Register a new account:" }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p>Register a new account with a random UUID:</p>
|
<p>{{ call .T "Register a new account with a random UUID:" }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<form action="{{ .App.FrontEndURL }}/web/register" method="post">
|
<form action="{{ .App.FrontEndURL }}/web/register" method="post">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="playerName"
|
name="playerName"
|
||||||
placeholder="Username"
|
placeholder="{{ call .T "Username" }}"
|
||||||
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="email"
|
|
||||||
placeholder="Leave this blank"
|
|
||||||
class="honeypot"
|
|
||||||
/>
|
|
||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="Password"
|
placeholder="{{ call .T "Password" }}"
|
||||||
minlength="{{ .App.Config.MinPasswordLength }}"
|
minlength="{{ .App.Config.MinPasswordLength }}"
|
||||||
class="long"
|
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
{{ if .App.Config.CreateNewPlayer.AllowChoosingUUID }}
|
{{ if .App.Config.CreateNewPlayer.AllowChoosingUUID }}
|
||||||
@ -71,7 +64,7 @@
|
|||||||
class="long"
|
class="long"
|
||||||
type="text"
|
type="text"
|
||||||
name="uuid"
|
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}$"
|
pattern="^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
@ -79,10 +72,10 @@
|
|||||||
<input type="text" name="inviteCode" value="{{ .InviteCode }}" hidden />
|
<input type="text" name="inviteCode" value="{{ .InviteCode }}" hidden />
|
||||||
<input hidden name="returnUrl" value="{{ .URL }}" />
|
<input hidden name="returnUrl" value="{{ .URL }}" />
|
||||||
{{ if .InviteCode }}
|
{{ if .InviteCode }}
|
||||||
<p><em>Using invite code {{ .InviteCode }}</em></p>
|
<p><em>{{ call .T "Using invite code %s" .InviteCode }}</em></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" value="Register" />
|
<input type="submit" value="{{ call .T "Register" }}" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -92,29 +85,28 @@
|
|||||||
<!-- RegistrationExistingPlayer -->
|
<!-- RegistrationExistingPlayer -->
|
||||||
{{ if and .App.Config.RegistrationExistingPlayer.Allow .App.Config.AllowPasswordLogin }}
|
{{ if and .App.Config.RegistrationExistingPlayer.Allow .App.Config.AllowPasswordLogin }}
|
||||||
{{ if $dividerNeeded }}
|
{{ if $dividerNeeded }}
|
||||||
<div class="divider">or</div>
|
<div class="divider">{{ call .T "or" }}</div>
|
||||||
{{ $dividerNeeded = false }}
|
{{ $dividerNeeded = false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h3>Register from an existing Minecraft player</h3>
|
<h3>{{ call .T "Register from an existing Minecraft player" }}</h3>
|
||||||
{{ if and .App.Config.RegistrationExistingPlayer.RequireInvite (not
|
{{ if and .App.Config.RegistrationExistingPlayer.RequireInvite (not .InviteCode) }}
|
||||||
.InviteCode)
|
<p>{{ call .T "Registration as an existing player is invite-only." }}</p>
|
||||||
}}
|
|
||||||
<p>Registration as an existing player is invite-only.</p>
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if .App.Config.ImportExistingPlayer.RequireSkinVerification }}
|
{{ if .App.Config.ImportExistingPlayer.RequireSkinVerification }}
|
||||||
<p>
|
<p>
|
||||||
Register a new account with the UUID of an existing
|
{{ call .T
|
||||||
{{ .App.Config.ImportExistingPlayer.Nickname }} account.
|
"Register a new account with the UUID of an existing %s account. Requires verification that you own the account."
|
||||||
Requires verification that you own the account.
|
.App.Config.ImportExistingPlayer.Nickname
|
||||||
|
}}
|
||||||
</p>
|
</p>
|
||||||
{{ if .InviteCode }}
|
{{ if .InviteCode }}
|
||||||
<p><em>Using invite code {{ .InviteCode }}</em></p>
|
<p><em>{{ call .T "Using invite code %s" .InviteCode }}</em></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<form action="{{ .App.FrontEndURL }}/web/register-challenge" method="get">
|
<form action="{{ .App.FrontEndURL }}/web/register-challenge" method="get">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="playerName"
|
name="playerName"
|
||||||
placeholder="{{ .App.Config.ImportExistingPlayer.Nickname }} Player name"
|
placeholder="{{ call .T "%s player name" .App.Config.ImportExistingPlayer.Nickname }}"
|
||||||
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
@ -125,25 +117,24 @@
|
|||||||
hidden
|
hidden
|
||||||
/>
|
/>
|
||||||
<input hidden name="returnUrl" value="{{ .URL }}" />
|
<input hidden name="returnUrl" value="{{ .URL }}" />
|
||||||
<input type="submit" value="Continue" />
|
<input type="submit" value="{{ call .T "Continue" }}" />
|
||||||
</form>
|
</form>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p>
|
<p>
|
||||||
Register a new account with the UUID of an existing
|
{{ call .T "Register a new account with the UUID of an existing %s account" .App.Config.ImportExistingPlayer.Nickname }}
|
||||||
{{ .App.Config.ImportExistingPlayer.Nickname }} account.
|
|
||||||
</p>
|
</p>
|
||||||
<form action="{{ .App.FrontEndURL }}/web/register" method="post">
|
<form action="{{ .App.FrontEndURL }}/web/register" method="post">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="playerName"
|
name="playerName"
|
||||||
placeholder="{{ .App.Config.ImportExistingPlayer.Nickname }} Player name"
|
placeholder="{{ call .T "%s player name" .App.Config.ImportExistingPlayer.Nickname }}"
|
||||||
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
maxlength="{{ .App.Constants.MaxUsernameLength }}"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="Password"
|
placeholder="{{ call .T "Password" }}"
|
||||||
minlength="{{ .App.Config.MinPasswordLength }}"
|
minlength="{{ .App.Config.MinPasswordLength }}"
|
||||||
class="long"
|
class="long"
|
||||||
required
|
required
|
||||||
@ -156,9 +147,9 @@
|
|||||||
hidden
|
hidden
|
||||||
/>
|
/>
|
||||||
{{ if .InviteCode }}
|
{{ if .InviteCode }}
|
||||||
<p><em>Using invite code {{ .InviteCode }}</em></p>
|
<p><em>{{ call .T "Using invite code %s" .InviteCode }}</em></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<input type="submit" value="Register" />
|
<input type="submit" value="{{ call .T "Register" }}" />
|
||||||
</form>
|
</form>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<div class="divider">or</div>
|
<div class="divider">or</div>
|
||||||
{{ $dividerNeeded = false }}
|
{{ $dividerNeeded = false }}
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ range $provider := $.WebOIDCProviders }}
|
||||||
<p>
|
<p>
|
||||||
<a href="{{ $provider.AuthURL }}">{{ call $.T "Sign in with %s" $provider.Name }}</a>
|
<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="returnUrl" value="{{ .URL }}" />
|
||||||
<input hidden name="destination" value="{{ .Destination }}" />
|
<input hidden name="destination" value="{{ .Destination }}" />
|
||||||
<input
|
<input
|
||||||
class="long"
|
|
||||||
type="password"
|
type="password"
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="{{ call .T "Password" }}"
|
placeholder="{{ call .T "Password" }}"
|
||||||
@ -114,7 +113,7 @@
|
|||||||
|
|
||||||
<h4>{{ call .T "Minecraft 1.16 and later" }}</h4>
|
<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">
|
<pre style="word-wrap: break-word; white-space: pre-wrap; overflow-x: auto">
|
||||||
-Dminecraft.api.env=custom
|
-Dminecraft.api.env=custom
|
||||||
-Dminecraft.api.auth.host={{ .App.AuthURL }}
|
-Dminecraft.api.auth.host={{ .App.AuthURL }}
|
||||||
|
@ -227,7 +227,6 @@
|
|||||||
type="password"
|
type="password"
|
||||||
name="password"
|
name="password"
|
||||||
id="password"
|
id="password"
|
||||||
class="long"
|
|
||||||
placeholder="Leave blank to keep"
|
placeholder="Leave blank to keep"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user