add more translations

This commit is contained in:
Graham McIntire 2025-07-18 11:18:04 -05:00
parent dadfef8a5b
commit 5aae01e66c
No known key found for this signature in database
11 changed files with 2676 additions and 1047 deletions

View file

@ -487,7 +487,7 @@ defmodule AprsmeWeb.CoreComponents do
clip-rule="evenodd"
/>
</svg>
Light
{gettext("Light")}
</button>
</li>
<li>
@ -495,7 +495,7 @@ defmodule AprsmeWeb.CoreComponents do
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" />
</svg>
Dark
{gettext("Dark")}
</button>
</li>
<li>
@ -507,7 +507,7 @@ defmodule AprsmeWeb.CoreComponents do
clip-rule="evenodd"
/>
</svg>
Auto
{gettext("Auto")}
</button>
</li>
</ul>

View file

@ -208,18 +208,19 @@
data-map-page={to_string(assigns[:map_page] || false)}
>
<div>
<.flash kind={:info} title="Success!" flash={@flash} />
<.flash kind={:error} title="Error!" flash={@flash} />
<.flash kind={:info} title={gettext("Success!")} flash={@flash} />
<.flash kind={:error} title={gettext("Error!")} flash={@flash} />
<.flash
id="disconnected"
kind={:error}
title="We can't find the internet"
title={gettext("We can't find the internet")}
close={false}
autoshow={false}
phx-disconnected={show("#disconnected")}
phx-connected={hide("#disconnected")}
>
Attempting to reconnect <.icon name="arrow-path" outline={true} class="ml-1 w-3 h-3 inline animate-spin" />
{gettext("Attempting to reconnect")}
<.icon name="arrow-path" outline={true} class="ml-1 w-3 h-3 inline animate-spin" />
</.flash>
{@inner_content}
</div>

View file

@ -195,18 +195,19 @@
<main>
<div>
<.flash kind={:info} title="Success!" flash={@flash} />
<.flash kind={:error} title="Error!" flash={@flash} />
<.flash kind={:info} title={gettext("Success!")} flash={@flash} />
<.flash kind={:error} title={gettext("Error!")} flash={@flash} />
<.flash
id="disconnected"
kind={:error}
title="We can't find the internet"
title={gettext("We can't find the internet")}
close={false}
autoshow={false}
phx-disconnected={show("#disconnected")}
phx-connected={hide("#disconnected")}
>
Attempting to reconnect <.icon name="arrow-path" outline={true} class="ml-1 w-3 h-3 inline animate-spin" />
{gettext("Attempting to reconnect")}
<.icon name="arrow-path" outline={true} class="ml-1 w-3 h-3 inline animate-spin" />
</.flash>
{@inner_content}
</div>

View file

@ -12,13 +12,13 @@ defmodule AprsmeWeb.UserLoginLive do
<div class="max-w-md">
<div class="card bg-base-100 shadow-xl">
<div class="card-body">
<h1 class="card-title text-3xl mb-4 justify-center">Sign in to account</h1>
<h1 class="card-title text-3xl mb-4 justify-center">{gettext("Sign in to account")}</h1>
<p class="text-base-content/70 mb-6">
Don't have an account?
{gettext("Don't have an account?")}
<.link navigate={~p"/users/register"} class="link link-primary">
Sign up
{gettext("Sign up")}
</.link>
for an account now.
{gettext("for an account now.")}
</p>
<.simple_form
@ -31,28 +31,28 @@ defmodule AprsmeWeb.UserLoginLive do
>
<div class="form-control w-full">
<label class="label">
<span class="label-text">Email</span>
<span class="label-text">{gettext("Email")}</span>
</label>
<input
type="email"
name={Phoenix.HTML.Form.input_name(f, :email)}
value={Phoenix.HTML.Form.input_value(f, :email) || ""}
class="input input-bordered w-full"
placeholder="Enter your email"
placeholder={gettext("Enter your email")}
required
/>
</div>
<div class="form-control w-full">
<label class="label">
<span class="label-text">Password</span>
<span class="label-text">{gettext("Password")}</span>
</label>
<input
type="password"
name={Phoenix.HTML.Form.input_name(f, :password)}
value={Phoenix.HTML.Form.input_value(f, :password) || ""}
class="input input-bordered w-full"
placeholder="Enter your password"
placeholder={gettext("Enter your password")}
required
/>
</div>
@ -65,19 +65,19 @@ defmodule AprsmeWeb.UserLoginLive do
value="true"
class="checkbox checkbox-primary mr-2"
/>
<span class="label-text">Keep me logged in</span>
<span class="label-text">{gettext("Keep me logged in")}</span>
</label>
</div>
<div class="text-center mb-4">
<.link navigate={~p"/users/reset_password"} class="link link-primary text-sm">
Forgot your password?
{gettext("Forgot your password?")}
</.link>
</div>
<div class="form-control mt-6">
<button type="submit" class="btn btn-primary w-full" phx-disable-with="Signing in...">
Sign in
<button type="submit" class="btn btn-primary w-full" phx-disable-with={gettext("Signing in...")}>
{gettext("Sign in →")}
</button>
</div>
</.simple_form>

