diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9635718f..9875b2e8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,6 +41,8 @@ If you're multilingual, this project can use your translations! Visit - When adding text, please use `gettext` macros to enable things to be translated in the future. After adding `gettext` macros, run `mix format` in order to add your new text strings to the files in `priv/gettext`. + - Existing domains: `"default"` (for anything general), `"prompts"`, + `"emails"`, and `"errors"` - Before submitting a PR, please make sure all tests are passing using `mix test`. And as always, thank you! diff --git a/lib/cannery_web/live/home_live.ex b/lib/cannery_web/live/home_live.ex index a31e39f8..f2ffe4c0 100644 --- a/lib/cannery_web/live/home_live.ex +++ b/lib/cannery_web/live/home_live.ex @@ -36,54 +36,62 @@ defmodule CanneryWeb.HomeLive do ~H"""
Cannery lets you easily keep an eye on your ammo levels before and after range day
-- Self-host your own instance, or use an instance from someone you trust. - Your data stays with you, period + <%= gettext("%{name} lets you easily keep an eye on your ammo levels before and after range day", + name: "Cannery" + ) %>
Access from any internet-capable device
++ <%= gettext("Self-host your own instance, or use an instance from someone you trust.") %> + <%= gettext("Your data stays with you, period") %> +
++ <%= gettext("Access from any internet-capable device") %> +
<%= if @admins |> Enum.empty?() do %> - <%= link("Sign up to setup Cannery!", + <%= link(dgettext("prompts", "Register to setup %{name}", name: "Cannery"), class: "hover:underline", to: Routes.user_registration_path(CanneryWeb.Endpoint, :new) ) %> @@ -104,8 +112,8 @@ defmodule CanneryWeb.HomeLive do
<%= Application.get_env(:cannery, CanneryWeb.Endpoint)[:registration] |> case do - "public" -> "Public Signups" - _ -> "Invite Only" + "public" -> gettext("Public Signups") + _ -> gettext("Invite Only") end %>