add spanish
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
shibao 2022-12-03 22:26:13 -05:00
parent 16155687c9
commit 629872872a
20 changed files with 85 additions and 50 deletions

View File

@ -3,7 +3,7 @@
- Tweak urls for catalog, ammo, containers, tags and shot records
- Fix bug with shot group chart not drawing lines between days correctly
- Improve cards across app (make them line up with each other)
- Update translations (thank you Brea!)
- Update translations and add spanish!!! (thank you Brea and Hannah!)
# v0.7.2
- Code improvements

View File

@ -126,7 +126,12 @@
<%= select(
f,
:locale,
[{gettext("English"), "en_US"}, {gettext("German"), "de"}, {gettext("French"), "fr"}],
[
{gettext("English"), "en_US"},
{gettext("German"), "de"},
{gettext("French"), "fr"},
{gettext("Spanish"), "es"}
],
class: "mx-2 my-1 min-w-md input input-primary"
) %>
<%= error_tag(f, :locale) %>

View File

@ -49,7 +49,7 @@ msgstr ""
msgid "Create Invite"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
#, elixir-autogen, elixir-format
msgid "Delete User"
msgstr ""
@ -198,7 +198,7 @@ msgstr ""
msgid "Change Language"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
#, elixir-autogen, elixir-format
msgid "Change language"
msgstr ""
@ -245,7 +245,7 @@ msgstr ""
msgid "Unstage from range"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
#, elixir-autogen, elixir-format
msgid "Export Data as JSON"
msgstr ""

View File

@ -62,7 +62,7 @@ msgstr "Passwort ändern"
msgid "Create Invite"
msgstr "Einladung erstellen"
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
#, elixir-autogen, elixir-format
msgid "Delete User"
msgstr "Benutzer löschen"
@ -211,7 +211,7 @@ msgstr "Erstellen"
msgid "Change Language"
msgstr "Sprache wechseln"
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
#, elixir-autogen, elixir-format
msgid "Change language"
msgstr "Sprache wechseln"
@ -258,7 +258,7 @@ msgstr ""
msgid "Unstage from range"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
#, elixir-autogen, elixir-format
msgid "Export Data as JSON"
msgstr ""

View File

@ -745,19 +745,19 @@ msgid "User registered on"
msgstr "Benutzer registriert am"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
#, elixir-autogen, elixir-format
msgid "English"
msgstr "Englisch"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
#, elixir-autogen, elixir-format
msgid "French"
msgstr "Französisch"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
#, elixir-autogen, elixir-format
msgid "German"
msgstr "Deutsch"
@ -1146,3 +1146,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Search shot records"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
#, elixir-autogen, elixir-format
msgid "Spanish"
msgstr ""

View File

@ -101,7 +101,7 @@ msgstr "Sind Sie sicher, dass sie die Einladung für %{name} löschen möchten?"
msgid "Are you sure you want to delete this ammo?"
msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?"
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete your account?"
msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
@ -256,7 +256,7 @@ msgstr "Sie müssen"
msgid "Creating..."
msgstr "Erstellen..."
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
#, elixir-autogen, elixir-format
msgid "Are you sure you want to change your language?"
msgstr "Möchten Sie die Sprache wechseln?"

View File

@ -728,19 +728,19 @@ msgid "User registered on"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
#, elixir-autogen, elixir-format
msgid "English"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
#, elixir-autogen, elixir-format
msgid "French"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
#, elixir-autogen, elixir-format
msgid "German"
msgstr ""
@ -1129,3 +1129,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Search shot records"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
#, elixir-autogen, elixir-format
msgid "Spanish"
msgstr ""

View File

@ -50,7 +50,7 @@ msgstr ""
msgid "Create Invite"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
#, elixir-autogen, elixir-format
msgid "Delete User"
msgstr ""
@ -199,7 +199,7 @@ msgstr ""
msgid "Change Language"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
#, elixir-autogen, elixir-format
msgid "Change language"
msgstr ""
@ -246,7 +246,7 @@ msgstr ""
msgid "Unstage from range"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
#, elixir-autogen, elixir-format
msgid "Export Data as JSON"
msgstr ""

View File

@ -729,19 +729,19 @@ msgid "User registered on"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
#, elixir-autogen, elixir-format
msgid "English"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
#, elixir-autogen, elixir-format
msgid "French"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
#, elixir-autogen, elixir-format
msgid "German"
msgstr ""
@ -1130,3 +1130,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Search shot records"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
#, elixir-autogen, elixir-format
msgid "Spanish"
msgstr ""

View File

@ -87,7 +87,7 @@ msgstr ""
msgid "Are you sure you want to delete this ammo?"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete your account?"
msgstr ""
@ -236,7 +236,7 @@ msgstr ""
msgid "Creating..."
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
#, elixir-autogen, elixir-format
msgid "Are you sure you want to change your language?"
msgstr ""

View File

@ -62,7 +62,7 @@ msgstr "Cambiar contraseña"
msgid "Create Invite"
msgstr "Crear Invitación"
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
#, elixir-autogen, elixir-format
msgid "Delete User"
msgstr "Eliminar cuenta de Usuario"
@ -211,7 +211,7 @@ msgstr "Crear"
msgid "Change Language"
msgstr "Cambiar Lenguaje"
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
#, elixir-autogen, elixir-format
msgid "Change language"
msgstr "Cambiar lenguaje"
@ -258,7 +258,7 @@ msgstr "Preparar para el campo de tiro"
msgid "Unstage from range"
msgstr "Desmontar del campo de tiro"
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
#, elixir-autogen, elixir-format
msgid "Export Data as JSON"
msgstr "Exportar datos como JSON"

