diff --git a/locale/fi/LC_MESSAGES/django.mo b/locale/fi/LC_MESSAGES/django.mo index f722445..4769e3e 100644 Binary files a/locale/fi/LC_MESSAGES/django.mo and b/locale/fi/LC_MESSAGES/django.mo differ diff --git a/locale/fi/LC_MESSAGES/django.po b/locale/fi/LC_MESSAGES/django.po index a690686..0e8961c 100644 --- a/locale/fi/LC_MESSAGES/django.po +++ b/locale/fi/LC_MESSAGES/django.po @@ -3,24 +3,24 @@ # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # -#, fuzzy msgid "" msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" +"Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-10-28 14:37+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" +"PO-Revision-Date: 2017-10-29 11:57+0200\n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Last-Translator: \n" +"Language-Team: \n" +"X-Generator: Poedit 2.0.4\n" #: .\infoscreen\models.py:97 msgid "ABB jobs" -msgstr "ABB-työpaikat" +msgstr "ABB:n työpaikat" #: .\infoscreen\models.py:112 msgid "APY Item" @@ -276,15 +276,15 @@ msgstr "Hylkää" #: .\members\templates\application_index.html:8 msgid "Killan jäseneksi liittyminen on helppoa ja hauskaa!" -msgstr "" +msgstr "Killan jäseneksi liittyminen on helppoa ja hauskaa!" #: .\members\templates\application_index.html:9 msgid "Täytä vain alla oleva lomake" -msgstr "" +msgstr "Täytä vain alla oleva lomake" #: .\members\templates\application_index.html:10 msgid "Muista myös maksaa jäsenmaksusi!" -msgstr "" +msgstr "Muista myös maksaa jäsenmaksusi!" #: .\members\templates\application_index.html:16 #: .\members\templates\member_add_many.html:48 @@ -299,11 +299,11 @@ msgstr "Jäsenhakemukset" #: .\members\templates\application_success.html:8 msgid "Hienoa! Jäsenhakemuksesi on nyt lähetetty." -msgstr "" +msgstr "Hienoa! Jäsenhakemuksesi on nyt lähetetty." #: .\members\templates\application_success.html:9 msgid "Takaisin Sähköinsinöörikillan web-sivuille" -msgstr "" +msgstr "Takaisin Sähköinsinöörikillan web-sivuille" #: .\members\templates\member_add.html:8 #: .\members\templates\members_base.html:55 @@ -493,7 +493,7 @@ msgstr "Hakemuksen ID ei määritelty" #: .\members\views\applications.py:73 msgid "Application missing 'id' field." -msgstr "Hakemuksen ID ei määritelty" +msgstr "Hakemuksen ID ei määritelty." #: .\members\views\applications.py:83 msgid "Email {} is already in use by a member. Application cannot be accepted." @@ -607,7 +607,7 @@ msgstr "Virheellinen puhelinnumero" #: .\webapp\forms.py:84 msgid "Custom role with the same name already exists." -msgstr "Samanniminen virka on jo olemassa" +msgstr "Samanniminen virka on jo olemassa." #: .\webapp\models.py:17 msgid "Webapp" @@ -725,7 +725,7 @@ msgstr "Kategoria" #: .\webapp\models.py:116 msgid "board member" -msgstr "Hallituksen jäsen" +msgstr "hallituksen jäsen" #: .\webapp\models.py:122 msgid "Description" @@ -753,11 +753,11 @@ msgstr "Aikaleima" #: .\webapp\models.py:159 msgid "Kaehmykommentti" -msgstr "" +msgstr "Kaehmykommentti" #: .\webapp\models.py:160 msgid "Kaehmykommentit" -msgstr "" +msgstr "Kaehmykommentit" #: .\webapp\models.py:162 msgid "Message" @@ -769,7 +769,7 @@ msgstr "Kaehmylomake" #: .\webapp\models.py:182 msgid "Kaehmylomakkeet" -msgstr "" +msgstr "Kaehmylomakkeet" #: .\webapp\models.py:185 .\webapp\models.py:258 msgid "Phone number" @@ -884,34 +884,37 @@ msgid "" " eikä siis missään nimessä sitova ilmoittautumien mihinkään " "tehtävään!" msgstr "" +"Muista, että kaehmyn lähettäminen on kiinnostuksen ilmaus \n" +" eikä siis missään nimessä sitova ilmoittautumien mihinkään " +"tehtävään!" #: .\webapp\templates\kaehmy.html:26 msgid "Päivämääriä & deadlineja" -msgstr "" +msgstr "Päivämääriä & deadlineja" #: .\webapp\templates\kaehmy.html:28 msgid "Hallitustyrkkypaneeli (haku hallitukseen olisi hyvä tehdä ennen tätä!)" -msgstr "" +msgstr "Hallitustyrkkypaneeli (haku hallitukseen olisi hyvä tehdä ennen tätä!)" #: .\webapp\templates\kaehmy.html:29 msgid "Vaalikokous, osa 1 (puheenjohtajan valinta)" -msgstr "" +msgstr "Vaalikokous, osa 1 (puheenjohtajan valinta)" #: .\webapp\templates\kaehmy.html:30 msgid "Vaalikokous, osa 2 (hallituksen valinta)" -msgstr "" +msgstr "Vaalikokous, osa 2 (hallituksen valinta)" #: .\webapp\templates\kaehmy.html:31 msgid "Kiltailta" -msgstr "" +msgstr "Kiltailta" #: .\webapp\templates\kaehmy.html:32 msgid "Haku toimariksi olisi hyvä tehdä ennen tätä!" -msgstr "" +msgstr "Haku toimariksi olisi hyvä tehdä ennen tätä!" #: .\webapp\templates\kaehmy.html:33 msgid "Vaalikokous, osa 3 (toimarien valinta)" -msgstr "" +msgstr "Vaalikokous, osa 3 (toimarien valinta)" #: .\webapp\templates\kaehmy_list.html:24 #: .\webapp\templates\kaehmy_list.html:59 @@ -920,7 +923,7 @@ msgstr "Kaikki kaehmyt" #: .\webapp\templates\kaehmy_list.html:32 msgid "Commenting on post by " -msgstr "Kommentoidaan viestiin lähettäjältä" +msgstr "Kommentoidaan viestiin lähettäjältä " #: .\webapp\templates\kaehmy_list.html:44 msgid "Comment" diff --git a/members/forms.py b/members/forms.py index aae74dc..a0d6bd5 100644 --- a/members/forms.py +++ b/members/forms.py @@ -121,4 +121,4 @@ class ApplicationForm(forms.ModelForm): super(ApplicationForm, self).__init__(*args, **kwargs) self.fields['AYY'].label = _("I'm a member of AYY") - self.fields['jas'].label = _("I want to receive a weekly newsletter") \ No newline at end of file + self.fields['jas'].label = _("I want to receive a weekly newsletter") diff --git a/members/views/applications.py b/members/views/applications.py index a53a961..3fb0cef 100644 --- a/members/views/applications.py +++ b/members/views/applications.py @@ -68,7 +68,7 @@ def application_accept(request, *args, **kwargs): if id is not None: application = Request.objects.get(id=id) else: - return render(request, + return render(request, 'error.html', {'error': _("Application missing 'id' field.")}) @@ -79,9 +79,9 @@ def application_accept(request, *args, **kwargs): if Member.objects.filter(email=application.email).exists(): return render(request, - 'error.html', - {'error': _('Email {} is already in use by a member. Application cannot be accepted.').format(application.email)}) - + 'error.html', + {'error': _('Email {} is already in use by a member. Application cannot be accepted.').format(application.email)}) + member = application.to_member() member.save() application.delete() @@ -91,14 +91,14 @@ def application_accept(request, *args, **kwargs): "register with the following info: {}" .format(form)) notification = "{} {}.".format(_("Successfully accepted application"), - str(application)) + str(application)) return HttpResponseRedirect( '/members/list?notification={}'.format(html.escape(notification))) except Exception as ex: logging.exception('Exception while accepting application') return render(request, - 'error.html', - {'error': str(ex)}) + 'error.html', + {'error': str(ex)}) else: logging.info(form) return render(request, @@ -125,7 +125,7 @@ def application_delete(request, *args, **kwargs): application.delete() logging.info( "Delete application in member register with the following id: {}" - .format(id)) + .format(id)) return HttpResponseRedirect( '/members/applications?notification={}' .format(html.escape(notification))) diff --git a/members/views/members.py b/members/views/members.py index 4165612..eb2a3c4 100644 --- a/members/views/members.py +++ b/members/views/members.py @@ -143,7 +143,7 @@ def member_update(request, *args, **kwargs): if id is not None: member = Member.objects.get(id=id) else: - return render(request, + return render(request, 'error.html', {'error': _("Member missing 'id' field.")}) logging.debug(member)