Fixed manage permission. Updated message translation.

This commit is contained in:
Emanuel Schuetze 2011-09-07 22:17:19 +02:00
parent 3001b9f474
commit f5f220417a
3 changed files with 47 additions and 47 deletions

View File

@ -144,8 +144,8 @@ def edit(request, application_id=None):
initial = {'text': config_get('application_preamble')} initial = {'text': config_get('application_preamble')}
else: else:
if application.status == "pub" and application.supporter.count() > 0: if application.status == "pub" and application.supporter.count() > 0:
if request.user.has_perm('application.can_manage_applications'): if request.user.has_perm('application.can_manage_application'):
messages.warning(request, _("Attention: Do you really want to edit this application? The supporters will not be removed automatically. Please check if the supports are valid after your changing.")) messages.warning(request, _("Attention: Do you really want to edit this application? The supporters will <b>not</b> be removed automatically because you can manage applications. Please check if the supports are valid after your changing!"))
else: else:
messages.warning(request, _("Attention: Do you really want to edit this application? All <b>%s</b> supporters will be removed! Try to convince the supporters again.") % application.supporter.count() ) messages.warning(request, _("Attention: Do you really want to edit this application? All <b>%s</b> supporters will be removed! Try to convince the supporters again.") % application.supporter.count() )
initial = {'title': application.title, initial = {'title': application.title,

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-09-07 19:31+0200\n" "POT-Creation-Date: 2011-09-07 22:14+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -34,7 +34,7 @@ msgstr "Englisch"
#: assignment/templates/assignment/poll_view.html:15 #: assignment/templates/assignment/poll_view.html:15
#: assignment/templates/assignment/view.html:168 #: assignment/templates/assignment/view.html:168
#: assignment/templates/assignment/view.html:172 poll/forms.py:45 #: assignment/templates/assignment/view.html:172 poll/forms.py:45
#: utils/pdf.py:392 utils/pdf.py:465 utils/pdf.py:570 utils/utils.py:35 #: utils/pdf.py:400 utils/pdf.py:476 utils/pdf.py:619 utils/utils.py:35
msgid "Yes" msgid "Yes"
msgstr "Ja" msgstr "Ja"
@ -49,7 +49,7 @@ msgstr "Ja, mit allen Kindelementen."
#: application/templates/application/view.html:75 #: application/templates/application/view.html:75
#: assignment/templates/assignment/poll_view.html:16 #: assignment/templates/assignment/poll_view.html:16
#: assignment/templates/assignment/view.html:169 poll/forms.py:46 #: assignment/templates/assignment/view.html:169 poll/forms.py:46
#: utils/pdf.py:392 utils/pdf.py:466 utils/pdf.py:570 utils/utils.py:35 #: utils/pdf.py:400 utils/pdf.py:477 utils/pdf.py:619 utils/utils.py:35
msgid "No" msgid "No"
msgstr "Nein" msgstr "Nein"
@ -80,38 +80,38 @@ msgstr "Gewichtung"
msgid "Hidden (visible for agenda manager only)" msgid "Hidden (visible for agenda manager only)"
msgstr "Versteckt (sichtbar nur für die Tagesordnungs-Verwaltung)" msgstr "Versteckt (sichtbar nur für die Tagesordnungs-Verwaltung)"
#: agenda/models.py:133 #: agenda/models.py:126
#, python-format #, python-format
msgid "No Form for itemtype %s" msgid "No Form for itemtype %s"
msgstr "Kein Formular für Eintrag %s" msgstr "Kein Formular für Eintrag %s"
#: agenda/models.py:196 application/forms.py:24 #: agenda/models.py:189 application/forms.py:24
#: application/templates/application/view.html:247 poll/models.py:108 #: application/templates/application/view.html:247 poll/models.py:108
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: agenda/models.py:206 agenda/templates/agenda/overview.html:113 #: agenda/models.py:199 agenda/templates/agenda/overview.html:113
#: agenda/templates/beamer/ItemApplication.html:5 #: agenda/templates/beamer/ItemApplication.html:5
#: application/templates/application/edit.html:2 #: application/templates/application/edit.html:2
#: application/templates/application/overview.html:27 #: application/templates/application/overview.html:27
#: application/templates/application/view.html:2 #: application/templates/application/view.html:2
#: application/templates/application/view.html:213 poll/models.py:23 #: application/templates/application/view.html:213 poll/models.py:23
#: poll/models.py:110 system/templates/system/general.html:13 utils/pdf.py:440 #: poll/models.py:110 system/templates/system/general.html:13 utils/pdf.py:451
#: utils/pdf.py:452 #: utils/pdf.py:463
msgid "Application" msgid "Application"
msgstr "Antrag" msgstr "Antrag"
#: agenda/models.py:213 agenda/templates/agenda/overview.html:126 #: agenda/models.py:206 agenda/templates/agenda/overview.html:126
#: agenda/templates/beamer/ItemAssignment.html:8 #: agenda/templates/beamer/ItemAssignment.html:8
#: assignment/templates/assignment/edit.html:2 #: assignment/templates/assignment/edit.html:2
#: assignment/templates/assignment/overview.html:18 poll/models.py:24 #: assignment/templates/assignment/overview.html:18 poll/models.py:24
#: utils/pdf.py:482 utils/pdf.py:547 utils/pdf.py:556 #: utils/pdf.py:509 utils/pdf.py:596 utils/pdf.py:605
msgid "Election" msgid "Election"
msgstr "Wahl" msgstr "Wahl"
#: agenda/models.py:220 agenda/templates/beamer/ItemApplication.html:20 #: agenda/models.py:213 agenda/templates/beamer/ItemApplication.html:20
#: assignment/templates/assignment/poll_view.html:2 poll/models.py:111 #: assignment/templates/assignment/poll_view.html:2 poll/models.py:111
#: utils/pdf.py:452 #: utils/pdf.py:463
msgid "Poll" msgid "Poll"
msgstr "Abstimmung" msgstr "Abstimmung"
@ -125,39 +125,39 @@ msgstr "Abstimmung"
msgid "Agenda" msgid "Agenda"
msgstr "Tagesordnung" msgstr "Tagesordnung"
#: agenda/views.py:170 agenda/views.py:188 agenda/views.py:211 #: agenda/views.py:169 agenda/views.py:187 agenda/views.py:210
#, python-format #, python-format
msgid "Item ID %d does not exist." msgid "Item ID %d does not exist."
msgstr "Eintrag %d existiert nicht." msgstr "Eintrag %d existiert nicht."
#: agenda/views.py:225 #: agenda/views.py:224
msgid "New item was successfully created." msgid "New item was successfully created."
msgstr "Neuer Eintrag erfolgreich angelegt." msgstr "Neuer Eintrag erfolgreich angelegt."
#: agenda/views.py:227 #: agenda/views.py:226
msgid "Agenda item created" msgid "Agenda item created"
msgstr "Tagesordnungseintrag angelegt" msgstr "Tagesordnungseintrag angelegt"
#: agenda/views.py:229 #: agenda/views.py:228
msgid "Item was successfully modified." msgid "Item was successfully modified."
msgstr "Eintrag wurde erfolgreich geändert." msgstr "Eintrag wurde erfolgreich geändert."
#: agenda/views.py:231 #: agenda/views.py:230
msgid "Agenda item modified" msgid "Agenda item modified"
msgstr "Tagesordnungseintrag geändert" msgstr "Tagesordnungseintrag geändert"
#: agenda/views.py:237 participant/views.py:108 participant/views.py:194 #: agenda/views.py:236 participant/views.py:108 participant/views.py:194
#: participant/views.py:223 participant/views.py:279 system/views.py:32 #: participant/views.py:223 participant/views.py:279 system/views.py:32
#: system/views.py:59 #: system/views.py:59
msgid "Please check the form for errors." msgid "Please check the form for errors."
msgstr "Bitte kontrollieren Sie das Formular nach Fehlern." msgstr "Bitte kontrollieren Sie das Formular nach Fehlern."
#: agenda/views.py:271 #: agenda/views.py:270
#, python-format #, python-format
msgid "Item <b>%s</b> and his children were successfully deleted." msgid "Item <b>%s</b> and his children were successfully deleted."
msgstr "Eintrag <b>%s</b> und seine Kindelemente wurde erfolgreich gelöscht." msgstr "Eintrag <b>%s</b> und seine Kindelemente wurde erfolgreich gelöscht."
#: agenda/views.py:277 #: agenda/views.py:276
#, python-format #, python-format
msgid "Item <b>%s</b> was successfully deleted." msgid "Item <b>%s</b> was successfully deleted."
msgstr "Eintrag <b>%s</b> wurde erfolgreich gelöscht." msgstr "Eintrag <b>%s</b> wurde erfolgreich gelöscht."
@ -302,7 +302,7 @@ msgstr "Keine Einträge vorhanden."
#: application/templates/application/view.html:35 #: application/templates/application/view.html:35
#: assignment/templates/assignment/overview.html:10 #: assignment/templates/assignment/overview.html:10
#: assignment/templates/assignment/overview.html:23 #: assignment/templates/assignment/overview.html:23
#: assignment/templates/assignment/view.html:8 utils/pdf.py:373 #: assignment/templates/assignment/view.html:8 utils/pdf.py:374
msgid "Status" msgid "Status"
msgstr "Status" msgstr "Status"
@ -315,7 +315,7 @@ msgstr "Abstimmungsergebnis"
#: application/templates/application/view.html:76 #: application/templates/application/view.html:76
#: assignment/templates/assignment/poll_view.html:17 #: assignment/templates/assignment/poll_view.html:17
#: assignment/templates/assignment/view.html:170 poll/forms.py:35 #: assignment/templates/assignment/view.html:170 poll/forms.py:35
#: poll/forms.py:47 utils/pdf.py:392 utils/pdf.py:467 utils/pdf.py:570 #: poll/forms.py:47 utils/pdf.py:400 utils/pdf.py:478 utils/pdf.py:619
msgid "Abstention" msgid "Abstention"
msgstr "Enthaltung" msgstr "Enthaltung"
@ -325,12 +325,12 @@ msgstr "Keine Abstimmungen vorhanden."
#: agenda/templates/beamer/ItemApplication.html:44 application/forms.py:25 #: agenda/templates/beamer/ItemApplication.html:44 application/forms.py:25
#: application/templates/application/view.html:229 #: application/templates/application/view.html:229
#: application/templates/application/view.html:249 utils/pdf.py:414 #: application/templates/application/view.html:249 utils/pdf.py:418
msgid "Reason" msgid "Reason"
msgstr "Begründung" msgstr "Begründung"
#: agenda/templates/beamer/ItemAssignment.html:17 assignment/models.py:28 #: agenda/templates/beamer/ItemAssignment.html:17 assignment/models.py:28
#: assignment/templates/assignment/view.html:14 utils/pdf.py:486 #: assignment/templates/assignment/view.html:14 utils/pdf.py:513
msgid "Number of available posts" msgid "Number of available posts"
msgstr "Anzahl der zur Wahl stehenden Posten" msgstr "Anzahl der zur Wahl stehenden Posten"
@ -338,7 +338,7 @@ msgstr "Anzahl der zur Wahl stehenden Posten"
#: agenda/templates/beamer/ItemAssignment.html:45 #: agenda/templates/beamer/ItemAssignment.html:45
#: assignment/templates/assignment/overview.html:22 #: assignment/templates/assignment/overview.html:22
#: assignment/templates/assignment/view.html:55 #: assignment/templates/assignment/view.html:55
#: assignment/templates/assignment/view.html:126 utils/pdf.py:491 #: assignment/templates/assignment/view.html:126 utils/pdf.py:518
msgid "Candidates" msgid "Candidates"
msgstr "Kandidaten" msgstr "Kandidaten"
@ -354,7 +354,7 @@ msgstr "Wahlergebnisse"
#: agenda/templates/beamer/ItemAssignment.html:47 #: agenda/templates/beamer/ItemAssignment.html:47
#: assignment/templates/assignment/poll_view.html:6 #: assignment/templates/assignment/poll_view.html:6
#: assignment/templates/assignment/view.html:122 utils/pdf.py:559 #: assignment/templates/assignment/view.html:122 utils/pdf.py:608
msgid "ballot" msgid "ballot"
msgstr "Wahlgang" msgstr "Wahlgang"
@ -413,12 +413,12 @@ msgid "Rejected (not permitted)"
msgstr "Verworfen (nicht zulässig)" msgstr "Verworfen (nicht zulässig)"
#: application/models.py:45 application/templates/application/overview.html:36 #: application/models.py:45 application/templates/application/overview.html:36
#: application/templates/application/view.html:9 utils/pdf.py:346 #: application/templates/application/view.html:9 utils/pdf.py:347
msgid "Submitter" msgid "Submitter"
msgstr "Antragsteller" msgstr "Antragsteller"
#: application/models.py:47 application/templates/application/view.html:23 #: application/models.py:47 application/templates/application/view.html:23
#: utils/pdf.py:359 #: utils/pdf.py:360
msgid "Supporters" msgid "Supporters"
msgstr "Unterstützer" msgstr "Unterstützer"
@ -502,12 +502,12 @@ msgstr "Antrag wurde erfolgreich geändert."
#: application/views.py:148 #: application/views.py:148
msgid "" msgid ""
"Attention: Do you really want to edit this application? The supporters will " "Attention: Do you really want to edit this application? The supporters will "
"not be removed automatically. Please check if the supports are valid after " "<b>not</b> be removed automatically because you can manage applications. "
"your changing." "Please check if the supports are valid after your changing!"
msgstr "" msgstr ""
"Achtung: Wollen Sie den Antrag wirklich ändern? Die Unterstützer werden " "Achtung: Wollen Sie den Antrag wirklich ändern? Die Unterstützer werden "
"nicht automatisch entfernt. Prüfen Sie, ob die Unterstützungen noch gültig " "<b>nicht</b> automatisch entfernt, da Sie Anträge verwalten dürfen. Prüfen "
"sind." "Sie, ob die Unterstützungen noch gültig sind."
#: application/views.py:150 #: application/views.py:150
#, python-format #, python-format
@ -516,7 +516,7 @@ msgid ""
"supporters will be removed! Try to convince the supporters again." "supporters will be removed! Try to convince the supporters again."
msgstr "" msgstr ""
"Wollen Sie den Antrag wirklich ändern? Alle <b>%s</b> Unterstützer werden " "Wollen Sie den Antrag wirklich ändern? Alle <b>%s</b> Unterstützer werden "
"automatisch entfernt. Versuchen Sie diese erneut zu gewinnen." "dann automatisch entfernt. Versuchen Sie diese erneut zu gewinnen."
#: application/views.py:180 #: application/views.py:180
#, python-format #, python-format
@ -601,7 +601,7 @@ msgstr "Soll Version <b>%s</b> wirklich zurückgewiesen werden?"
#: application/templates/application/base_application.html:6 #: application/templates/application/base_application.html:6
#: application/templates/application/overview.html:2 #: application/templates/application/overview.html:2
#: application/templates/application/overview.html:6 templates/base.html:41 #: application/templates/application/overview.html:6 templates/base.html:41
#: utils/pdf.py:422 utils/pdf.py:429 #: utils/pdf.py:426 utils/pdf.py:433
msgid "Applications" msgid "Applications"
msgstr "Anträge" msgstr "Anträge"
@ -672,7 +672,7 @@ msgstr "Keine Anträge vorhanden."
#: application/templates/application/poll_view.html:8 #: application/templates/application/poll_view.html:8
#: application/templates/application/poll_view.html:16 #: application/templates/application/poll_view.html:16
#: application/templates/application/view.html:211 utils/pdf.py:339 #: application/templates/application/view.html:211 utils/pdf.py:339
#: utils/pdf.py:341 utils/pdf.py:433 utils/pdf.py:461 #: utils/pdf.py:341 utils/pdf.py:438 utils/pdf.py:440 utils/pdf.py:472
msgid "Application No." msgid "Application No."
msgstr "Antrag Nr." msgstr "Antrag Nr."
@ -682,8 +682,8 @@ msgstr "Abstimmung drucken"
#: application/templates/application/poll_view.html:16 #: application/templates/application/poll_view.html:16
#: application/templates/application/poll_view.html:19 #: application/templates/application/poll_view.html:19
#: application/templates/application/view.html:66 utils/pdf.py:391 #: application/templates/application/view.html:66 utils/pdf.py:399
#: utils/pdf.py:463 #: utils/pdf.py:474
msgid "Vote" msgid "Vote"
msgstr "Abstimmung" msgstr "Abstimmung"
@ -716,7 +716,7 @@ msgstr "Ungültige Stimmen"
#: assignment/templates/assignment/poll_view.html:39 #: assignment/templates/assignment/poll_view.html:39
#: assignment/templates/assignment/view.html:193 #: assignment/templates/assignment/view.html:193
#: assignment/templates/assignment/view.html:195 poll/forms.py:23 #: assignment/templates/assignment/view.html:195 poll/forms.py:23
#: poll/models.py:26 utils/pdf.py:392 #: poll/models.py:26 utils/pdf.py:400
msgid "Votes cast" msgid "Votes cast"
msgstr "Abgegebene Stimmen" msgstr "Abgegebene Stimmen"
@ -732,7 +732,7 @@ msgstr "Antrag drucken"
msgid "You!" msgid "You!"
msgstr "Sie!" msgstr "Sie!"
#: application/templates/application/view.html:45 utils/pdf.py:385 #: application/templates/application/view.html:45 utils/pdf.py:393
msgid "Vote results" msgid "Vote results"
msgstr "Abstimmungsergebnis" msgstr "Abstimmungsergebnis"
@ -747,7 +747,7 @@ msgstr "Abstimmung löschen"
#: application/templates/application/view.html:77 #: application/templates/application/view.html:77
#: assignment/templates/assignment/view.html:186 poll/forms.py:24 #: assignment/templates/assignment/view.html:186 poll/forms.py:24
#: utils/pdf.py:392 #: utils/pdf.py:400
msgid "Invalid" msgid "Invalid"
msgstr "Ungültig" msgstr "Ungültig"
@ -982,7 +982,7 @@ msgstr "der %s. Wahlgang"
msgid "not elected" msgid "not elected"
msgstr "nicht gewählt" msgstr "nicht gewählt"
#: assignment/views.py:262 #: assignment/views.py:262 utils/pdf.py:533
msgid "elected" msgid "elected"
msgstr "gewählt" msgstr "gewählt"
@ -990,7 +990,7 @@ msgstr "gewählt"
#: assignment/templates/assignment/overview.html:2 #: assignment/templates/assignment/overview.html:2
#: assignment/templates/assignment/overview.html:5 #: assignment/templates/assignment/overview.html:5
#: assignment/templates/assignment/overview.html:21 templates/base.html:45 #: assignment/templates/assignment/overview.html:21 templates/base.html:45
#: utils/pdf.py:518 utils/pdf.py:525 #: utils/pdf.py:567 utils/pdf.py:574
msgid "Elections" msgid "Elections"
msgstr "Wahlen" msgstr "Wahlen"
@ -1023,7 +1023,7 @@ msgstr "Wahl löschen"
msgid "No assignments available." msgid "No assignments available."
msgstr "Keine Wahlen vorhanden." msgstr "Keine Wahlen vorhanden."
#: assignment/templates/assignment/poll_view.html:7 utils/pdf.py:559 #: assignment/templates/assignment/poll_view.html:7 utils/pdf.py:608
msgid "candidate" msgid "candidate"
msgid_plural "candidates" msgid_plural "candidates"
msgstr[0] "Kandidat" msgstr[0] "Kandidat"
@ -1037,7 +1037,7 @@ msgstr "Kurzbeschreibung"
msgid "Print ballot" msgid "Print ballot"
msgstr "Wahlschein drucken" msgstr "Wahlschein drucken"
#: assignment/templates/assignment/view.html:2 utils/pdf.py:536 #: assignment/templates/assignment/view.html:2 utils/pdf.py:585
msgid "Assignment" msgid "Assignment"
msgstr "Wahl" msgstr "Wahl"
@ -1567,7 +1567,7 @@ msgstr "Passwort: %s"
msgid "URL: %s" msgid "URL: %s"
msgstr "URL: %s" msgstr "URL: %s"
#: utils/pdf.py:559 #: utils/pdf.py:608
msgid "available posts" msgid "available posts"
msgstr "verfügbare Posten" msgstr "verfügbare Posten"