From f08d11fefe9f3c0a1ee8e1761b0da447dd42bbb9 Mon Sep 17 00:00:00 2001 From: jk-lamb Date: Fri, 14 Mar 2025 23:35:41 -0300 Subject: [PATCH 1/2] Change default host to localhost --- config/config.exs | 2 +- config/runtime.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.exs b/config/config.exs index 1505bab..bdd8296 100644 --- a/config/config.exs +++ b/config/config.exs @@ -16,7 +16,7 @@ config :kanta_test, KantaTest.Gettext, # Configures the endpoint config :kanta_test, KantaTestWeb.Endpoint, - url: [host: "kanta.curiosum.com"], + # url: [host: "kanta.curiosum.com"], render_errors: [ formats: [html: KantaTestWeb.ErrorHTML, json: KantaTestWeb.ErrorJSON], layout: false diff --git a/config/runtime.exs b/config/runtime.exs index 6e3405e..11bd8d9 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -48,7 +48,7 @@ if config_env() == :prod do You can generate one by calling: mix phx.gen.secret """ - host = System.get_env("PHX_HOST") || "kanta.curiosum.com" + host = System.get_env("PHX_HOST") || "localhost" port = String.to_integer(System.get_env("PORT") || "4000") config :kanta_test, KantaTestWeb.Endpoint, From 1d0bfae56bc3c2e98cc3227f8d663ad015b3af3a Mon Sep 17 00:00:00 2001 From: jk-lamb Date: Sun, 16 Mar 2025 12:18:43 -0300 Subject: [PATCH 2/2] Fix warning messages for Plural Forms --- priv/gettext/en/LC_MESSAGES/default.po | 2 +- priv/gettext/en/LC_MESSAGES/errors.po | 2 ++ priv/gettext/en/LC_MESSAGES/homepage.po | 2 +- priv/gettext/es/LC_MESSAGES/default.po | 2 +- priv/gettext/es/LC_MESSAGES/errors.po | 3 ++- priv/gettext/es/LC_MESSAGES/homepage.po | 3 ++- priv/gettext/fr/LC_MESSAGES/default.po | 2 +- priv/gettext/fr/LC_MESSAGES/errors.po | 2 +- priv/gettext/fr/LC_MESSAGES/homepage.po | 2 +- priv/gettext/it/LC_MESSAGES/default.po | 2 +- priv/gettext/it/LC_MESSAGES/errors.po | 2 +- priv/gettext/it/LC_MESSAGES/homepage.po | 2 +- priv/gettext/lt/LC_MESSAGES/default.po | 2 +- priv/gettext/lt/LC_MESSAGES/errors.po | 2 +- priv/gettext/lt/LC_MESSAGES/homepage.po | 2 +- priv/gettext/pt/LC_MESSAGES/default.po | 2 +- priv/gettext/pt/LC_MESSAGES/errors.po | 2 +- priv/gettext/pt/LC_MESSAGES/homepage.po | 2 +- priv/gettext/ru/LC_MESSAGES/default.po | 2 +- priv/gettext/ru/LC_MESSAGES/errors.po | 2 +- priv/gettext/ru/LC_MESSAGES/homepage.po | 2 +- 21 files changed, 24 insertions(+), 20 deletions(-) diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index e175ddd..d13128e 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: en\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" #: lib/kanta_test_web/components/core_components.ex:490 #, elixir-autogen, elixir-format diff --git a/priv/gettext/en/LC_MESSAGES/errors.po b/priv/gettext/en/LC_MESSAGES/errors.po index 844c4f5..dce2edb 100644 --- a/priv/gettext/en/LC_MESSAGES/errors.po +++ b/priv/gettext/en/LC_MESSAGES/errors.po @@ -9,6 +9,8 @@ msgid "" msgstr "" "Language: en\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" + ## From Ecto.Changeset.cast/4 msgid "can't be blank" diff --git a/priv/gettext/en/LC_MESSAGES/homepage.po b/priv/gettext/en/LC_MESSAGES/homepage.po index 3108281..f9ae43e 100644 --- a/priv/gettext/en/LC_MESSAGES/homepage.po +++ b/priv/gettext/en/LC_MESSAGES/homepage.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: en\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" #: lib/kanta_test_web/controllers/page_html/home.html.heex:87 #, elixir-autogen, elixir-format diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 8fb2da2..1e18275 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: es\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" #: lib/kanta_test_web/components/core_components.ex:490 #, elixir-autogen, elixir-format diff --git a/priv/gettext/es/LC_MESSAGES/errors.po b/priv/gettext/es/LC_MESSAGES/errors.po index ccf53c1..41081f6 100644 --- a/priv/gettext/es/LC_MESSAGES/errors.po +++ b/priv/gettext/es/LC_MESSAGES/errors.po @@ -9,7 +9,8 @@ msgid "" msgstr "" "Language: es\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" + msgid "can't be blank" msgstr "no puede estar en blanco" diff --git a/priv/gettext/es/LC_MESSAGES/homepage.po b/priv/gettext/es/LC_MESSAGES/homepage.po index f379c21..3b179a6 100644 --- a/priv/gettext/es/LC_MESSAGES/homepage.po +++ b/priv/gettext/es/LC_MESSAGES/homepage.po @@ -9,7 +9,8 @@ msgid "" msgstr "" "Language: es\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" + #: lib/kanta_test_web/controllers/page_html/home.html.heex:87 #, elixir-autogen, elixir-format diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 07e300b..bde1f66 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: fr\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n>1);" #: lib/kanta_test_web/components/core_components.ex:490 #, elixir-autogen, elixir-format diff --git a/priv/gettext/fr/LC_MESSAGES/errors.po b/priv/gettext/fr/LC_MESSAGES/errors.po index 90b7aac..a196119 100644 --- a/priv/gettext/fr/LC_MESSAGES/errors.po +++ b/priv/gettext/fr/LC_MESSAGES/errors.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: fr\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n>1);" msgid "can't be blank" msgstr "cest rien" diff --git a/priv/gettext/fr/LC_MESSAGES/homepage.po b/priv/gettext/fr/LC_MESSAGES/homepage.po index 8294b51..90d44a9 100644 --- a/priv/gettext/fr/LC_MESSAGES/homepage.po +++ b/priv/gettext/fr/LC_MESSAGES/homepage.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: fr\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n>1);" #: lib/kanta_test_web/controllers/page_html/home.html.heex:87 #, elixir-autogen, elixir-format diff --git a/priv/gettext/it/LC_MESSAGES/default.po b/priv/gettext/it/LC_MESSAGES/default.po index d226142..25b6ca7 100644 --- a/priv/gettext/it/LC_MESSAGES/default.po +++ b/priv/gettext/it/LC_MESSAGES/default.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: it\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" #: lib/kanta_test_web/components/core_components.ex:490 #, elixir-autogen, elixir-format diff --git a/priv/gettext/it/LC_MESSAGES/errors.po b/priv/gettext/it/LC_MESSAGES/errors.po index c2afc02..ef9ddf0 100644 --- a/priv/gettext/it/LC_MESSAGES/errors.po +++ b/priv/gettext/it/LC_MESSAGES/errors.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: it\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" msgid "can't be blank" msgstr "non può essere vuoto" diff --git a/priv/gettext/it/LC_MESSAGES/homepage.po b/priv/gettext/it/LC_MESSAGES/homepage.po index e1c9cc3..51d674b 100644 --- a/priv/gettext/it/LC_MESSAGES/homepage.po +++ b/priv/gettext/it/LC_MESSAGES/homepage.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: it\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" #: lib/kanta_test_web/controllers/page_html/home.html.heex:87 #, elixir-autogen, elixir-format diff --git a/priv/gettext/lt/LC_MESSAGES/default.po b/priv/gettext/lt/LC_MESSAGES/default.po index 9529dd1..545d18e 100644 --- a/priv/gettext/lt/LC_MESSAGES/default.po +++ b/priv/gettext/lt/LC_MESSAGES/default.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: lt\n" -"Plural-Forms: nplurals=3\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100 != 11 ? 0 : n%10>=2 && (n%100<10||n%100>=20) ? 1 : 2);" #: lib/kanta_test_web/components/core_components.ex:490 #, elixir-autogen, elixir-format diff --git a/priv/gettext/lt/LC_MESSAGES/errors.po b/priv/gettext/lt/LC_MESSAGES/errors.po index 6cb527e..1ce61a2 100644 --- a/priv/gettext/lt/LC_MESSAGES/errors.po +++ b/priv/gettext/lt/LC_MESSAGES/errors.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: lt\n" -"Plural-Forms: nplurals=3\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100 != 11 ? 0 : n%10>=2 && (n%100<10||n%100>=20) ? 1 : 2);" msgid "can't be blank" msgstr "" diff --git a/priv/gettext/lt/LC_MESSAGES/homepage.po b/priv/gettext/lt/LC_MESSAGES/homepage.po index 40a122e..63c8b6b 100644 --- a/priv/gettext/lt/LC_MESSAGES/homepage.po +++ b/priv/gettext/lt/LC_MESSAGES/homepage.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: lt\n" -"Plural-Forms: nplurals=3\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100 != 11 ? 0 : n%10>=2 && (n%100<10||n%100>=20) ? 1 : 2);" #: lib/kanta_test_web/controllers/page_html/home.html.heex:87 #, elixir-autogen, elixir-format diff --git a/priv/gettext/pt/LC_MESSAGES/default.po b/priv/gettext/pt/LC_MESSAGES/default.po index 4a90eeb..ca19fb3 100644 --- a/priv/gettext/pt/LC_MESSAGES/default.po +++ b/priv/gettext/pt/LC_MESSAGES/default.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: pt\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" #: lib/kanta_test_web/components/core_components.ex:490 #, elixir-autogen, elixir-format diff --git a/priv/gettext/pt/LC_MESSAGES/errors.po b/priv/gettext/pt/LC_MESSAGES/errors.po index fe06816..f9fc7ce 100644 --- a/priv/gettext/pt/LC_MESSAGES/errors.po +++ b/priv/gettext/pt/LC_MESSAGES/errors.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: pt\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" msgid "can't be blank" msgstr "" diff --git a/priv/gettext/pt/LC_MESSAGES/homepage.po b/priv/gettext/pt/LC_MESSAGES/homepage.po index c4fcc00..16f3c4d 100644 --- a/priv/gettext/pt/LC_MESSAGES/homepage.po +++ b/priv/gettext/pt/LC_MESSAGES/homepage.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: pt\n" -"Plural-Forms: nplurals=2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);" #: lib/kanta_test_web/controllers/page_html/home.html.heex:90 #, elixir-autogen, elixir-format diff --git a/priv/gettext/ru/LC_MESSAGES/default.po b/priv/gettext/ru/LC_MESSAGES/default.po index 55ee249..e192041 100644 --- a/priv/gettext/ru/LC_MESSAGES/default.po +++ b/priv/gettext/ru/LC_MESSAGES/default.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: ru\n" -"Plural-Forms: nplurals=3\n" +"Plural-Forms:nplurals=3; plural=(n%10==1 && n%100 != 11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10||n%100>=20) ? 1 : 2);" #: lib/kanta_test_web/components/core_components.ex:490 #, elixir-autogen, elixir-format diff --git a/priv/gettext/ru/LC_MESSAGES/errors.po b/priv/gettext/ru/LC_MESSAGES/errors.po index 8864429..f8980c2 100644 --- a/priv/gettext/ru/LC_MESSAGES/errors.po +++ b/priv/gettext/ru/LC_MESSAGES/errors.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: ru\n" -"Plural-Forms: nplurals=3\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100 != 11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10||n%100>=20) ? 1 : 2);" msgid "can't be blank" msgstr "" diff --git a/priv/gettext/ru/LC_MESSAGES/homepage.po b/priv/gettext/ru/LC_MESSAGES/homepage.po index e62655e..1ba9223 100644 --- a/priv/gettext/ru/LC_MESSAGES/homepage.po +++ b/priv/gettext/ru/LC_MESSAGES/homepage.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Language: ru\n" -"Plural-Forms: nplurals=3\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100 != 11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10||n%100>=20) ? 1 : 2);" #: lib/kanta_test_web/controllers/page_html/home.html.heex:87 #, elixir-autogen, elixir-format