View file

@ -14,13 +14,13 @@ defmodule AprsmeWeb.UserRegistrationLive do
<div class="max-w-md">
<div class="card bg-base-100 shadow-xl">
<div class="card-body">
<h1 class="card-title text-3xl mb-4 justify-center">Register for an account</h1>
<h1 class="card-title text-3xl mb-4 justify-center">{gettext("Register for an account")}</h1>
<p class="text-base-content/70 mb-6">
Already registered?
{gettext("Already registered?")}
<.link navigate={~p"/users/log_in"} class="link link-primary">
Sign in
{gettext("Sign in")}
</.link>
to your account now.
{gettext("to your account now.")}
</p>
<.simple_form
@ -35,12 +35,12 @@ defmodule AprsmeWeb.UserRegistrationLive do
as={:user}
>
<div :if={@changeset.action == :insert} class="alert alert-error mb-4">
<span>Oops, something went wrong! Please check the errors below.</span>
<span>{gettext("Oops, something went wrong! Please check the errors below.")}</span>
</div>
<div class="form-control w-full">
<label class="label">
<span class="label-text">Email</span>
<span class="label-text">{gettext("Email")}</span>
</label>
<input
type="email"
@ -50,7 +50,7 @@ defmodule AprsmeWeb.UserRegistrationLive do
"input input-bordered w-full bg-base-100 text-base-content",
Keyword.has_key?(@changeset.errors, :email) && "input-error"
]}
placeholder="Enter your email"
placeholder={gettext("Enter your email")}
required
/>
<label :if={Keyword.has_key?(@changeset.errors, :email)} class="label">
@ -62,7 +62,7 @@ defmodule AprsmeWeb.UserRegistrationLive do
<div class="form-control w-full">
<label class="label">
<span class="label-text">Callsign</span>
<span class="label-text">{gettext("Callsign")}</span>
</label>
<input
type="text"
@ -72,7 +72,7 @@ defmodule AprsmeWeb.UserRegistrationLive do
"input input-bordered w-full bg-base-100 text-base-content",
Keyword.has_key?(@changeset.errors, :callsign) && "input-error"
]}
placeholder="Enter your amateur radio callsign"
placeholder={gettext("Enter your amateur radio callsign")}
required
/>
<label :if={Keyword.has_key?(@changeset.errors, :callsign)} class="label">
@ -84,7 +84,7 @@ defmodule AprsmeWeb.UserRegistrationLive do
<div class="form-control w-full">
<label class="label">
<span class="label-text">Password</span>
<span class="label-text">{gettext("Password")}</span>
</label>
<input
type="password"
@ -94,7 +94,7 @@ defmodule AprsmeWeb.UserRegistrationLive do
"input input-bordered w-full bg-base-100 text-base-content",
Keyword.has_key?(@changeset.errors, :password) && "input-error"
]}
placeholder="Enter your password"
placeholder={gettext("Enter your password")}
required
/>
<label :if={Keyword.has_key?(@changeset.errors, :password)} class="label">
@ -105,8 +105,8 @@ defmodule AprsmeWeb.UserRegistrationLive do
</div>
<div class="form-control mt-6">
<button type="submit" class="btn btn-primary w-full" phx-disable-with="Creating account...">
Create an account
<button type="submit" class="btn btn-primary w-full" phx-disable-with={gettext("Creating account...")}>
{gettext("Create an account")}
</button>
</div>
</.simple_form>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff