i18n challenge.tmpl

This commit is contained in:
Evan Goode 2025-07-08 22:44:30 -04:00
parent 1ab89cf63d
commit 27c13e481d
3 changed files with 58 additions and 32 deletions

View File

@ -180,3 +180,33 @@ msgstr "No está permitido elegir un nombre de jugador."
msgid "Player name" msgid "Player name"
msgstr "Nombre de jugador" msgstr "Nombre de jugador"
msgid "We need to verify that you own the %s account “%s” before you register its UUID."
msgstr "Necesitamos verificar que eres el propietario de la cuenta %s “%s” antes de registrar su UUID."
msgid "Download this image and set it as your skin on your %s account, on <a target=\"_blank\" href=\"%s\">this page</a>."
msgstr "Descarga esta imagen y configúrala como tu skin en tu cuenta de %s, en <a target=\"_blank\" href=\"%s\">esta página</a>."
msgid "Download this image and set it as your skin on your %s account."
msgstr "Descarga esta imagen y configúrala como tu skin en tu cuenta de %s."
msgid "%s verification skin"
msgstr "Skin de verificación de %s"
msgid "%s-verification-skin.png"
msgstr "%s-skin-de-verificación.png"
msgid "Download skin"
msgstr "Descargar skin"
msgid "When you are done, hit “Register”."
msgstr "Cuando termines, haz clic en “Registrarse”."
msgid "When you are done, enter a password for your %s account and hit “Register”."
msgstr "Cuando termines, ingresa una contraseña para tu cuenta de %s y haz clic en “Registrarse”."
msgid "When you are done, hit “Create player”."
msgstr "Cuando termines, haz clic en “Crear jugador”."
msgid "Create player"
msgstr "Crear jugador"

View File

@ -2,17 +2,21 @@
{{ define "content" }} {{ define "content" }}
{{ template "header" . }} {{ template "header" . }}
<p> <p>{{ call .T
We need to verify that you own the "We need to verify that you own the %s account “%s” before you register its UUID."
{{ .App.Config.ImportExistingPlayer.Nickname }} account .App.Config.ImportExistingPlayer.Nickname
"{{ .PlayerName }}" before you register its UUID. .PlayerName
</p> }}</p>
<p> <p>
Download this image and set it as your skin on your {{ if .App.Config.ImportExistingPlayer.SetSkinURL }}{{ call .T
{{ .App.Config.ImportExistingPlayer.Nickname }} `Download this image and set it as your skin on your %s account, on <a target="_blank" href="%s">this page</a>.`
account{{ if .App.Config.ImportExistingPlayer.SetSkinURL }}, <a target="_blank" href="{{ .App.Config.ImportExistingPlayer.SetSkinURL }}">here</a>{{ end }}. .App.Config.ImportExistingPlayer.Nickname
</p> .App.Config.ImportExistingPlayer.SetSkinURL
}}{{ else }}{{ call .T
"Download this image and set it as your skin on your %s account."
.App.Config.ImportExistingPlayer.Nickname
}}{{ end }}</p>
<div style="text-align: center"> <div style="text-align: center">
<img <img
@ -20,53 +24,45 @@
width="256" width="256"
height="256" height="256"
style="image-rendering: pixelated; width: 256px;" style="image-rendering: pixelated; width: 256px;"
alt="{{ .App.Config.ApplicationName }} verification skin" alt="{{ call .T "%s verification skin" .App.Config.ApplicationName }}"
/> />
<p> <p>
<a <a download="{{ call .T "%s-verification-skin.png" .PlayerName }}" href="data:image/png;base64,{{ .SkinBase64 }}">{{ call .T "Download skin" }}</a>
download="{{ .SkinFilename }}"
href="data:image/png;base64,{{ .SkinBase64 }}"
>Download skin</a
>
</p> </p>
</div> </div>
{{ if eq .Action "register" }} {{ if eq .Action "register" }}
{{ if .UseIDToken }} {{ if .UseIDToken }}
<p> <p>{{ call .T "When you are done, hit “Register”." }}</p>
When you are done, hit "Register".
</p>
{{ else }} {{ else }}
<p> <p>{{ call .T
When you are done, enter a password for your {{ .App.Config.ApplicationName }} account and hit "When you are done, enter a password for your %s account and hit “Register”."
"Register". .App.Config.ApplicationName
</p> }}</p>
{{ end }} {{ end }}
<form action="{{ .App.FrontEndURL }}/web/register" method="post"> <form action="{{ .App.FrontEndURL }}/web/register" method="post">
<input hidden type="text" name="playerName" value="{{ .PlayerName }}" <input hidden type="text" name="playerName" value="{{ .PlayerName }}"
/> />
{{ if not .UseIDToken }} {{ if not .UseIDToken }}
<input type="password" name="password" placeholder="Password" required /> <input type="password" name="password" placeholder="{{ call .T "Password" }}" required />
{{ end }} {{ end }}
<input hidden type="checkbox" name="existingPlayer" checked /> <input hidden type="checkbox" name="existingPlayer" checked />
<input hidden type="checkbox" name="useIdToken" {{ if .UseIDToken }}checked{{ end }} /> <input hidden type="checkbox" name="useIdToken" {{ if .UseIDToken }}checked{{ end }} />
<input hidden name="challengeToken" value="{{ .ChallengeToken }}" /> <input hidden name="challengeToken" value="{{ .ChallengeToken }}" />
<input hidden name="inviteCode" value="{{ .InviteCode }}" /> <input hidden name="inviteCode" value="{{ .InviteCode }}" />
<input hidden name="returnUrl" value="{{ .URL }}" /> <input hidden name="returnUrl" value="{{ .URL }}" />
<input type="submit" value="Register" /> <input type="submit" value="{{ call .T "Register" }}" />
</form> </form>
{{ else if eq .Action "create-player" }} {{ else if eq .Action "create-player" }}
<p> <p>{{ call .T "When you are done, hit “Create player”." }}</p>
When you are done, hit "Create player".
</p>
<form action="{{ .App.FrontEndURL }}/web/create-player" method="post"> <form action="{{ .App.FrontEndURL }}/web/create-player" method="post">
<input hidden name="userUuid" value="{{ .UserUUID }}"/> <input hidden name="userUuid" value="{{ .UserUUID }}"/>
<input hidden name="playerName" value="{{ .PlayerName }}"/> <input hidden name="playerName" value="{{ .PlayerName }}"/>
<input hidden type="checkbox" name="existingPlayer" checked /> <input hidden type="checkbox" name="existingPlayer" checked />
<input hidden name="challengeToken" value="{{ .ChallengeToken }}" /> <input hidden name="challengeToken" value="{{ .ChallengeToken }}" />
<input hidden name="returnUrl" value="{{ .URL }}" /> <input hidden name="returnUrl" value="{{ .URL }}" />
<input type="submit" value="Create player" /> <input type="submit" value="{{ call .T "Create player" }}" />
</form> </form>
{{ end }} {{ end }}

