Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add norwegian language #381

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/qrstorage/qr_codes/qr_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Qrstorage.QrCodes.QrCode do

require Logger

@languages ~w[de en fr es tr pl ar ru it pt nl uk cs el fi hu sk ro]a
@languages ~w[de en fr es tr pl ar ru it pt nl uk cs el fi hu sk ro no]a
@block_list ~w[https http www]

@voices ~w[male female]a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ defmodule Qrstorage.Services.Translate.TranslateApiServiceImpl do
:fi => :FI,
:hu => :HU,
:sk => :SK,
:ro => :RO
:ro => :RO,
:no => :NB
}

@impl TranslateApiService
Expand Down
6 changes: 4 additions & 2 deletions lib/qrstorage/services/tts/text_to_speech_mapping.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ defmodule Qrstorage.Services.Tts.TextToSpeechMapping do
:fi => %{"female" => "Elina-DNN", "male" => "Benoit-premium"},
:hu => %{"female" => "Kinga", "male" => "Attila"},
:sk => %{"female" => "Simona", "male" => "Jakub"},
:ro => %{"female" => "Adina", "male" => "Teodor"}
:ro => %{"female" => "Adina", "male" => "Teodor"},
:no => %{"female" => "Lykke-DNN"}
}

@language_codes %{
Expand All @@ -40,7 +41,8 @@ defmodule Qrstorage.Services.Tts.TextToSpeechMapping do
:fi => "fi_fi",
:hu => "hu_hu",
:sk => "sk_sk",
:ro => "ro_ro"
:ro => "ro_ro",
:no => "no_nb"
}

def voice(language, gender) when is_atom(language) do
Expand Down
2 changes: 1 addition & 1 deletion priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ msgstr "Möchtest Du diesen QR-Code wirklich löschen?"
msgid "Do you really want to delete this QR code? This action cannot be undone:"
msgstr "Möchtest Du diesen QR-Code wirklich löschen? Diese Handlung kann nicht rückgängig gemacht werden."

#: lib/qrstorage_web/controllers/qr_code_controller.ex:94
#: lib/qrstorage_web/controllers/qr_code_controller.ex:93
#, elixir-autogen, elixir-format
msgid "Successfully deleted QR code."
msgstr "QR-Code erfolgreich gelöscht."
Expand Down
3 changes: 3 additions & 0 deletions priv/gettext/de/LC_MESSAGES/languages.po
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ msgstr "Slowakisch"

msgid "ro"
msgstr "Rumänisch"

msgid "no"
msgstr "Norwegisch"
2 changes: 1 addition & 1 deletion priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ msgstr ""
msgid "Do you really want to delete this QR code? This action cannot be undone:"
msgstr ""

#: lib/qrstorage_web/controllers/qr_code_controller.ex:94
#: lib/qrstorage_web/controllers/qr_code_controller.ex:93
#, elixir-autogen, elixir-format
msgid "Successfully deleted QR code."
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ msgstr ""
msgid "Do you really want to delete this QR code? This action cannot be undone:"
msgstr ""

#: lib/qrstorage_web/controllers/qr_code_controller.ex:94
#: lib/qrstorage_web/controllers/qr_code_controller.ex:93
#, elixir-autogen, elixir-format
msgid "Successfully deleted QR code."
msgstr ""
Expand Down
3 changes: 3 additions & 0 deletions priv/gettext/en/LC_MESSAGES/languages.po
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ msgstr "Slovak"

msgid "ro"
msgstr "Romanian"

msgid "no"
msgstr "Norwegian"
3 changes: 3 additions & 0 deletions priv/gettext/languages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ msgstr ""

msgid "ro"
msgstr ""

msgid "no"
msgstr ""
Loading