Skip to content

Commit

Permalink
Fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Nov 23, 2023
1 parent c3d62f6 commit 92eafa9
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 22 deletions.
3 changes: 2 additions & 1 deletion lib/claper/embeds/embed.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule Claper.Embeds.Embed do
use Ecto.Schema
import Ecto.Changeset
import ClaperWeb.Gettext

@derive {Jason.Encoder, only: [:title, :content, :position, :attendee_visibility]}
schema "embeds" do
Expand Down Expand Up @@ -33,6 +34,6 @@ defmodule Claper.Embeds.Embed do
:position,
:attendee_visibility
])
|> validate_format(:content, ~r/<iframe.*<\/iframe>/, message: "Invalid embed format")
|> validate_format(:content, ~r/<iframe.*<\/iframe>/, message: gettext("Invalid embed format (should start with <iframe> and end with </iframe>)"))
end
end
2 changes: 1 addition & 1 deletion lib/claper_web/live/event_live/manage.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
</svg>
</div>
<div class="ml-4 flex-auto text-left">
<p class="font-medium text-gray-700"><%= gettext("Embeded") %></p>
<p class="font-medium text-gray-700"><%= gettext("Web content") %></p>
<p class="text-gray-500">
<%= gettext("Add a Youtube video or any web content.") %>
</p>
Expand Down
11 changes: 6 additions & 5 deletions priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -976,11 +976,6 @@ msgstr "Kontoerstellung ist deaktiviert"
msgid "Add a Youtube video or any web content."
msgstr "Fügen Sie ein YouTube-Video oder einen beliebigen Webinhalt hinzu."

#: lib/claper_web/live/event_live/manage.html.heex:242
#, elixir-autogen, elixir-format
msgid "Embeded"
msgstr "Eingebettet"

#: lib/claper_web/templates/user_reset_password/edit.html.heex:51
#, elixir-autogen, elixir-format
msgid "Confirm new password"
Expand Down Expand Up @@ -1062,8 +1057,14 @@ msgstr "Dies wird den Webinhalt löschen, sind Sie sicher?"
msgid "Title"
msgstr "Titel"

#: lib/claper_web/live/event_live/manage.html.heex:242
#: lib/claper_web/live/event_live/manage.html.heex:601
#: lib/claper_web/live/stat_live/index.html.heex:257
#, elixir-autogen, elixir-format
msgid "Web content"
msgstr "Webinhalt"

#: lib/claper/embeds/embed.ex:37
#, elixir-autogen, elixir-format, fuzzy
msgid "Invalid embed format (should start with <iframe> and end with </iframe>)"
msgstr "Ungültiges Einbettungsformat (sollte mit <iframe> beginnen und mit </iframe> enden)"
11 changes: 6 additions & 5 deletions priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -978,11 +978,6 @@ msgstr ""
msgid "Add a Youtube video or any web content."
msgstr ""

#: lib/claper_web/live/event_live/manage.html.heex:242
#, elixir-autogen, elixir-format
msgid "Embeded"
msgstr ""

#: lib/claper_web/templates/user_reset_password/edit.html.heex:51
#, elixir-autogen, elixir-format
msgid "Confirm new password"
Expand Down Expand Up @@ -1064,8 +1059,14 @@ msgstr ""
msgid "Title"
msgstr ""

#: lib/claper_web/live/event_live/manage.html.heex:242
#: lib/claper_web/live/event_live/manage.html.heex:601
#: lib/claper_web/live/stat_live/index.html.heex:257
#, elixir-autogen, elixir-format
msgid "Web content"
msgstr ""

#: lib/claper/embeds/embed.ex:37
#, elixir-autogen, elixir-format
msgid "Invalid embed format (should start with <iframe> and end with </iframe>)"
msgstr ""
11 changes: 6 additions & 5 deletions priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -976,11 +976,6 @@ msgstr "Account creation is disabled"
msgid "Add a Youtube video or any web content."
msgstr "Add a Youtube video or any web content."

#: lib/claper_web/live/event_live/manage.html.heex:242
#, elixir-autogen, elixir-format
msgid "Embeded"
msgstr "Embeded"

#: lib/claper_web/templates/user_reset_password/edit.html.heex:51
#, elixir-autogen, elixir-format
msgid "Confirm new password"
Expand Down Expand Up @@ -1062,8 +1057,14 @@ msgstr "This will delete the embed, are you sure?"
msgid "Title"
msgstr ""

#: lib/claper_web/live/event_live/manage.html.heex:242
#: lib/claper_web/live/event_live/manage.html.heex:601
#: lib/claper_web/live/stat_live/index.html.heex:257
#, elixir-autogen, elixir-format
msgid "Web content"
msgstr ""

#: lib/claper/embeds/embed.ex:37
#, elixir-autogen, elixir-format, fuzzy
msgid "Invalid embed format (should start with <iframe> and end with </iframe>)"
msgstr ""
11 changes: 6 additions & 5 deletions priv/gettext/fr/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -981,11 +981,6 @@ msgstr "La création de compte est désactivée"
msgid "Add a Youtube video or any web content."
msgstr "Ajoutez une vidéo Youtube ou tout autre contenu web."

#: lib/claper_web/live/event_live/manage.html.heex:242
#, elixir-autogen, elixir-format
msgid "Embeded"
msgstr "Intégré"

#: lib/claper_web/templates/user_reset_password/edit.html.heex:51
#, elixir-autogen, elixir-format
msgid "Confirm new password"
Expand Down Expand Up @@ -1067,8 +1062,14 @@ msgstr "Cela supprimera le contenu web, êtes-vous sûr?"
msgid "Title"
msgstr "Titre"

#: lib/claper_web/live/event_live/manage.html.heex:242
#: lib/claper_web/live/event_live/manage.html.heex:601
#: lib/claper_web/live/stat_live/index.html.heex:257
#, elixir-autogen, elixir-format
msgid "Web content"
msgstr "Contenu web"

#: lib/claper/embeds/embed.ex:37
#, elixir-autogen, elixir-format, fuzzy
msgid "Invalid embed format (should start with <iframe> and end with </iframe>)"
msgstr "Format d'intégration invalide (doit commencer par <iframe> et se terminer par </iframe>)"

0 comments on commit 92eafa9

Please sign in to comment.