Skip to content

Commit

Permalink
Add italian to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Oct 19, 2024
1 parent 985dc5c commit d6c48a3
Show file tree
Hide file tree
Showing 12 changed files with 571 additions and 1,432 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## v2.1.2
## v2.2.0

### Features

- Add duplicate feature on finished events
- Add italian translation (thanks to @loviuz and @albanobattistella)

### Fixes and improvements

Expand Down
5 changes: 4 additions & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ import airdatepickerLocaleFr from "air-datepicker/locale/fr";
import airdatepickerLocaleDe from "air-datepicker/locale/de";
import airdatepickerLocaleEs from "air-datepicker/locale/es";
import airdatepickerLocaleNl from "air-datepicker/locale/nl";
import airdatepickerLocaleIt from "air-datepicker/locale/it";
import "moment/locale/de";
import "moment/locale/fr";
import "moment/locale/es";
import "moment/locale/nl";
import "moment/locale/it";
import QRCodeStyling from "qr-code-styling";
import { Presenter } from "./presenter";
import { Manager } from "./manager";
import Split from "split-grid";
import { TourGuideClient } from "@sjmc11/tourguidejs/src/Tour";
window.moment = moment;

const supportedLocales = ["en", "fr", "de", "es", "nl"];
const supportedLocales = ["en", "fr", "de", "es", "nl", "it"];

var locale =
document.querySelector("html").getAttribute("lang") ||
Expand All @@ -44,6 +46,7 @@ let airdatepickerLocale = {
de: airdatepickerLocaleDe,
es: airdatepickerLocaleEs,
nl: airdatepickerLocaleNl,
it: airdatepickerLocaleIt,
};
let csrfToken = document
.querySelector("meta[name='csrf-token']")
Expand Down
1 change: 1 addition & 0 deletions lib/claper_web/live/user_settings_live/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
{"English", "en"},
{"Español", "es"},
{"Français", "fr"},
{"Italiano", "it"},
{"Nederlands", "nl"}
]}
key={:locale}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Claper.MixProject do
use Mix.Project

@version "2.1.2"
@version "2.2.0"

