Skip to content

Commit

Permalink
Translations for the info text
Browse files Browse the repository at this point in the history
Refs EKIR-191
  • Loading branch information
natlibfi-max-grasbeck committed May 22, 2024
1 parent b53d9e3 commit 3084a20
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 70 deletions.
6 changes: 4 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,16 @@ def feedback(name=None):
"sv": _("Swedish"),
}

form.device_model.data = request.args.get('device_model')
form.software_version.data = request.args.get('software_version')
form.device_model.data = request.args.get("device_model")
form.software_version.data = request.args.get("software_version")
info_text = _("You can leave feedback about the E-library or suggest materials for acquisition. Suggestions for materials will not be responded to.")

return render_template(
"feedback.html",
form=form,
languages=languages,
selected_language=get_locale(),
info_text=info_text,
)


Expand Down
50 changes: 34 additions & 16 deletions messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-04-29 11:56+0300\n"
"POT-Creation-Date: 2024-05-22 14:16+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -17,63 +17,81 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.14.0\n"

#: app.py:64
#: app.py:57
msgid "Subject"
msgstr ""

#: app.py:66
#: app.py:59
msgid "General feedback"
msgstr ""

#: app.py:67
#: app.py:60
msgid "Material procurement"
msgstr ""

#: app.py:68
#: app.py:61
msgid "Material error"
msgstr ""

#: app.py:69
#: app.py:62
msgid "Technical problem"
msgstr ""

#: app.py:70
#: app.py:63
msgid "Other"
msgstr ""

#: app.py:74
#: app.py:66
msgid "Device model"
msgstr ""

#: app.py:67
msgid "Software version"
msgstr ""

#: app.py:69
msgid "Book name"
msgstr ""

#: app.py:72
msgid "Message"
msgstr ""

#: app.py:77
#: app.py:76
msgid "My home municipality that receives this feedback"
msgstr ""

#: app.py:86
#: app.py:85
msgid "Email address, if you want an answer to your feedback (Optional)"
msgstr ""

#: app.py:90
#: app.py:89
msgid "Send"
msgstr ""

#: app.py:128
#: app.py:132
msgid "English"
msgstr ""

#: app.py:129
#: app.py:133
msgid "Finnish"
msgstr ""

#: app.py:130
#: app.py:134
msgid "Swedish"
msgstr ""

#: app.py:193
#: app.py:139
msgid ""
"You can leave feedback about the E-library or suggest materials for "
"acquisition. Suggestions for materials will not be responded to."
msgstr ""

#: app.py:192
msgid "Thank you for your feedback!"
msgstr ""

#: app.py:199
#: app.py:198
msgid "There was a problem sending your message."
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion templates/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block content %}
<div class="alert alert-light" role="alert">
Voit jättää palautetta E-kirjastosta tai ehdottaa hankittavia aineistoja. Aineistoehdotuksiin ei vastata
{{ info_text }}
</div>
<p>{{ message|safe }}</p>
{{ render_form(form) }}
Expand Down
Binary file modified translations/en/LC_MESSAGES/messages.mo
Binary file not shown.
53 changes: 34 additions & 19 deletions translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-04-29 11:56+0300\n"
"POT-Creation-Date: 2024-05-22 14:16+0300\n"
"PO-Revision-Date: 2024-04-16 17:50+0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
Expand All @@ -18,63 +18,81 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.14.0\n"

#: app.py:64
#: app.py:57
msgid "Subject"
msgstr ""

#: app.py:66
#: app.py:59
msgid "General feedback"
msgstr ""

#: app.py:67
#: app.py:60
msgid "Material procurement"
msgstr ""

#: app.py:68
#: app.py:61
msgid "Material error"
msgstr ""

#: app.py:69
#: app.py:62
msgid "Technical problem"
msgstr ""

#: app.py:70
#: app.py:63
msgid "Other"
msgstr ""

#: app.py:74
#: app.py:66
msgid "Device model"
msgstr ""

#: app.py:67
msgid "Software version"
msgstr ""

