decidim-forms 0.25.0.rc4 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/locales/eu.yml +92 -1
- data/config/locales/ga-IE.yml +52 -0
- data/config/locales/lb.yml +178 -0
- data/config/locales/pl.yml +5 -5
- data/config/locales/pt.yml +10 -0
- data/lib/decidim/forms/user_answers_serializer.rb +34 -8
- data/lib/decidim/forms/version.rb +1 -1
- metadata +11 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 931723679f0358853351adc3557731b3a523b30d9da94cddcf7c2ec142667f9d
|
|
4
|
+
data.tar.gz: f43b8c8c48c9612c9334e36d9fe42448bc0ee66640186f41e67d00f37c0dd3ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3aa93724afce7f04fd75159b1f960471fab8142d79f16b2c9d43c05ab91e92c8dfd266e78ab0cc859b9759e9fc2baf0fc8d1e0db0bb589e08fde8db821ee52c
|
|
7
|
+
data.tar.gz: 2ab2812b7a9510c7f1d314ad52cf359fc23a87b952b49d401d337e58904ee2e99fc74e9d52018d54f432cf546bfd3a8597d6ee52660f90251bd8adba25b76423
|
data/config/locales/eu.yml
CHANGED
|
@@ -3,18 +3,27 @@ eu:
|
|
|
3
3
|
attributes:
|
|
4
4
|
answer:
|
|
5
5
|
body: Erantzuna
|
|
6
|
+
choices: Aukerak
|
|
7
|
+
selected_choices: Hautatutako aukerak
|
|
6
8
|
question:
|
|
7
9
|
max_choices: Gehienezko aukera kopurua
|
|
8
10
|
question_type: Mota
|
|
9
11
|
questionnaire_question:
|
|
10
12
|
mandatory: derrigorrezko
|
|
13
|
+
max_characters: Karaktereen muga (utzi 0 mugarik ez badago)
|
|
11
14
|
errors:
|
|
12
15
|
models:
|
|
13
16
|
answer:
|
|
14
17
|
attributes:
|
|
18
|
+
add_documents:
|
|
19
|
+
needs_to_be_reattached: Fitxategia berriro erantsi behar da
|
|
20
|
+
body:
|
|
21
|
+
too_long: luzeegia da
|
|
15
22
|
choices:
|
|
16
23
|
missing: ez dira osatu
|
|
17
24
|
too_many: gehiegi dira
|
|
25
|
+
questionnaire:
|
|
26
|
+
request_invalid: Arazo bat izan da zure eskaera bidaltzean. Saiatu berriro
|
|
18
27
|
decidim:
|
|
19
28
|
forms:
|
|
20
29
|
admin:
|
|
@@ -23,35 +32,101 @@ eu:
|
|
|
23
32
|
description: deskribapena
|
|
24
33
|
tos: Zerbitzu-baldintzak
|
|
25
34
|
questionnaires:
|
|
35
|
+
actions:
|
|
36
|
+
back: Itzuli galderetara
|
|
37
|
+
show: Erakutsi erantzunak
|
|
26
38
|
answer_option:
|
|
27
39
|
answer_option: Erantzun aukera
|
|
28
40
|
free_text: Testu librea
|
|
29
41
|
remove: Kendu
|
|
30
42
|
statement: adierazpena
|
|
43
|
+
answers:
|
|
44
|
+
actions:
|
|
45
|
+
back: Itzuli erantzunetara
|
|
46
|
+
export: Esportatu
|
|
47
|
+
show: Erakutsi erantzunak
|
|
48
|
+
empty: Oraindik ez dago erantzunik
|
|
49
|
+
export:
|
|
50
|
+
answer:
|
|
51
|
+
title: '#%{number} erantzuna'
|
|
52
|
+
export_response:
|
|
53
|
+
title: survey_user_answers_%{token}
|
|
54
|
+
index:
|
|
55
|
+
title: "Guztira %{total} erantzun"
|
|
56
|
+
show:
|
|
57
|
+
title: '#%{number} erantzuna'
|
|
58
|
+
display_condition:
|
|
59
|
+
answer_option: Erantzuteko aukera
|
|
60
|
+
condition_question: Galdera
|
|
61
|
+
condition_type: Baldintza
|
|
62
|
+
condition_types:
|
|
63
|
+
answered: Erantzunda
|
|
64
|
+
equal: Honen berdina
|
|
65
|
+
match: Testua barne
|
|
66
|
+
not_answered: Erantzun gabe
|
|
67
|
+
not_equal: Ez da berdina
|
|
68
|
+
condition_value: Testua barne
|
|
69
|
+
display_condition: Bistaratzeko baldintza
|
|
70
|
+
mandatory: Baldintza hau beti bete behar da, beste baldintza batzuen egoera edozein dela ere
|
|
71
|
+
remove: Kendu
|
|
72
|
+
save_warning: Gogoratu formularioa gorde behar duzula, bistaratze-baldintzak konfiguratu aurretik
|
|
73
|
+
select_answer_option: Hautatu erantzun-aukera
|
|
74
|
+
select_condition_question: Hautatu galdera bat
|
|
75
|
+
select_condition_type: Hautatu baldintza mota bat
|
|
31
76
|
edit:
|
|
32
77
|
save: Save
|
|
78
|
+
title: Editatu galdetegia
|
|
33
79
|
form:
|
|
34
|
-
add_question:
|
|
80
|
+
add_question: Gehitu galdera
|
|
81
|
+
add_separator: Gehitu banatzailea
|
|
35
82
|
already_answered_warning: Galdetegia dagoeneko erantzun dio erabiltzaile batzuek, beraz, ezin dituzu bere galderak aldatu.
|
|
83
|
+
collapse: Bildu galdera guztiak
|
|
84
|
+
expand: Zabaldu galdera guztiak
|
|
85
|
+
preview: Aurreikusi
|
|
86
|
+
title: Editatu galdetegia honetarako %{questionnaire_for}
|
|
87
|
+
unpublished_warning: Galdetegia ez dago argitaratuta. Bere galderak aldatu ahal dituzu, baina egitean oraingo erantzunak ezabatuko dira.
|
|
36
88
|
matrix_row:
|
|
89
|
+
matrix_row: Errenkada
|
|
37
90
|
remove: Kendu
|
|
38
91
|
statement: adierazpena
|
|
39
92
|
question:
|
|
40
93
|
add_answer_option: Gehitu erantzun aukera
|
|
94
|
+
add_display_condition: Gehitu bistaratzeko baldintza
|
|
95
|
+
add_display_condition_info: Gorde galdetegia bistaratzeko baldintzak konfiguratzeko
|
|
96
|
+
add_matrix_row: Gehitu errenkada
|
|
41
97
|
any: Edozein
|
|
98
|
+
collapse: Bildu
|
|
42
99
|
description: deskribapena
|
|
43
100
|
down: Down
|
|
101
|
+
expand: Zabaldu
|
|
44
102
|
question: Galdera
|
|
45
103
|
remove: Kendu
|
|
46
104
|
statement: adierazpena
|
|
47
105
|
up: up
|
|
106
|
+
separator:
|
|
107
|
+
down: Jaitsi
|
|
108
|
+
remove: Kendu
|
|
109
|
+
separator: Bereizlea
|
|
110
|
+
up: Igo
|
|
48
111
|
update:
|
|
49
112
|
invalid: Akatsik egon da galdeketa gordetzean.
|
|
113
|
+
success: Galdetegia zuzen gorde da.
|
|
50
114
|
errors:
|
|
51
115
|
answer:
|
|
52
116
|
body: Gorputza ezin da hutsik egon
|
|
117
|
+
files:
|
|
118
|
+
extension_allowlist: 'Onartutako formatuak:'
|
|
119
|
+
images:
|
|
120
|
+
dimensions: "%{width} x %{height} px"
|
|
121
|
+
dimensions_info: 'Irudi honek neurtuko du:'
|
|
122
|
+
processors:
|
|
123
|
+
resize_and_pad: Birdimentsionatua eta honi egokitua
|
|
124
|
+
resize_to_fit: Birdimentsionatua egokitzeko
|
|
53
125
|
question_types:
|
|
126
|
+
files: Fitxategiak
|
|
54
127
|
long_answer: Erantzun luzea
|
|
128
|
+
matrix_multiple: Matrizea (aukera anitzekoa)
|
|
129
|
+
matrix_single: Matrizea (aukera bakarrekoa)
|
|
55
130
|
multiple_option: Hainbat aukera
|
|
56
131
|
short_answer: Erantzun laburra
|
|
57
132
|
single_option: Aukera bakarra
|
|
@@ -59,6 +134,7 @@ eu:
|
|
|
59
134
|
questionnaires:
|
|
60
135
|
answer:
|
|
61
136
|
invalid: Akatsik egon da galdeketa erantzutean.
|
|
137
|
+
max_choices_alert: Aukera gehiegi daude hautatuta
|
|
62
138
|
success: Galdesortaz erantzun ona.
|
|
63
139
|
question:
|
|
64
140
|
max_choices: 'Gehienezko aukerak: %{n}'
|
|
@@ -66,6 +142,8 @@ eu:
|
|
|
66
142
|
answer_questionnaire:
|
|
67
143
|
anonymous_user_message: <a href="%{sign_in_link}">Hasi saioa zure kontuarekin</a> edo <a href="%{sign_up_link}">saioa hasi</a> galdetegiari erantzuteko.
|
|
68
144
|
title: Erantzun galdetegia
|
|
145
|
+
current_step: '%{step} urratsa'
|
|
146
|
+
of_total_steps: '%{total_steps} etik'
|
|
69
147
|
questionnaire_answered:
|
|
70
148
|
body: Galdeketa honi erantzun dio.
|
|
71
149
|
title: Dagoeneko erantzun
|
|
@@ -75,11 +153,24 @@ eu:
|
|
|
75
153
|
questionnaire_for_private_users:
|
|
76
154
|
body: Galdetegia erabiltzaile pribatuentzat soilik dago erabilgarri
|
|
77
155
|
title: Galdeketa itxia
|
|
156
|
+
questionnaire_js_disabled:
|
|
157
|
+
body: Galdetegi honen ezaugarri batzuk desaktibatu egingo dira. Zure esperientzia hobetzeko, gaitu JavaScript zure nabigatzailean.
|
|
158
|
+
title: Javascript desaktibatuta dago
|
|
78
159
|
tos_agreement: Zerbitzu-baldintzak onartzen dituzunean parte hartuz
|
|
79
160
|
step_navigation:
|
|
80
161
|
show:
|
|
81
162
|
are_you_sure: Ekintza hau ezin da desegin eta ezin izango dituzu zure erantzunak editatu. Ziur zaude?
|
|
163
|
+
back: Atzera
|
|
164
|
+
continue: Jarraitu
|
|
82
165
|
submit: Bidali
|
|
83
166
|
user_answers_serializer:
|
|
167
|
+
body: Erantzuna
|
|
168
|
+
completion: Amaiera
|
|
84
169
|
created_at: Erantzuna
|
|
85
170
|
id: Erantzun IDa
|
|
171
|
+
ip_hash: IP Helbidearen Hash
|
|
172
|
+
question: Galdera
|
|
173
|
+
registered: Erregistratuta
|
|
174
|
+
session_token: Erabiltzailearen identifikatzailea
|
|
175
|
+
unregistered: Erregistratu gabe
|
|
176
|
+
user_status: Erabiltzailearen egoera
|
data/config/locales/ga-IE.yml
CHANGED
|
@@ -1 +1,53 @@
|
|
|
1
1
|
ga:
|
|
2
|
+
activemodel:
|
|
3
|
+
attributes:
|
|
4
|
+
answer:
|
|
5
|
+
body: Freagra
|
|
6
|
+
choices: Roghanna
|
|
7
|
+
question:
|
|
8
|
+
question_type: Cineál
|
|
9
|
+
decidim:
|
|
10
|
+
forms:
|
|
11
|
+
admin:
|
|
12
|
+
questionnaires:
|
|
13
|
+
answer_option:
|
|
14
|
+
remove: Bain as
|
|
15
|
+
answers:
|
|
16
|
+
actions:
|
|
17
|
+
export: Easpórtáil
|
|
18
|
+
display_condition:
|
|
19
|
+
condition_question: Ceist
|
|
20
|
+
condition_types:
|
|
21
|
+
equal: Céanna
|
|
22
|
+
remove: Bain as
|
|
23
|
+
edit:
|
|
24
|
+
save: Sábháil
|
|
25
|
+
form:
|
|
26
|
+
preview: Réamhamharc
|
|
27
|
+
matrix_row:
|
|
28
|
+
matrix_row: Ró
|
|
29
|
+
remove: Bain as
|
|
30
|
+
question:
|
|
31
|
+
add_matrix_row: Suimigh ró
|
|
32
|
+
any: Ar Bith
|
|
33
|
+
down: Síos
|
|
34
|
+
expand: Méadaigh
|
|
35
|
+
question: Ceist
|
|
36
|
+
remove: Bain as
|
|
37
|
+
up: Thuas
|
|
38
|
+
separator:
|
|
39
|
+
down: Ísligh
|
|
40
|
+
remove: Bain as
|
|
41
|
+
up: Ardaigh
|
|
42
|
+
question_types:
|
|
43
|
+
files: Comhaid
|
|
44
|
+
sorting: Sórtáil
|
|
45
|
+
step_navigation:
|
|
46
|
+
show:
|
|
47
|
+
back: Ar Ais
|
|
48
|
+
continue: Lean ar aghaidh
|
|
49
|
+
submit: Deimhnigh
|
|
50
|
+
user_answers_serializer:
|
|
51
|
+
body: Freagra
|
|
52
|
+
ip_hash: Hais IP
|
|
53
|
+
question: Ceist
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
lb:
|
|
2
|
+
activemodel:
|
|
3
|
+
attributes:
|
|
4
|
+
answer:
|
|
5
|
+
body: Äntwert
|
|
6
|
+
choices: Choixen
|
|
7
|
+
selected_choices: Ausgewählte Auswahl
|
|
8
|
+
question:
|
|
9
|
+
max_choices: Maximale Anzahl von Auswahlmöglichkeiten
|
|
10
|
+
question_type: Zort
|
|
11
|
+
questionnaire_question:
|
|
12
|
+
mandatory: Verpflichtend
|
|
13
|
+
max_characters: Maximale Anzahl Zeichen (0 bedeutet kein Limit)
|
|
14
|
+
errors:
|
|
15
|
+
models:
|
|
16
|
+
answer:
|
|
17
|
+
attributes:
|
|
18
|
+
add_documents:
|
|
19
|
+
needs_to_be_reattached: Muss erneut angehängt werden
|
|
20
|
+
body:
|
|
21
|
+
too_long: ist zu lang
|
|
22
|
+
choices:
|
|
23
|
+
missing: sind nicht vollständig
|
|
24
|
+
too_many: sind zu viele
|
|
25
|
+
questionnaire:
|
|
26
|
+
request_invalid: Bei der Bearbeitung der Anfrage ist ein Fehler aufgetreten. Bitte versuchen Sie es nochmal
|
|
27
|
+
decidim:
|
|
28
|
+
forms:
|
|
29
|
+
admin:
|
|
30
|
+
models:
|
|
31
|
+
components:
|
|
32
|
+
description: Beschreibung
|
|
33
|
+
tos: Nutzungsbedingungen
|
|
34
|
+
questionnaires:
|
|
35
|
+
actions:
|
|
36
|
+
back: Zurück zu Fragen
|
|
37
|
+
show: Antworten anzeigen
|
|
38
|
+
answer_option:
|
|
39
|
+
answer_option: Antwortoption
|
|
40
|
+
free_text: Freier Text
|
|
41
|
+
remove: Löschen
|
|
42
|
+
statement: Aussage
|
|
43
|
+
answers:
|
|
44
|
+
actions:
|
|
45
|
+
back: Zurück zu Antworten
|
|
46
|
+
export: Exportieren
|
|
47
|
+
show: Antworten anzeigen
|
|
48
|
+
empty: Noch keine Antworten
|
|
49
|
+
export:
|
|
50
|
+
answer:
|
|
51
|
+
title: 'Antwort #%{number}'
|
|
52
|
+
export_response:
|
|
53
|
+
title: Umfrage_Benutzer_Antworten_%{token}
|
|
54
|
+
index:
|
|
55
|
+
title: "%{total} Antworten insgesamt"
|
|
56
|
+
show:
|
|
57
|
+
title: 'Antwort #%{number}'
|
|
58
|
+
display_condition:
|
|
59
|
+
answer_option: Antwortoption
|
|
60
|
+
condition_question: Frage
|
|
61
|
+
condition_type: Bedingung
|
|
62
|
+
condition_types:
|
|
63
|
+
answered: Beantwortet
|
|
64
|
+
equal: Gleich
|
|
65
|
+
match: Beinhaltet Text
|
|
66
|
+
not_answered: Unbeantwortet
|
|
67
|
+
not_equal: Nicht gleich
|
|
68
|
+
condition_value: Enthaltener Text
|
|
69
|
+
display_condition: Bedingung anzeigen
|
|
70
|
+
mandatory: Diese Bedingung muss immer erfüllt werden, unabhängig vom Status anderer Bedingungen
|
|
71
|
+
remove: Löschen
|
|
72
|
+
save_warning: Vergessen Sie nicht, das Formular zu speichern, bevor Sie die Anzeigebedingungen konfigurieren
|
|
73
|
+
select_answer_option: Antwortoption auswählen
|
|
74
|
+
select_condition_question: Eine Frage
|
|
75
|
+
select_condition_type: Wählen Sie einen Bedingungstyp
|
|
76
|
+
edit:
|
|
77
|
+
save: Speichern
|
|
78
|
+
title: Fragebogen bearbeiten
|
|
79
|
+
form:
|
|
80
|
+
add_question: Frage hinzufügen
|
|
81
|
+
add_separator: Trennzeichen hinzufügen
|
|
82
|
+
already_answered_warning: Der Fragebogen wird bereits von einigen Benutzern beantwortet, sodass Sie die Fragen nicht ändern können.
|
|
83
|
+
collapse: Alle Fragen einklappen
|
|
84
|
+
expand: Alle Fragen ausklappen
|
|
85
|
+
preview: Vorschau
|
|
86
|
+
title: Formular für %{questionnaire_for} bearbeiten
|
|
87
|
+
unpublished_warning: Das Formular ist nicht öffentlich. Sie können die Fragen ändern, dabei werden allerdings die aktuellen Antworten gelöscht.
|
|
88
|
+
matrix_row:
|
|
89
|
+
matrix_row: Zeile
|
|
90
|
+
remove: Löschen
|
|
91
|
+
statement: Aussage
|
|
92
|
+
question:
|
|
93
|
+
add_answer_option: Antwortoption hinzufügen
|
|
94
|
+
add_display_condition: Anzeigebedingung hinzufügen
|
|
95
|
+
add_display_condition_info: Speichern Sie das Formular, um die Anzeigebedingungen zu konfigurieren
|
|
96
|
+
add_matrix_row: Zeile hinzufügen
|
|
97
|
+
any: Irgendein
|
|
98
|
+
collapse: Zouklappen
|
|
99
|
+
description: Beschreiwung
|
|
100
|
+
down: Runter
|
|
101
|
+
expand: Ausklappen
|
|
102
|
+
question: Fro
|
|
103
|
+
remove: Löschen
|
|
104
|
+
statement: Aussage
|
|
105
|
+
up: Hoch
|
|
106
|
+
separator:
|
|
107
|
+
down: Runter
|
|
108
|
+
remove: Löschen
|
|
109
|
+
separator: Trennzeichen
|
|
110
|
+
up: Hoch
|
|
111
|
+
update:
|
|
112
|
+
invalid: Beim Speichern des Fragebogens sind Fehler aufgetreten.
|
|
113
|
+
success: Formular erfolgreich gespeichert.
|
|
114
|
+
errors:
|
|
115
|
+
answer:
|
|
116
|
+
body: Körper kann nicht leer sein
|
|
117
|
+
files:
|
|
118
|
+
extension_allowlist: 'Gültige Formate:'
|
|
119
|
+
images:
|
|
120
|
+
dimensions: "%{width} x %{height} px"
|
|
121
|
+
dimensions_info: 'Das Bild wird:'
|
|
122
|
+
processors:
|
|
123
|
+
resize_and_pad: in der Größe angepasst und gepolstert zu
|
|
124
|
+
resize_to_fit: in der Größe verändert, damit es passt
|
|
125
|
+
question_types:
|
|
126
|
+
files: Dateien
|
|
127
|
+
long_answer: Lange Antwort
|
|
128
|
+
matrix_multiple: Matrix (Mehrfachoption)
|
|
129
|
+
matrix_single: Matrix (Einzelne Option)
|
|
130
|
+
multiple_option: Mehrfachoption
|
|
131
|
+
short_answer: Kurze Antwort
|
|
132
|
+
single_option: Einzelne Option
|
|
133
|
+
sorting: Sortierung
|
|
134
|
+
questionnaires:
|
|
135
|
+
answer:
|
|
136
|
+
invalid: Bei der Beantwortung des Fragebogens sind Fehler aufgetreten.
|
|
137
|
+
max_choices_alert: Es wurden zu viele Auswahlmöglichkeiten ausgewählt
|
|
138
|
+
success: Fragebogen erfolgreich beantwortet.
|
|
139
|
+
question:
|
|
140
|
+
max_choices: 'Max Auswahlmöglichkeiten: %{n}'
|
|
141
|
+
show:
|
|
142
|
+
answer_questionnaire:
|
|
143
|
+
anonymous_user_message: <a href="%{sign_in_link}">Melden Sie sich mit Ihrem Konto an</a> oder <a href="%{sign_up_link}">Melden Sie sich an</a> , um den Fragebogen zu beantworten.
|
|
144
|
+
title: Beantworten Sie den Fragebogen
|
|
145
|
+
current_step: Schritt %{step}
|
|
146
|
+
of_total_steps: von %{total_steps}
|
|
147
|
+
questionnaire_answered:
|
|
148
|
+
body: Sie haben diesen Fragebogen bereits beantwortet.
|
|
149
|
+
title: Schon beantwortet
|
|
150
|
+
questionnaire_closed:
|
|
151
|
+
body: Der Fragebogen ist geschlossen und kann nicht beantwortet werden.
|
|
152
|
+
title: Fragebogen geschlossen
|
|
153
|
+
questionnaire_for_private_users:
|
|
154
|
+
body: Der Fragebogen ist nur für Privatanwender verfügbar
|
|
155
|
+
title: Fragebogen geschlossen
|
|
156
|
+
questionnaire_js_disabled:
|
|
157
|
+
body: Manche Funktionen des Formulars werden deaktiviert sein. Aktivieren Sie JavaScript in Ihrem Browser für eine bessere Erfahrung.
|
|
158
|
+
title: JavaScript ist deaktiviert
|
|
159
|
+
questionnaire_not_published:
|
|
160
|
+
body: Dieses Formular ist noch nicht veröffentlicht.
|
|
161
|
+
tos_agreement: Mit der Teilnahme stimmen Sie den Nutzungsbedingungen zu
|
|
162
|
+
step_navigation:
|
|
163
|
+
show:
|
|
164
|
+
are_you_sure: Diese Aktion kann nicht rückgängig gemacht werden und Sie können Ihre Antworten nicht bearbeiten. Bist du sicher?
|
|
165
|
+
back: Zurück
|
|
166
|
+
continue: Weiter
|
|
167
|
+
submit: einreichen
|
|
168
|
+
user_answers_serializer:
|
|
169
|
+
body: Antwort
|
|
170
|
+
completion: Abschluss
|
|
171
|
+
created_at: Beantwortet am
|
|
172
|
+
id: ID beantworten
|
|
173
|
+
ip_hash: IP-Hash
|
|
174
|
+
question: Frage
|
|
175
|
+
registered: Registriert
|
|
176
|
+
session_token: Benutzerkennung
|
|
177
|
+
unregistered: Nicht registriert
|
|
178
|
+
user_status: Benutzerstatus
|
data/config/locales/pl.yml
CHANGED
|
@@ -133,19 +133,19 @@ pl:
|
|
|
133
133
|
sorting: Sortowanie
|
|
134
134
|
questionnaires:
|
|
135
135
|
answer:
|
|
136
|
-
invalid: Podczas
|
|
136
|
+
invalid: Podczas wypełniania formularza wystąpiły błędy.
|
|
137
137
|
max_choices_alert: Wybrano zbyt wiele opcji
|
|
138
|
-
success:
|
|
138
|
+
success: Wypełniono formularz.
|
|
139
139
|
question:
|
|
140
140
|
max_choices: 'Maksymalny wybór opcji: %{n}'
|
|
141
141
|
show:
|
|
142
142
|
answer_questionnaire:
|
|
143
|
-
anonymous_user_message: <a href="%{sign_in_link}">Zaloguj się na swoje konto</a> lub <a href="%{sign_up_link}">zarejestruj się</a> aby
|
|
144
|
-
title:
|
|
143
|
+
anonymous_user_message: <a href="%{sign_in_link}">Zaloguj się na swoje konto</a> lub <a href="%{sign_up_link}">zarejestruj się</a> aby wypełnić formularz.
|
|
144
|
+
title: Wypełnij formularz
|
|
145
145
|
current_step: Krok %{step}
|
|
146
146
|
of_total_steps: z %{total_steps}
|
|
147
147
|
questionnaire_answered:
|
|
148
|
-
body: Już
|
|
148
|
+
body: Już wypełniłeś/łaś ten formularz.
|
|
149
149
|
title: Już odpowiedziano
|
|
150
150
|
questionnaire_closed:
|
|
151
151
|
body: Formularz jest zamknięty i nie można udzielić na niego odpowiedzi.
|
data/config/locales/pt.yml
CHANGED
|
@@ -3,15 +3,22 @@ pt:
|
|
|
3
3
|
attributes:
|
|
4
4
|
answer:
|
|
5
5
|
body: Responder
|
|
6
|
+
choices: Escolhas
|
|
7
|
+
selected_choices: Escolhas seleccionadas
|
|
6
8
|
question:
|
|
7
9
|
max_choices: Número máximo de escolhas
|
|
8
10
|
question_type: Tipo
|
|
9
11
|
questionnaire_question:
|
|
10
12
|
mandatory: Obrigatório
|
|
13
|
+
max_characters: Limite de caracteres (deixar 0 se não houver limite)
|
|
11
14
|
errors:
|
|
12
15
|
models:
|
|
13
16
|
answer:
|
|
14
17
|
attributes:
|
|
18
|
+
add_documents:
|
|
19
|
+
needs_to_be_reattached: Precisa de ser reanexado
|
|
20
|
+
body:
|
|
21
|
+
too_long: é demasiado longo
|
|
15
22
|
choices:
|
|
16
23
|
missing: não estão completos
|
|
17
24
|
too_many: são demasiados
|
|
@@ -76,6 +83,7 @@ pt:
|
|
|
76
83
|
collapse: Colapsar todas as questões
|
|
77
84
|
expand: Expandir todas as questões
|
|
78
85
|
preview: Pré-visualizar
|
|
86
|
+
title: Editar formulário para %{questionnaire_for}
|
|
79
87
|
unpublished_warning: O formulário não está publicado. Pode modificar as suas questões, mas essa ação eliminará as respostas atuais.
|
|
80
88
|
matrix_row:
|
|
81
89
|
matrix_row: Linha
|
|
@@ -102,6 +110,7 @@ pt:
|
|
|
102
110
|
up: Acima
|
|
103
111
|
update:
|
|
104
112
|
invalid: Ocorreu um problema ao guardar o questionário.
|
|
113
|
+
success: Formulário guardado com êxito
|
|
105
114
|
errors:
|
|
106
115
|
answer:
|
|
107
116
|
body: O corpo não pode ficar em branco
|
|
@@ -114,6 +123,7 @@ pt:
|
|
|
114
123
|
resize_and_pad: Redimensionada e ajustada para
|
|
115
124
|
resize_to_fit: Redimensionada para caber
|
|
116
125
|
question_types:
|
|
126
|
+
files: Ficheiros
|
|
117
127
|
long_answer: Resposta longa
|
|
118
128
|
matrix_multiple: Matriz (Escolha múltipla)
|
|
119
129
|
matrix_single: Matriz (Escolha única)
|
|
@@ -14,15 +14,14 @@ module Decidim
|
|
|
14
14
|
|
|
15
15
|
# Public: Exports a hash with the serialized data for the user answers.
|
|
16
16
|
def serialize
|
|
17
|
-
@answers.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
answer_translated_attribute_name(:user_status) => answer_translated_attribute_name(answer.decidim_user_id.present? ? "registered" : "unregistered"),
|
|
23
|
-
"#{idx + 1}. #{translated_attribute(answer.question.body)}" => normalize_body(answer)
|
|
24
|
-
)
|
|
17
|
+
answers_hash = hash_for(@answers.first)
|
|
18
|
+
answers_hash.merge!(questions_hash)
|
|
19
|
+
|
|
20
|
+
@answers.each do |answer|
|
|
21
|
+
answers_hash[translated_question_key(answer.question.position, answer.question.body)] = normalize_body(answer)
|
|
25
22
|
end
|
|
23
|
+
|
|
24
|
+
answers_hash
|
|
26
25
|
end
|
|
27
26
|
|
|
28
27
|
private
|
|
@@ -30,6 +29,33 @@ module Decidim
|
|
|
30
29
|
attr_reader :answers
|
|
31
30
|
alias resource answers
|
|
32
31
|
|
|
32
|
+
def hash_for(answer)
|
|
33
|
+
{
|
|
34
|
+
answer_translated_attribute_name(:id) => answer&.session_token,
|
|
35
|
+
answer_translated_attribute_name(:created_at) => answer&.created_at&.to_s(:db),
|
|
36
|
+
answer_translated_attribute_name(:ip_hash) => answer&.ip_hash,
|
|
37
|
+
answer_translated_attribute_name(:user_status) => answer_translated_attribute_name(answer&.decidim_user_id.present? ? "registered" : "unregistered")
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def questions_hash
|
|
42
|
+
return {} if questionnaire&.questions.blank?
|
|
43
|
+
|
|
44
|
+
questionnaire.questions.each.inject({}) do |serialized, question|
|
|
45
|
+
serialized.update(
|
|
46
|
+
translated_question_key(question.position, question.body) => ""
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def questionnaire
|
|
52
|
+
@answers.first&.questionnaire
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def translated_question_key(idx, body)
|
|
56
|
+
"#{idx + 1}. #{translated_attribute(body)}"
|
|
57
|
+
end
|
|
58
|
+
|
|
33
59
|
def normalize_body(answer)
|
|
34
60
|
answer.body ||
|
|
35
61
|
normalize_attachments(answer) ||
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-forms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.25.0
|
|
4
|
+
version: 0.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josep Jaume Rey Peroy
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2021-
|
|
14
|
+
date: 2021-10-07 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: decidim-core
|
|
@@ -19,14 +19,14 @@ dependencies:
|
|
|
19
19
|
requirements:
|
|
20
20
|
- - '='
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 0.25.0
|
|
22
|
+
version: 0.25.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
27
|
- - '='
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.25.0
|
|
29
|
+
version: 0.25.0
|
|
30
30
|
- !ruby/object:Gem::Dependency
|
|
31
31
|
name: wicked_pdf
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -61,28 +61,28 @@ dependencies:
|
|
|
61
61
|
requirements:
|
|
62
62
|
- - '='
|
|
63
63
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: 0.25.0
|
|
64
|
+
version: 0.25.0
|
|
65
65
|
type: :development
|
|
66
66
|
prerelease: false
|
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
|
69
69
|
- - '='
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: 0.25.0
|
|
71
|
+
version: 0.25.0
|
|
72
72
|
- !ruby/object:Gem::Dependency
|
|
73
73
|
name: decidim-dev
|
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
|
75
75
|
requirements:
|
|
76
76
|
- - '='
|
|
77
77
|
- !ruby/object:Gem::Version
|
|
78
|
-
version: 0.25.0
|
|
78
|
+
version: 0.25.0
|
|
79
79
|
type: :development
|
|
80
80
|
prerelease: false
|
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
|
82
82
|
requirements:
|
|
83
83
|
- - '='
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: 0.25.0
|
|
85
|
+
version: 0.25.0
|
|
86
86
|
description: A forms gem for decidim.
|
|
87
87
|
email:
|
|
88
88
|
- josepjaume@gmail.com
|
|
@@ -225,6 +225,7 @@ files:
|
|
|
225
225
|
- config/locales/ko-KR.yml
|
|
226
226
|
- config/locales/ko.yml
|
|
227
227
|
- config/locales/lb-LU.yml
|
|
228
|
+
- config/locales/lb.yml
|
|
228
229
|
- config/locales/lt-LT.yml
|
|
229
230
|
- config/locales/lt.yml
|
|
230
231
|
- config/locales/lv.yml
|
|
@@ -304,9 +305,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
304
305
|
version: '2.7'
|
|
305
306
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
307
|
requirements:
|
|
307
|
-
- - "
|
|
308
|
+
- - ">="
|
|
308
309
|
- !ruby/object:Gem::Version
|
|
309
|
-
version:
|
|
310
|
+
version: '0'
|
|
310
311
|
requirements: []
|
|
311
312
|
rubygems_version: 3.1.2
|
|
312
313
|
signing_key:
|