def project do
[
Expand Down
10 changes: 5 additions & 5 deletions priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ msgstr "Sie wurden eingeladen, ein Ereignis zu verwalten"
msgid "Saved"
msgstr "Gespeichert"

#: lib/claper_web/live/user_settings_live/show.html.heex:285
#: lib/claper_web/live/user_settings_live/show.html.heex:286
#, elixir-autogen, elixir-format
msgid "All your events and files will be permanently deleted, are you sure?"
msgstr "Alle Ihre Veranstaltungen und Dateien werden dauerhaft gelöscht, sind Sie sicher?"
Expand All @@ -1007,17 +1007,17 @@ msgstr "Sind Sie sicher, dass Sie diese Veranstaltung beenden möchten? Diese Ak
msgid "Attendees room"
msgstr "Teilnehmerraum"

#: lib/claper_web/live/user_settings_live/show.html.heex:277
#: lib/claper_web/live/user_settings_live/show.html.heex:278
#, elixir-autogen, elixir-format
msgid "Be careful, these actions are irreversible"
msgstr "Seien Sie vorsichtig, diese Aktionen sind unwiderruflich"

#: lib/claper_web/live/user_settings_live/show.html.heex:274
#: lib/claper_web/live/user_settings_live/show.html.heex:275
#, elixir-autogen, elixir-format
msgid "Danger zone"
msgstr "Gefahrenzone"

#: lib/claper_web/live/user_settings_live/show.html.heex:290
#: lib/claper_web/live/user_settings_live/show.html.heex:291
#, elixir-autogen, elixir-format, fuzzy
msgid "Delete account"
msgstr "Konto löschen"
Expand Down Expand Up @@ -1252,7 +1252,7 @@ msgstr "Veranstaltung existiert nicht"
msgid "Customize your account"
msgstr "Passen Sie Ihr Konto an"

#: lib/claper_web/live/user_settings_live/show.html.heex:264
#: lib/claper_web/live/user_settings_live/show.html.heex:265
#, elixir-autogen, elixir-format
msgid "Language"
msgstr "Sprache"
Expand Down
10 changes: 5 additions & 5 deletions priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ msgstr ""
msgid "Saved"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:285
#: lib/claper_web/live/user_settings_live/show.html.heex:286
#, elixir-autogen, elixir-format
msgid "All your events and files will be permanently deleted, are you sure?"
msgstr ""
Expand All @@ -1009,17 +1009,17 @@ msgstr ""
msgid "Attendees room"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:277
#: lib/claper_web/live/user_settings_live/show.html.heex:278
#, elixir-autogen, elixir-format
msgid "Be careful, these actions are irreversible"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:274
#: lib/claper_web/live/user_settings_live/show.html.heex:275
#, elixir-autogen, elixir-format
msgid "Danger zone"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:290
#: lib/claper_web/live/user_settings_live/show.html.heex:291
#, elixir-autogen, elixir-format
msgid "Delete account"
msgstr ""
Expand Down Expand Up @@ -1254,7 +1254,7 @@ msgstr ""
msgid "Customize your account"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:264
#: lib/claper_web/live/user_settings_live/show.html.heex:265
#, elixir-autogen, elixir-format
msgid "Language"
msgstr ""
Expand Down
10 changes: 5 additions & 5 deletions priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ msgstr ""
msgid "Saved"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:285
#: lib/claper_web/live/user_settings_live/show.html.heex:286
#, elixir-autogen, elixir-format
msgid "All your events and files will be permanently deleted, are you sure?"
msgstr ""
Expand All @@ -1007,17 +1007,17 @@ msgstr ""
msgid "Attendees room"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:277
#: lib/claper_web/live/user_settings_live/show.html.heex:278
#, elixir-autogen, elixir-format
msgid "Be careful, these actions are irreversible"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:274
#: lib/claper_web/live/user_settings_live/show.html.heex:275
#, elixir-autogen, elixir-format
msgid "Danger zone"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:290
#: lib/claper_web/live/user_settings_live/show.html.heex:291
#, elixir-autogen, elixir-format, fuzzy
msgid "Delete account"
msgstr ""
Expand Down Expand Up @@ -1252,7 +1252,7 @@ msgstr ""
msgid "Customize your account"
msgstr ""

#: lib/claper_web/live/user_settings_live/show.html.heex:264
#: lib/claper_web/live/user_settings_live/show.html.heex:265
#, elixir-autogen, elixir-format
msgid "Language"
msgstr ""
Expand Down
10 changes: 5 additions & 5 deletions priv/gettext/es/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ msgstr "Has sido invitado/a a gestionar un evento"
msgid "Saved"
msgstr "Guardado"

#: lib/claper_web/live/user_settings_live/show.html.heex:285
#: lib/claper_web/live/user_settings_live/show.html.heex:286
#, elixir-autogen, elixir-format
msgid "All your events and files will be permanently deleted, are you sure?"
msgstr "Todos tus eventos y ficheros serán borrados para siempre, ¿estás seguro/a?"
Expand All @@ -1007,17 +1007,17 @@ msgstr "¿Estás seguro de que quieres finalizar este evento? Esta acción no pu
msgid "Attendees room"
msgstr "Sala de asistentes"

#: lib/claper_web/live/user_settings_live/show.html.heex:277
#: lib/claper_web/live/user_settings_live/show.html.heex:278
#, elixir-autogen, elixir-format
msgid "Be careful, these actions are irreversible"
msgstr "Ten cuidado, estas acciones son irreversibles"

#: lib/claper_web/live/user_settings_live/show.html.heex:274
#: lib/claper_web/live/user_settings_live/show.html.heex:275
#, elixir-autogen, elixir-format
msgid "Danger zone"
msgstr "Zona de peligro"

#: lib/claper_web/live/user_settings_live/show.html.heex:290
#: lib/claper_web/live/user_settings_live/show.html.heex:291
#, elixir-autogen, elixir-format, fuzzy
msgid "Delete account"
msgstr "Borrar cuenta"
Expand Down Expand Up @@ -1252,7 +1252,7 @@ msgstr "El evento no existe"
msgid "Customize your account"
msgstr "Personaliza tu cuenta"

#: lib/claper_web/live/user_settings_live/show.html.heex:264
#: lib/claper_web/live/user_settings_live/show.html.heex:265
#, elixir-autogen, elixir-format
msgid "Language"
msgstr "Idioma"
Expand Down
10 changes: 5 additions & 5 deletions priv/gettext/fr/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ msgstr "Vous avez été invité à gérer un événement"
msgid "Saved"
msgstr "Enregistré"

#: lib/claper_web/live/user_settings_live/show.html.heex:285
#: lib/claper_web/live/user_settings_live/show.html.heex:286
#, elixir-autogen, elixir-format
msgid "All your events and files will be permanently deleted, are you sure?"
msgstr "Tous vos événements et fichiers seront définitivement supprimés, êtes-vous sûr ?"
Expand All @@ -1012,17 +1012,17 @@ msgstr "Êtes-vous sûr de vouloir terminer cet événement ? Cette action est i
msgid "Attendees room"
msgstr "Salle des participants"

#: lib/claper_web/live/user_settings_live/show.html.heex:277
#: lib/claper_web/live/user_settings_live/show.html.heex:278
#, elixir-autogen, elixir-format
msgid "Be careful, these actions are irreversible"
msgstr "Soyez prudent, ces actions sont irréversibles"

#: lib/claper_web/live/user_settings_live/show.html.heex:274
#: lib/claper_web/live/user_settings_live/show.html.heex:275
#, elixir-autogen, elixir-format
msgid "Danger zone"
msgstr "Zone de danger"

#: lib/claper_web/live/user_settings_live/show.html.heex:290
#: lib/claper_web/live/user_settings_live/show.html.heex:291
#, elixir-autogen, elixir-format, fuzzy
msgid "Delete account"
msgstr "Supprimer le compte"
Expand Down Expand Up @@ -1257,7 +1257,7 @@ msgstr "L'événement n'existe pas"
msgid "Customize your account"
msgstr "Personnalisez votre compte"

#: lib/claper_web/live/user_settings_live/show.html.heex:264
#: lib/claper_web/live/user_settings_live/show.html.heex:265
#, elixir-autogen, elixir-format
msgid "Language"
msgstr "Langue"
Expand Down
Loading

0 comments on commit d6c48a3

Please sign in to comment.