#: app.py:69
msgid "Book name"
msgstr ""

#: app.py:72
msgid "Message"
msgstr ""

#: app.py:77
#: app.py:76
msgid "My home municipality that receives this feedback"
msgstr ""

#: app.py:86
#: app.py:85
msgid "Email address, if you want an answer to your feedback (Optional)"
msgstr ""

#: app.py:90
#: app.py:89
msgid "Send"
msgstr ""

#: app.py:128
#: app.py:132
msgid "English"
msgstr ""

#: app.py:129
#: app.py:133
msgid "Finnish"
msgstr "Suomi"

#: app.py:130
#: app.py:134
msgid "Swedish"
msgstr "Svenska"

#: app.py:193
#: app.py:139
msgid ""
"You can leave feedback about the E-library or suggest materials for "
"acquisition. Suggestions for materials will not be responded to."
msgstr ""

#: app.py:192
msgid "Thank you for your feedback!"
msgstr ""

#: app.py:199
#: app.py:198
msgid "There was a problem sending your message."
msgstr ""

Expand All @@ -86,6 +104,3 @@ msgstr ""
msgid "I don't want to say"
msgstr ""

#~ msgid "My home municipality is missing"
#~ msgstr ""

Binary file modified translations/fi/LC_MESSAGES/messages.mo
Binary file not shown.
52 changes: 36 additions & 16 deletions translations/fi/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-04-29 11:56+0300\n"
"POT-Creation-Date: 2024-05-22 14:16+0300\n"
"PO-Revision-Date: 2024-04-16 16:30+0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fi\n"
Expand All @@ -18,63 +18,83 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.14.0\n"

#: app.py:64
#: app.py:57
msgid "Subject"
msgstr "Aihe"

#: app.py:66
#: app.py:59
msgid "General feedback"
msgstr "Yleinen palaute"

#: app.py:67
#: app.py:60
msgid "Material procurement"
msgstr "Aineiston hankintaehdotus"

#: app.py:68
#: app.py:61
msgid "Material error"
msgstr "Aineiston vikailmoitus"

#: app.py:69
#: app.py:62
msgid "Technical problem"
msgstr "Tekninen ongelma"

#: app.py:70
#: app.py:63
msgid "Other"
msgstr "Muu"

#: app.py:74
#: app.py:66
msgid "Device model"
msgstr ""

#: app.py:67
msgid "Software version"
msgstr ""

#: app.py:69
msgid "Book name"
msgstr "Kirjan nimi"

#: app.py:72
msgid "Message"
msgstr "Viesti"

#: app.py:77
#: app.py:76
msgid "My home municipality that receives this feedback"
msgstr "Kotikuntani, jolle palaute osoitetaan"

#: app.py:86
#: app.py:85
msgid "Email address, if you want an answer to your feedback (Optional)"
msgstr "Sähköpostiosoite, johon haluat vastauksen palautteellesi (Valinnainen)"

#: app.py:90
#: app.py:89
msgid "Send"
msgstr "Lähetä"

#: app.py:128
#: app.py:132
msgid "English"
msgstr "English "

#: app.py:129
#: app.py:133
msgid "Finnish"
msgstr "Suomi "

#: app.py:130
#: app.py:134
msgid "Swedish"
msgstr "Svenska "

#: app.py:193
#: app.py:139
msgid ""
"You can leave feedback about the E-library or suggest materials for "
"acquisition. Suggestions for materials will not be responded to."
msgstr ""
"Voit jättää palautetta E-kirjastosta tai ehdottaa hankittavia aineistoja."
" Aineistoehdotuksiin ei vastata."

#: app.py:192
msgid "Thank you for your feedback!"
msgstr "Kiitos palautteesta!"

#: app.py:199
#: app.py:198
msgid "There was a problem sending your message."
msgstr "Viestin lähetyksessä tapahtui virhe."

Expand Down
Binary file modified translations/sv/LC_MESSAGES/messages.mo
Binary file not shown.
Loading

0 comments on commit 3084a20

Please sign in to comment.