Merge pull request #6061 from consuldemocracy/poll_text_answers

Add support for essay poll questions
This commit is contained in:
Sebastia
2025-10-16 15:30:22 +02:00
committed by GitHub
43 changed files with 856 additions and 293 deletions

View File

@@ -534,6 +534,7 @@ en:
max_votes: Maximum number of votes
vote_type: Votation type
votation_type/vote_type:
open: Open-ended
unique: Unique answer
multiple: Multiple answers
cookies/vendor:
@@ -628,6 +629,10 @@ en:
attributes:
code:
invalid: "must start with the same code as its target followed by a dot and end with a number"
votation_type:
attributes:
vote_type:
cannot_change_to_open_ended: "can't change to open-ended type because you've already defined possible valid answers for this question"
messages:
translations_too_short: Is mandatory to provide one translation at least
record_invalid: "Validation failed: %{errors}"

View File

@@ -1131,6 +1131,7 @@ en:
title: "Votation type"
unique_description: "It's only possible to answer one time to the question."
multiple_description: "Allows to choose multiple answers. It's possible to set the maximum number of answers."
open_description: "Open-ended question that allows users to provide a single answer in their own words."
questions:
index:
create: "Create question"

View File

@@ -639,6 +639,9 @@ en:
results:
title: "Questions"
most_voted_answer: "Most voted answer: "
open_ended:
valid: Valid
blank: Blank
poll_header:
back_to_proposal: Back to proposal
poll_questions:

View File

@@ -534,6 +534,7 @@ es:
max_votes: Número máximo de votos
vote_type: Tipo de votación
votation_type/vote_type:
open: Respuesta abierta
unique: Respuesta única
multiple: Respuesta múltiple
cookies/vendor:
@@ -628,6 +629,10 @@ es:
attributes:
code:
invalid: "debe empezar con el código de su meta seguido de un punto y terminar con un número"
votation_type:
attributes:
vote_type:
cannot_change_to_open_ended: "no se puede cambiar a respuesta abierta el tipo de votación porque ya has definido posibles respuestas válidas para esta pregunta"
messages:
translations_too_short: El obligatorio proporcionar una traducción como mínimo
record_invalid: "Error de validación: %{errors}"

View File

@@ -1131,6 +1131,7 @@ es:
title: "Tipo de votación"
unique_description: "Solo se puede responder a la pregunta con una única respuesta."
multiple_description: "Permite elegir más de una respuesta. Se puede elegir el número máximo de respuestas."
open_description: "Pregunta abierta que permite al usuario dar una única respuesta con sus propias palabras."
questions:
index:
create: "Crear pregunta ciudadana"

View File

@@ -639,6 +639,9 @@ es:
results:
title: "Preguntas"
most_voted_answer: "Respuesta más votada: "
open_ended:
valid: Válidos
blank: En blanco
poll_header:
back_to_proposal: Volver a la propuesta
poll_questions: