Skip to content

Commit

Permalink
Swissvotes: Additional Column for LeeWas polls
Browse files Browse the repository at this point in the history
TYPE: Feature
LINK: SWI-50
  • Loading branch information
BreathingFlesh committed Sep 5, 2024
1 parent 4d97fe7 commit f963443
Show file tree
Hide file tree
Showing 8 changed files with 178 additions and 93 deletions.
37 changes: 23 additions & 14 deletions src/onegov/swissvotes/forms/attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,48 +190,48 @@ class AttachmentsForm(Form):
)

post_vote_poll = UploadField(
label=_("Full analysis of post-vote poll results"),
label=_("Full analysis of VOX post-vote poll results"),
validators=[
WhitelistedMimeType(PDF_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote poll"),
fieldset=_("Post-vote polls"),
)

post_vote_poll_methodology = UploadField(
label=_("Questionnaire of the poll"),
label=_("Questionnaire of the VOX poll"),
validators=[
WhitelistedMimeType(PDF_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote poll"),
fieldset=_("Post-vote polls"),
)

post_vote_poll_dataset = UploadField(
label=_("Dataset of the post-vote poll (CSV)"),
label=_("Dataset of the VOX poll (CSV)"),
validators=[
WhitelistedMimeType(CSV_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote poll"),
fieldset=_("Post-vote polls"),
)

post_vote_poll_dataset_sav = UploadField(
label=_("Dataset of the post-vote poll (SAV)"),
label=_("Dataset of the VOX poll (SAV)"),
validators=[
WhitelistedMimeType(SAV_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote poll"),
fieldset=_("Post-vote polls"),
)

post_vote_poll_dataset_dta = UploadField(
label=_("Dataset of the post-vote poll (DTA)"),
label=_("Dataset of the VOX poll (DTA)"),
validators=[
WhitelistedMimeType(DTA_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote poll"),
fieldset=_("Post-vote polls"),
)

post_vote_poll_codebook = UploadField(
Expand All @@ -240,7 +240,7 @@ class AttachmentsForm(Form):
WhitelistedMimeType(PDF_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote poll"),
fieldset=_("Post-vote polls"),
)

post_vote_poll_codebook_xlsx = UploadField(
Expand All @@ -249,16 +249,25 @@ class AttachmentsForm(Form):
WhitelistedMimeType(XLSX_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote poll"),
fieldset=_("Post-vote polls"),
)

post_vote_poll_report = UploadField(
label=_("Technical report of the post-vote poll"),
label=_("Technical report on the VOX poll"),
validators=[
WhitelistedMimeType(PDF_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote poll"),
fieldset=_("Post-vote polls"),
)

leewas_post_vote_poll_results = UploadField(
label=_("Results of the LeeWas post-vote poll"),
validators=[
WhitelistedMimeType(PDF_MIME_TYPES),
FileSizeLimit(120 * 1024 * 1024)
],
fieldset=_("Post-vote polls"),
)

def update_model(self, model: 'SwissVote') -> None:
Expand Down
60 changes: 39 additions & 21 deletions src/onegov/swissvotes/locale/de_CH/LC_MESSAGES/onegov.swissvotes.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2024-08-08 12:56+0200\n"
"POT-Creation-Date: 2024-08-28 15:13+0200\n"
"PO-Revision-Date: 2021-01-07 09:13+0100\n"
"Last-Translator: Marc Sommerhalder <marc.sommerhalder@seantis.ch>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -110,32 +110,35 @@ msgstr "Abstimmung"
msgid "Result by canton, district and municipality"
msgstr "Abstimmungsergebnis pro Kanton, Bezirk und Gemeinde"

msgid "Full analysis of post-vote poll results"
msgstr "Analysebericht Nachbefragung"
msgid "Full analysis of VOX post-vote poll results"
msgstr "Analysebericht VOX-Nachbefragung"

msgid "Post-vote poll"
msgstr "Nachbefragung"
msgid "Post-vote polls"
msgstr "Nachbefragungen"

msgid "Questionnaire of the poll"
msgstr "Fragebogen der Nachbefragung"
msgid "Questionnaire of the VOX poll"
msgstr "Fragebogen der VOX-Nachbefragung"

msgid "Dataset of the post-vote poll (CSV)"
msgstr "Datensatz der Nachbefragung (CSV)"
msgid "Dataset of the VOX poll (CSV)"
msgstr "Datensatz der VOX-Nachbefragung (CSV)"

msgid "Dataset of the post-vote poll (SAV)"
msgstr "Datensatz der Nachbefragung (SAV)"
msgid "Dataset of the VOX poll (SAV)"
msgstr "Datensatz der VOX-Nachbefragung (SAV)"

msgid "Dataset of the post-vote poll (DTA)"
msgstr "Datensatz der Nachbefragung (DTA)"
msgid "Dataset of the VOX poll (DTA)"
msgstr "Datensatz der VOX-Nachbefragung (DTA)"

msgid "Codebook for the post-vote poll (PDF)"
msgstr "Codebuch zur Nachbefragung (PDF)"

msgid "Codebook for the post-vote poll (XLSX)"
msgstr "Codebuch zur Nachbefragung (XLSX)"

msgid "Technical report of the post-vote poll"
msgstr "Technischer Bericht der Nachbefragung"
msgid "Technical report on the VOX poll"
msgstr "Technischer Bericht zur VOX-Nachbefragung"

msgid "Results of the LeeWas post-vote poll"
msgstr "Ergebnisse der LeeWas-Nachbefragung"

msgid "Updating the external resources may take some time."
msgstr ""
Expand Down Expand Up @@ -1552,11 +1555,11 @@ msgstr "Inseratekampagne: Analyse von APS"
msgid "Media coverage: fög analysis"
msgstr "Medienberichterstattung: Analyse des fög"

msgid "Dataset of the post-vote poll"
msgstr "Datensatz der Nachbefragung"
msgid "Dataset of the VOX poll"
msgstr "Datensatz der VOX-Nachbefragung"

msgid "Codebook for the post-vote poll"
msgstr "Codebuch zur Nachbefragung"
msgid "Codebook for the VOX poll"
msgstr "Codebuch zur VOX-Nachbefragung"

msgid "Attachment"
msgstr "Anhang"
Expand Down Expand Up @@ -1951,11 +1954,23 @@ msgstr "Interaktive Karte des Bundesamts für Statistik"
msgid "Display the map"
msgstr "Karte anzeigen"

msgid "Full analysis of VOTO post-vote poll results"
msgstr "Analysebericht VOTO-Nachbefragung"

msgid "Technical report"
msgstr "Technischer Bericht"

msgid "Cockpit with selected results"
msgstr "Cockpit mit Analyseergebnissen"
msgid "Cockpit with selected VOX results"
msgstr "Cockpit mit VOX-Analyseergebnissen"

msgid "Cockpit with selected VOTO results"
msgstr "Cockpit mit VOTO-Analyseergebnissen"

msgid "Questionnaire of the VOTO poll"
msgstr "Fragebogen der VOTO-Nachbefragung"

msgid "Dataset of the VOTO poll"
msgstr "Datensatz der VOTO-Nachbefragung"

msgid ""
"Due to data protection requirements, Swissvotes publishes a slightly reduced "
Expand All @@ -1969,6 +1984,9 @@ msgstr ""
"näheren Angaben dazu im Swissvotes-Codebuch (www.swissvotes.ch/page/dataset/"
"codebook-de.pdf)."

msgid "Codebook for the VOTO poll"
msgstr "Codebuch zur VOTO-Nachbefragung"

msgid "Full-text search in all documents on this vote"
msgstr "Volltextsuche in allen Dokumenten zu dieser Vorlage"

Expand Down
60 changes: 39 additions & 21 deletions src/onegov/swissvotes/locale/en_US/LC_MESSAGES/onegov.swissvotes.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2024-08-08 12:56+0200\n"
"POT-Creation-Date: 2024-08-28 15:13+0200\n"
"PO-Revision-Date: 2021-01-07 09:11+0100\n"
"Last-Translator: Marc Sommerhalder <marc.sommerhalder@seantis.ch>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -108,32 +108,35 @@ msgstr "Vote"
msgid "Result by canton, district and municipality"
msgstr "Result by canton, district and municipality"

msgid "Full analysis of post-vote poll results"
msgstr "Full analysis of post-vote poll results"
msgid "Full analysis of VOX post-vote poll results"
msgstr "Full analysis of VOX post-vote poll results"

msgid "Post-vote poll"
msgstr "Post-vote poll"
msgid "Post-vote polls"
msgstr "Post-vote polls"

msgid "Questionnaire of the poll"
msgstr "Questionnaire of the poll"
msgid "Questionnaire of the VOX poll"
msgstr "Questionnaire of the VOX poll"

msgid "Dataset of the post-vote poll (CSV)"
msgstr "Dataset of the post-vote poll (CSV)"
msgid "Dataset of the VOX poll (CSV)"
msgstr "Dataset of the VOX poll (CSV)"

msgid "Dataset of the post-vote poll (SAV)"
msgstr "Dataset of the post-vote poll (SAV)"
msgid "Dataset of the VOX poll (SAV)"
msgstr "Dataset of the VOX poll (SAV)"

msgid "Dataset of the post-vote poll (DTA)"
msgstr "Dataset of the post-vote poll (DTA)"
msgid "Dataset of the VOX poll (DTA)"
msgstr "Dataset of the VOX poll (DTA)"

msgid "Codebook for the post-vote poll (PDF)"
msgstr "Codebook for the post-vote poll (PDF)"

msgid "Codebook for the post-vote poll (XLSX)"
msgstr "Codebook for the post-vote poll (XLSX)"

msgid "Technical report of the post-vote poll"
msgstr "Technical report of the post-vote poll"
msgid "Technical report on the VOX poll"
msgstr "Technical report on the VOX poll"

msgid "Results of the LeeWas post-vote poll"
msgstr "Results of the LeeWas post-vote poll"

msgid "Updating the external resources may take some time."
msgstr "Updating the external resources may take some time."
Expand Down Expand Up @@ -1599,11 +1602,11 @@ msgstr "Analysis of the advertising campaign by Année Politique"
msgid "Media coverage: fög analysis"
msgstr "Media coverage: fög analysis"

msgid "Dataset of the post-vote poll"
msgstr "Dataset of the post-vote poll"
msgid "Dataset of the VOX poll"
msgstr "Dataset of the VOX poll"

msgid "Codebook for the post-vote poll"
msgstr "Codebook for the post-vote poll"
msgid "Codebook for the VOX poll"
msgstr "Codebook for the VOX poll"

msgid "Attachment"
msgstr "Attachment"
Expand Down Expand Up @@ -1995,11 +1998,23 @@ msgstr "Interactive map by the Swiss Federal Statistical Office"
msgid "Display the map"
msgstr "Display the map"

msgid "Full analysis of VOTO post-vote poll results"
msgstr "Full analysis of VOTO post-vote poll results"

msgid "Technical report"
msgstr "Technical report"

msgid "Cockpit with selected results"
msgstr "Cockpit with selected results"
msgid "Cockpit with selected VOX results"
msgstr "Cockpit with selected VOX results"

msgid "Cockpit with selected VOTO results"
msgstr "Cockpit with selected VOTO results"

msgid "Questionnaire of the VOTO poll"
msgstr "Questionnaire of the VOTO poll"

msgid "Dataset of the VOTO poll"
msgstr "Dataset of the VOTO poll"

msgid ""
"Due to data protection requirements, Swissvotes publishes a slightly reduced "
Expand All @@ -2012,6 +2027,9 @@ msgstr ""
"research purposes; see the Swissvotes codebook for more details on this "
"(https://swissvotes.ch/page/dataset/codebook-en.pdf)."

msgid "Codebook for the VOTO poll"
msgstr "Codebook for the VOTO poll"

msgid "Full-text search in all documents on this vote"
msgstr "Full-text search in all documents on this vote"

Expand Down
Loading

0 comments on commit f963443

Please sign in to comment.