fix gettext merge command

This commit is contained in:
shibao 2022-05-06 20:18:49 -04:00 committed by oliviasculley
parent 6760f83ca0
commit e99775eef2
6 changed files with 634 additions and 23 deletions

View File

@ -85,12 +85,18 @@ defmodule Lokal.MixProject do
setup: ["deps.get", "compile", "ecto.setup", "cmd npm install --prefix assets"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
format: ["cmd npm run format --prefix assets", "format", "gettext.extract"],
format: [
"cmd npm run format --prefix assets",
"format",
"gettext.extract --merge",
"gettext.merge --no-fuzzy priv/gettext"
],
test: [
"cmd npm run test --prefix assets",
"dialyzer",
"credo --strict",
"format --check-formatted",
"gettext.extract --check-up-to-date",
"ecto.drop --quiet",
"ecto.create --quiet",
"ecto.migrate --quiet",

View File

@ -0,0 +1,105 @@
## "msgid"s in this file come from POT (.pot) files.
##
## Do not add, change, or remove "msgid"s manually here as
## they're tied to the ones in the corresponding POT file
## (with the same domain).
##
## Use "mix gettext.extract --merge" or "mix gettext.merge"
## to merge POT files into PO files.
msgid ""
msgstr ""
"Language: en\n"
"Plural-Forms: nplurals=2\n"
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:15
#: lib/lokal_web/templates/user_settings/edit.html.heex:44
msgid "Change email"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:58
#: lib/lokal_web/templates/user_settings/edit.html.heex:99
msgid "Change password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:139
msgid "Delete User"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_registration/new.html.heex:51
#: lib/lokal_web/templates/user_reset_password/new.html.heex:3
#: lib/lokal_web/templates/user_session/new.html.heex:44
msgid "Forgot your password?"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/components/topbar.ex:93
#: lib/lokal_web/templates/user_confirmation/new.html.heex:29
#: lib/lokal_web/templates/user_registration/new.html.heex:47
#: lib/lokal_web/templates/user_reset_password/edit.html.heex:47
#: lib/lokal_web/templates/user_reset_password/new.html.heex:29
#: lib/lokal_web/templates/user_session/new.html.heex:3
#: lib/lokal_web/templates/user_session/new.html.heex:32
msgid "Log in"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/components/topbar.ex:86
#: lib/lokal_web/templates/user_confirmation/new.html.heex:24
#: lib/lokal_web/templates/user_registration/new.html.heex:3
#: lib/lokal_web/templates/user_registration/new.html.heex:41
#: lib/lokal_web/templates/user_reset_password/edit.html.heex:42
#: lib/lokal_web/templates/user_reset_password/new.html.heex:24
#: lib/lokal_web/templates/user_session/new.html.heex:39
msgid "Register"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_confirmation/new.html.heex:3
#: lib/lokal_web/templates/user_confirmation/new.html.heex:15
msgid "Resend confirmation instructions"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_reset_password/edit.html.heex:3
#: lib/lokal_web/templates/user_reset_password/edit.html.heex:33
msgid "Reset password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_reset_password/new.html.heex:15
msgid "Send instructions to reset password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:32
msgid "Copy to clipboard"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:16
msgid "Create Invite"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:11
msgid "Invite someone new!"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/form_component.html.heex:28
msgid "Save"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:113
msgid "Change Language"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:131
msgid "Change language"
msgstr ""

View File

@ -0,0 +1,172 @@
## "msgid"s in this file come from POT (.pot) files.
##
## Do not add, change, or remove "msgid"s manually here as
## they're tied to the ones in the corresponding POT file
## (with the same domain).
##
## Use "mix gettext.extract --merge" or "mix gettext.merge"
## to merge POT files into PO files.
msgid ""
msgstr ""
"Language: en\n"
"Plural-Forms: nplurals=2\n"
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:78
msgid "Confirm new password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_confirmation_controller.ex:8
msgid "Confirm your account"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:32
#: lib/lokal_web/templates/user_settings/edit.html.heex:87
msgid "Current password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_reset_password_controller.ex:9
msgid "Forgot your password?"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/components/invite_card.ex:25
msgid "Invite Disabled"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/components/topbar.ex:56
#: lib/lokal_web/live/invite_live/index.ex:41
#: lib/lokal_web/live/invite_live/index.html.heex:3
msgid "Invites"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_session/new.html.heex:27
msgid "Keep me logged in for 60 days"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/layout/live.html.heex:37
msgid "Loading..."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_session_controller.ex:8
msgid "Log in"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:71
msgid "New password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/layout/live.html.heex:50
msgid "Reconnecting..."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_registration_controller.ex:35
msgid "Register"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_reset_password_controller.ex:36
msgid "Reset your password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_settings_controller.ex:10
#: lib/lokal_web/templates/user_settings/edit.html.heex:3
msgid "Settings"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/home_live.html.heex:7
msgid "Shop from your community"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/components/invite_card.ex:20
msgid "Uses Left:"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/home_live.html.heex:3
msgid "Welcome to Lokal"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/home_live.ex:10
msgid "Home"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:89
msgid "Admins"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:58
msgid "Disable"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:33
msgid "Edit Invite"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:62
msgid "Enable"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/form_component.html.heex:20
msgid "Name"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:37
msgid "New Invite"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:8
msgid "No invites 😔"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:78
msgid "Set Unlimited"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:118
msgid "Users"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/form_component.html.heex:24
msgid "Uses left"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_registration/new.html.heex:36
#: lib/lokal_web/templates/user_settings/edit.html.heex:126
msgid "English"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/components/user_card.ex:30
msgid "User registered on"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_registration/new.html.heex:32
msgid "Language"
msgstr ""

View File

@ -0,0 +1,93 @@
## "msgid"s in this file come from POT (.pot) files.
##
## Do not add, change, or remove "msgid"s manually here as
## they're tied to the ones in the corresponding POT file
## (with the same domain).
##
## Use "mix gettext.extract --merge" or "mix gettext.merge"
## to merge POT files into PO files.
msgid ""
msgstr ""
"Language: en\n"
"Plural-Forms: nplurals=2\n"
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/confirm_email.html.heex:3
#: lib/lokal_web/templates/email/confirm_email.txt.eex:2
#: lib/lokal_web/templates/email/reset_password.html.heex:3
#: lib/lokal_web/templates/email/reset_password.txt.eex:2
#: lib/lokal_web/templates/email/update_email.html.heex:3
#: lib/lokal_web/templates/email/update_email.txt.eex:2
msgid "Hi %{email},"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/confirm_email.txt.eex:10
msgid "If you didn't create an account at %{url}, please ignore this."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/reset_password.txt.eex:8
#: lib/lokal_web/templates/email/update_email.txt.eex:8
msgid "If you didn't request this change from %{url}, please ignore this."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/update_email.html.heex:8
#: lib/lokal_web/templates/email/update_email.txt.eex:4
msgid "You can change your email by visiting the URL below:"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/confirm_email.html.heex:14
#: lib/lokal_web/templates/email/confirm_email.txt.eex:6
msgid "You can confirm your account by visiting the URL below:"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/reset_password.html.heex:8
#: lib/lokal_web/templates/email/reset_password.txt.eex:4
msgid "You can reset your password by visiting the URL below:"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal/accounts/email.ex:30
msgid "Confirm your Lokal account"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/confirm_email.html.heex:22
msgid "If you didn't create an account at Lokal, please ignore this."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/reset_password.html.heex:16
#: lib/lokal_web/templates/email/update_email.html.heex:16
msgid "If you didn't request this change from Lokal, please ignore this."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal/accounts/email.ex:37
msgid "Reset your Lokal password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/layout/email.txt.eex:9
msgid "This email was sent from Lokal at %{url}, the self-hosted firearm tracker website."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/layout/email.html.heex:13
msgid "This email was sent from Lokal, the self-hosted firearm tracker website."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal/accounts/email.ex:44
msgid "Update your Lokal email"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/email/confirm_email.html.heex:9
#: lib/lokal_web/templates/email/confirm_email.txt.eex:4
msgid "Welcome to Lokal"
msgstr ""

View File

@ -49,24 +49,14 @@ msgstr ""
msgid "are still associated with this entry"
msgstr ""
## From Ecto.Changeset.validate_length/3
msgid "should have %{count} item(s)"
msgid_plural "should have %{count} item(s)"
msgstr[0] ""
msgstr[1] ""
msgid "should be %{count} character(s)"
msgid_plural "should be %{count} character(s)"
msgstr[0] ""
msgstr[1] ""
msgid "should be %{count} byte(s)"
msgid_plural "should be %{count} byte(s)"
msgstr[0] ""
msgstr[1] ""
msgid "should have at least %{count} item(s)"
msgid_plural "should have at least %{count} item(s)"
## From Ecto.Changeset.validate_length/3
msgid "should have %{count} item(s)"
msgid_plural "should have %{count} item(s)"
msgstr[0] ""
msgstr[1] ""
@ -75,13 +65,8 @@ msgid_plural "should be at least %{count} character(s)"
msgstr[0] ""
msgstr[1] ""
msgid "should be at least %{count} byte(s)"
msgid_plural "should be at least %{count} byte(s)"
msgstr[0] ""
msgstr[1] ""
msgid "should have at most %{count} item(s)"
msgid_plural "should have at most %{count} item(s)"
msgid "should have at least %{count} item(s)"
msgid_plural "should have at least %{count} item(s)"
msgstr[0] ""
msgstr[1] ""
@ -90,8 +75,8 @@ msgid_plural "should be at most %{count} character(s)"
msgstr[0] ""
msgstr[1] ""
msgid "should be at most %{count} byte(s)"
msgid_plural "should be at most %{count} byte(s)"
msgid "should have at most %{count} item(s)"
msgid_plural "should have at most %{count} item(s)"
msgstr[0] ""
msgstr[1] ""
@ -110,3 +95,110 @@ msgstr ""
msgid "must be equal to %{number}"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_settings_controller.ex:84
msgid "Email change link is invalid or it has expired."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/error/error.html.heex:8
msgid "Error"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/error/error.html.heex:28
msgid "Go back home"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/views/error_view.ex:11
msgid "Internal Server Error"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_session_controller.ex:17
msgid "Invalid email or password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/views/error_view.ex:9
msgid "Not found"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_registration/new.html.heex:15
#: lib/lokal_web/templates/user_reset_password/edit.html.heex:15
#: lib/lokal_web/templates/user_settings/edit.html.heex:21
#: lib/lokal_web/templates/user_settings/edit.html.heex:64
#: lib/lokal_web/templates/user_settings/edit.html.heex:119
msgid "Oops, something went wrong! Please check the errors below."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_reset_password_controller.ex:63
msgid "Reset password link is invalid or it has expired."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_registration_controller.ex:25
#: lib/lokal_web/controllers/user_registration_controller.ex:56
msgid "Sorry, public registration is disabled"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_registration_controller.ex:15
#: lib/lokal_web/controllers/user_registration_controller.ex:46
msgid "Sorry, this invite was not found or expired"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_settings_controller.ex:99
msgid "Unable to delete user"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/views/error_view.ex:10
msgid "Unauthorized"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_confirmation_controller.ex:54
msgid "User confirmation link is invalid or it has expired."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_auth.ex:177
msgid "You are not authorized to view this page."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_auth.ex:39
#: lib/lokal_web/controllers/user_auth.ex:161
msgid "You must confirm your account and log in to access this page."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal/accounts/user.ex:130
msgid "did not change"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal/accounts/user.ex:151
msgid "does not match password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal/accounts/user.ex:188
msgid "is not valid"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal/accounts/user.ex:84
msgid "must have the @ sign and no spaces"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:18
msgid "You are not authorized to view this page"
msgstr ""

View File

@ -0,0 +1,143 @@
## "msgid"s in this file come from POT (.pot) files.
##
## Do not add, change, or remove "msgid"s manually here as
## they're tied to the ones in the corresponding POT file
## (with the same domain).
##
## Use "mix gettext.extract --merge" or "mix gettext.merge"
## to merge POT files into PO files.
msgid ""
msgstr ""
"Language: en\n"
"Plural-Forms: nplurals=2\n"
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_confirmation_controller.ex:38
msgid "%{email} confirmed successfully."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_settings_controller.ex:29
msgid "A link to confirm your email change has been sent to the new address."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:143
msgid "Are you sure you want to delete your account?"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/components/topbar.ex:71
msgid "Are you sure you want to log out?"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_settings_controller.ex:77
msgid "Email changed successfully."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_confirmation_controller.ex:23
msgid "If your email is in our system and it has not been confirmed yet, you will receive an email with instructions shortly."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_reset_password_controller.ex:24
msgid "If your email is in our system, you will receive instructions to reset your password shortly."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_session_controller.ex:23
msgid "Logged out successfully."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_reset_password_controller.ex:46
msgid "Password reset successfully."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_settings_controller.ex:49
msgid "Password updated successfully."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_registration_controller.ex:74
msgid "Please check your email to verify your account"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_settings_controller.ex:95
msgid "Your account has been deleted"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:101
#: lib/lokal_web/live/invite_live/index.html.heex:130
msgid "Are you sure you want to delete %{email}? This action is permanent!"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:127
msgid "Copied to clipboard"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/form_component.html.heex:30
msgid "Saving..."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/templates/user_settings/edit.html.heex:133
msgid "Are you sure you want to change your language?"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/controllers/user_settings_controller.ex:65
msgid "Language updated successfully."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/form_component.ex:62
msgid "%{invite_name} created successfully"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:53
msgid "%{invite_name} deleted succesfully"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:114
msgid "%{invite_name} disabled succesfully"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:90
msgid "%{invite_name} enabled succesfully"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:68
msgid "%{invite_name} updated succesfully"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/form_component.ex:42
msgid "%{invite_name} updated successfully"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.ex:139
msgid "%{user_email} deleted succesfully"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:48
msgid "Are you sure you want to delete the invite for %{invite_name}?"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/lokal_web/live/invite_live/index.html.heex:73
msgid "Are you sure you want to make %{invite_name} unlimited?"
msgstr ""