View File

@ -746,19 +746,19 @@ msgid "User registered on"
msgstr "Usuario registrado en"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
#, elixir-autogen, elixir-format
msgid "English"
msgstr "Inglés"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
#, elixir-autogen, elixir-format
msgid "French"
msgstr "Francés"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
#, elixir-autogen, elixir-format
msgid "German"
msgstr "Alemán"
@ -1148,3 +1148,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Search shot records"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
#, elixir-autogen, elixir-format
msgid "Spanish"
msgstr ""

View File

@ -101,7 +101,7 @@ msgstr "Está seguro que quiere eliminar la invitación para %{name}?"
msgid "Are you sure you want to delete this ammo?"
msgstr "Está seguro que desea eliminar esta munición?"
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete your account?"
msgstr "Está seguro que desea eliminar su cuenta?"
@ -255,7 +255,7 @@ msgstr "Necesitará hacerlo"
msgid "Creating..."
msgstr "Creando..."
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
#, elixir-autogen, elixir-format
msgid "Are you sure you want to change your language?"
msgstr "¿Está segure de que quiere cambiar el idioma?"

View File

@ -62,7 +62,7 @@ msgstr "Changer le mot de passe"
msgid "Create Invite"
msgstr "Créer une invitation"
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
#, elixir-autogen, elixir-format
msgid "Delete User"
msgstr "Supprimer utilisateur"
@ -211,7 +211,7 @@ msgstr "Créer"
msgid "Change Language"
msgstr "Changer la langue"
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
#, elixir-autogen, elixir-format
msgid "Change language"
msgstr "Changer la langue"
@ -258,7 +258,7 @@ msgstr ""
msgid "Unstage from range"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
#, elixir-autogen, elixir-format
msgid "Export Data as JSON"
msgstr ""

View File

@ -747,19 +747,19 @@ msgid "User registered on"
msgstr "Utilisateur·ice enregistré·e le"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
#, elixir-autogen, elixir-format
msgid "English"
msgstr "Anglais"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
#, elixir-autogen, elixir-format
msgid "French"
msgstr "Français"
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
#, elixir-autogen, elixir-format
msgid "German"
msgstr "Allemand"
@ -1149,3 +1149,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Search shot records"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
#, elixir-autogen, elixir-format
msgid "Spanish"
msgstr ""

View File

@ -102,7 +102,7 @@ msgstr "Êtes-vous certain·e de supprimer linvitation pour %{name}?"
msgid "Are you sure you want to delete this ammo?"
msgstr "Êtes-vous certain·e de supprimer cette munition?"
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete your account?"
msgstr "Êtes-vous certain·e de supprimer votre compte?"
@ -257,7 +257,7 @@ msgstr "Vous aurez besoin de"
msgid "Creating..."
msgstr "Création en cours…"
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
#, elixir-autogen, elixir-format
msgid "Are you sure you want to change your language?"
msgstr "Êtes-vous certain·e de vouloir changer votre langue?"

View File

@ -60,7 +60,7 @@ msgstr ""
msgid "Create Invite"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:157
#: lib/cannery_web/templates/user_settings/edit.html.heex:162
#, elixir-autogen, elixir-format
msgid "Delete User"
msgstr ""
@ -209,7 +209,7 @@ msgstr ""
msgid "Change Language"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
#: lib/cannery_web/templates/user_settings/edit.html.heex:139
#, elixir-autogen, elixir-format
msgid "Change language"
msgstr ""
@ -256,7 +256,7 @@ msgstr ""
msgid "Unstage from range"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:148
#: lib/cannery_web/templates/user_settings/edit.html.heex:153
#, elixir-autogen, elixir-format
msgid "Export Data as JSON"
msgstr ""

View File

@ -739,19 +739,19 @@ msgid "User registered on"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:130
#, elixir-autogen, elixir-format
msgid "English"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:132
#, elixir-autogen, elixir-format
msgid "French"
msgstr ""
#: lib/cannery_web/templates/user_registration/new.html.heex:37
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
#: lib/cannery_web/templates/user_settings/edit.html.heex:131
#, elixir-autogen, elixir-format
msgid "German"
msgstr ""
@ -1140,3 +1140,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Search shot records"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:133
#, elixir-autogen, elixir-format
msgid "Spanish"
msgstr ""

View File

@ -97,7 +97,7 @@ msgstr ""
msgid "Are you sure you want to delete this ammo?"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete your account?"
msgstr ""
@ -246,7 +246,7 @@ msgstr ""
msgid "Creating..."
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
#, elixir-autogen, elixir-format
msgid "Are you sure you want to change your language?"
msgstr ""

View File

@ -86,7 +86,7 @@ msgstr ""
msgid "Are you sure you want to delete this ammo?"
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:155
#: lib/cannery_web/templates/user_settings/edit.html.heex:160
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete your account?"
msgstr ""
@ -235,7 +235,7 @@ msgstr ""
msgid "Creating..."
msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
#: lib/cannery_web/templates/user_settings/edit.html.heex:141
#, elixir-autogen, elixir-format
msgid "Are you sure you want to change your language?"
msgstr ""