View File

@ -5,7 +5,7 @@
{{ define "content" }} {{ define "content" }}
{{ template "header" . }} {{ template "header" . }}
{{ $authlibInjectorA := render `<a href="{{ index . 0}}">{{ index . 1}}</a>` .App.AuthlibInjectorURL .App.AuthlibInjectorURL }} {{ $authlibInjectorLink := render `<a href="{{ index . 0}}">{{ index . 1}}</a>` .App.AuthlibInjectorURL .App.AuthlibInjectorURL }}
<h3>{{ call .T "Log in" }}</h3> <h3>{{ call .T "Log in" }}</h3>
@ -61,7 +61,7 @@
<li>{{ call .T <li>{{ call .T
"Enter your player name and your %s password or Minecraft Token, and use %s for the URL. Click “OK”." "Enter your player name and your %s password or Minecraft Token, and use %s for the URL. Click “OK”."
.App.Config.ApplicationName .App.Config.ApplicationName
$authlibInjectorA $authlibInjectorLink
}}</li> }}</li>
</ol> </ol>
@ -72,7 +72,7 @@
<li> <li>
{{ call .T {{ call .T
"At the bottom left, click “New Auth Server” and enter %s. Click “Next” and then “Finish”." "At the bottom left, click “New Auth Server” and enter %s. Click “Next” and then “Finish”."
$authlibInjectorA $authlibInjectorLink
}} }}
</li> </li>
<li> <li>
@ -86,7 +86,7 @@
<h4>{{ call .T "Other launchers" }}</h4> <h4>{{ call .T "Other launchers" }}</h4>
<p>{{ call .T "Use the authlib-injector URL %s." $authlibInjectorA }}</p> <p>{{ call .T "Use the authlib-injector URL %s." $authlibInjectorLink }}</p>
<p>{{ call .T "Or, if your launcher supports custom API servers but not via authlib-injector, use the following URLs:" }}</p> <p>{{ call .T "Or, if your launcher supports custom API servers but not via authlib-injector, use the following URLs:" }}</p>