decidim-forms 0.16.0 → 0.16.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddc9adf1fa3236f89e1a63a9f08ec53daa5c9dca46be2de0ed5855334d9dc81a
4
- data.tar.gz: 86eb4e54e761e29f03ba5d859bc7303bbaf9770c9f12bb6dda991bfd986e537a
3
+ metadata.gz: dfc852138be38454c86dc60667c513505d19a01916bc30fcd797acf1e1b45fbe
4
+ data.tar.gz: b960749e226aa14299f9151a76e0264f615891f3eb6d8c937097d82e8240d45d
5
5
  SHA512:
6
- metadata.gz: 19cd51ee2b4d5db3bf9857551e840e9a1f5fbfcc839f89e9c6fbbab3af2342d314f7c11baa2da05b8429e58d1cc2e1fb4bcb9ec4ba8e4c7a773a7918064ee1d7
7
- data.tar.gz: c8da685c765fff9c6d7757a25efc573b3bed4bdb2d441f2c63cd7648224f5560729e6e42a2943740b7cd374689e851a2c0a6b5a613b660c6c9d621ba13c51d7c
6
+ metadata.gz: 25efb8c847f1e661b53f39fd929eb0d14cb18cd6cacfb4b25ac27c7bba51ff5a7c2b6f1a4dc112f1d4e86564540bb8c666b806c9e50a1eaf14b9278291530f0d
7
+ data.tar.gz: 97c68527f8943eb0de125f385ea0db758a23b2fadcff3ade3b723c763609f41de90fd5b59f019ca7287ea3a5a012487e30bc790f8477035d8cc988b0950e0f2a
@@ -0,0 +1,62 @@
1
+ ar:
2
+ activemodel:
3
+ attributes:
4
+ answer:
5
+ body: إجابة
6
+ question:
7
+ max_choices: أقصى عدد من الخيارات
8
+ question_type: نوع
9
+ questionnaire_question:
10
+ mandatory: إلزامي
11
+ errors:
12
+ models:
13
+ answer:
14
+ attributes:
15
+ choices:
16
+ missing: ليست كاملة
17
+ too_many: كثير جدا
18
+ decidim:
19
+ forms:
20
+ admin:
21
+ models:
22
+ components:
23
+ description: وصف
24
+ tos: شروط الخدمة
25
+ questionnaires:
26
+ answer_option:
27
+ answer_option: خيار الإجابة
28
+ free_text: نص حر
29
+ remove: إزالة
30
+ statement: بيان
31
+ edit:
32
+ save: حفظ
33
+ title: عنوان
34
+ form:
35
+ add_question: أضف سؤال
36
+ question:
37
+ add_answer_option: إضافة خيار الإجابة
38
+ any: أي
39
+ description: وصف
40
+ down: أسفل
41
+ question: سؤال
42
+ remove: إزالة
43
+ statement: بيان
44
+ up: فوق
45
+ errors:
46
+ answer:
47
+ body: لا يمكن أن يكون الجسم فارغًا
48
+ question_types:
49
+ long_answer: اجابة طويلة
50
+ multiple_option: خيار متعدد
51
+ short_answer: اجابة قصيرة
52
+ single_option: خيار واحد
53
+ sorting: فرز
54
+ questionnaires:
55
+ question:
56
+ max_choices: 'خيارات ماكس: %{n}'
57
+ show:
58
+ are_you_sure: لا يمكن التراجع عن هذا الإجراء ولن تتمكن من تعديل إجاباتك. هل أنت واثق؟
59
+ questionnaire_answered:
60
+ title: تمت الاجابة مسبقا
61
+ submit: خضع
62
+ tos_agreement: من خلال المشاركة ، فإنك تقبل شروط الخدمة
@@ -0,0 +1,79 @@
1
+ cs:
2
+ activemodel:
3
+ attributes:
4
+ answer:
5
+ body: Odpovědět
6
+ question:
7
+ max_choices: Maximální počet možností
8
+ question_type: Typ
9
+ questionnaire_question:
10
+ mandatory: Povinné
11
+ errors:
12
+ models:
13
+ answer:
14
+ attributes:
15
+ choices:
16
+ missing: nejsou úplné
17
+ too_many: jsou příliš mnoho
18
+ decidim:
19
+ forms:
20
+ admin:
21
+ models:
22
+ components:
23
+ description: Popis
24
+ tos: Podmínky služby
25
+ questionnaires:
26
+ answer_option:
27
+ answer_option: Možnost odpovědi
28
+ free_text: Volný text
29
+ remove: Odstranit
30
+ statement: Prohlášení
31
+ edit:
32
+ save: Uložit
33
+ title: Titul
34
+ form:
35
+ add_question: Přidat otázku
36
+ already_answered_warning: Dotazník již odpověděli někteří uživatelé, takže nemusíte upravovat své dotazy.
37
+ question:
38
+ add_answer_option: Přidat možnost odpovědi
39
+ any: Žádný
40
+ description: Popis
41
+ down: Dolů
42
+ question: Otázka
43
+ remove: Odstranit
44
+ statement: Prohlášení
45
+ up: Nahoru
46
+ update:
47
+ invalid: Při ukládání dotazníku došlo k chybám.
48
+ success: Dotazníky byly úspěšně uloženy.
49
+ errors:
50
+ answer:
51
+ body: Tělo nemůže být prázdné
52
+ question_types:
53
+ long_answer: Dlouhá odpověď
54
+ multiple_option: Více možností
55
+ short_answer: Stručná odpověď
56
+ single_option: Jedna možnost
57
+ sorting: Třídění
58
+ questionnaires:
59
+ answer:
60
+ invalid: Při odpovědi na dotazník došlo k chybám.
61
+ success: Dotazník úspěšně odpověděl.
62
+ question:
63
+ max_choices: 'Max možnosti: %{n}'
64
+ show:
65
+ answer_questionnaire:
66
+ anonymous_user_message: <a href="%{sign_in_link}">Přihlaste se svým účtem</a> nebo <a href="%{sign_up_link}">zaregistrujte</a> abyste odpověděli na dotazník.
67
+ title: Odpovězte na dotazník
68
+ are_you_sure: Tato akce nemůže být odvolána a vaše odpovědi nebudete moci upravovat. Jsi si jistá?
69
+ questionnaire_answered:
70
+ body: Již jste odpověděli na tento dotazník.
71
+ title: Již jste odpověděli
72
+ questionnaire_closed:
73
+ body: Dotazník je uzavřen a nelze jej zodpovědět.
74
+ title: Dotazník byl uzavřen
75
+ questionnaire_for_private_users:
76
+ body: Dotazník je k dispozici pouze pro soukromé uživatele
77
+ title: Dotazník byl uzavřen
78
+ submit: Předložit
79
+ tos_agreement: Účastí přijímáte jeho smluvní podmínky
@@ -0,0 +1,79 @@
1
+ es-MX:
2
+ activemodel:
3
+ attributes:
4
+ answer:
5
+ body: Responder
6
+ question:
7
+ max_choices: Número máximo de opciones
8
+ question_type: Tipo
9
+ questionnaire_question:
10
+ mandatory: Obligatorio
11
+ errors:
12
+ models:
13
+ answer:
14
+ attributes:
15
+ choices:
16
+ missing: no están completos
17
+ too_many: son demasiados
18
+ decidim:
19
+ forms:
20
+ admin:
21
+ models:
22
+ components:
23
+ description: Descripción
24
+ tos: Términos y condiciones de uso
25
+ questionnaires:
26
+ answer_option:
27
+ answer_option: Opción de respuesta
28
+ free_text: Texto libre
29
+ remove: Retirar
30
+ statement: Declaración
31
+ edit:
32
+ save: Guardar
33
+ title: Título
34
+ form:
35
+ add_question: Añadir pregunta
36
+ already_answered_warning: Algunos usuarios ya han respondido al cuestionario, por lo que no puedes modificar las preguntas.
37
+ question:
38
+ add_answer_option: Añadir opción de respuesta
39
+ any: Alguna
40
+ description: Descripción
41
+ down: Abajo
42
+ question: Pregunta
43
+ remove: Borrar
44
+ statement: Declaración
45
+ up: Arriba
46
+ update:
47
+ invalid: Ha habido errores al guardar el cuestionario.
48
+ success: Cuestionarios guardados con éxito.
49
+ errors:
50
+ answer:
51
+ body: El campo no puede estar en blanco
52
+ question_types:
53
+ long_answer: Respuesta larga
54
+ multiple_option: Opción múltiple
55
+ short_answer: Respuesta corta
56
+ single_option: Opción única
57
+ sorting: Ordenación
58
+ questionnaires:
59
+ answer:
60
+ invalid: Ha habido errores al responder al cuestionario.
61
+ success: Has respondido al cuestionario con éxito.
62
+ question:
63
+ max_choices: 'Opciones máximas: %{n}'
64
+ show:
65
+ answer_questionnaire:
66
+ anonymous_user_message: <a href="%{sign_in_link}">Inicia sesión con tu cuenta</a> o <a href="%{sign_up_link}">regístrese</a> para responder al cuestionario.
67
+ title: Responde al cuestionario
68
+ are_you_sure: Esta acción no se puede deshacer y no podrás editar tus respuestas. ¿Estás seguro?
69
+ questionnaire_answered:
70
+ body: Ya has respondido este cuestionario.
71
+ title: Ya has respondido
72
+ questionnaire_closed:
73
+ body: El cuestionario está cerrado y ya no puedes responder.
74
+ title: Cuestionario cerrado
75
+ questionnaire_for_private_users:
76
+ body: El cuestionario está disponible solo para usuarios privados
77
+ title: Cuestionario cerrado
78
+ submit: Enviar
79
+ tos_agreement: Al responder aceptas los Términos y condiciones de uso
@@ -1 +1,62 @@
1
1
  id:
2
+ activemodel:
3
+ attributes:
4
+ answer:
5
+ body: Menjawab
6
+ question:
7
+ max_choices: Jumlah pilihan maksimum
8
+ question_type: Mengetik
9
+ questionnaire_question:
10
+ mandatory: Wajib
11
+ errors:
12
+ models:
13
+ answer:
14
+ attributes:
15
+ choices:
16
+ missing: tidak lengkap
17
+ too_many: terlalu banyak
18
+ decidim:
19
+ forms:
20
+ admin:
21
+ models:
22
+ components:
23
+ description: Deskripsi
24
+ tos: Ketentuan layanan
25
+ questionnaires:
26
+ answer_option:
27
+ answer_option: Opsi jawaban
28
+ free_text: Teks gratis
29
+ remove: Menghapus
30
+ statement: Pernyataan
31
+ edit:
32
+ save: Menyimpan
33
+ title: Judul
34
+ form:
35
+ add_question: Tambahkan pertanyaan
36
+ question:
37
+ add_answer_option: Tambahkan opsi jawaban
38
+ any: Apa saja
39
+ description: Deskripsi
40
+ down: Turun
41
+ question: Pertanyaan
42
+ remove: Menghapus
43
+ statement: Pernyataan
44
+ up: Naik
45
+ errors:
46
+ answer:
47
+ body: Tubuh tidak boleh kosong
48
+ question_types:
49
+ long_answer: Jawaban panjang
50
+ multiple_option: Opsi berganda
51
+ short_answer: Jawaban singkat
52
+ single_option: Opsi tunggal
53
+ sorting: Penyortiran
54
+ questionnaires:
55
+ question:
56
+ max_choices: 'Pilihan maksimal: %{n}'
57
+ show:
58
+ are_you_sure: Tindakan ini tidak dapat diurungkan dan Anda tidak akan dapat mengedit jawaban Anda. Apakah kamu yakin
59
+ questionnaire_answered:
60
+ title: Sudah dijawab
61
+ submit: Menyerahkan
62
+ tos_agreement: Dengan berpartisipasi Anda menerima Ketentuan Layanannya
@@ -1 +1,79 @@
1
1
  tr:
2
+ activemodel:
3
+ attributes:
4
+ answer:
5
+ body: Cevap
6
+ question:
7
+ max_choices: Maksimum seçenek sayısı
8
+ question_type: tip
9
+ questionnaire_question:
10
+ mandatory: Zorunlu
11
+ errors:
12
+ models:
13
+ answer:
14
+ attributes:
15
+ choices:
16
+ missing: tamamlanmadı
17
+ too_many: çok fazla
18
+ decidim:
19
+ forms:
20
+ admin:
21
+ models:
22
+ components:
23
+ description: Açıklama
24
+ tos: Kullanım Şartları
25
+ questionnaires:
26
+ answer_option:
27
+ answer_option: Cevap seçeneği
28
+ free_text: Ücretsiz Metin
29
+ remove: Kaldır
30
+ statement: Beyan
31
+ edit:
32
+ save: Kayıt etmek
33
+ title: Başlık
34
+ form:
35
+ add_question: Soru ekle
36
+ already_answered_warning: Anket bazı kullanıcılar tarafından zaten yanıtlanmıştır, bu nedenden dolayı sorularını değiştiremezsiniz.
37
+ question:
38
+ add_answer_option: Cevap seçeneği ekle
39
+ any: herhangi
40
+ description: Açıklama
41
+ down: Aşağı
42
+ question: Soru
43
+ remove: Kaldır
44
+ statement: Beyan
45
+ up: yukarı
46
+ update:
47
+ invalid: Anketi kaydederken hatalar oluştu.
48
+ success: Ayarlar başarıyla kaydedildi
49
+ errors:
50
+ answer:
51
+ body: Vücut boş olamaz
52
+ question_types:
53
+ long_answer: Uzun cevap
54
+ multiple_option: Çoklu seçenek
55
+ short_answer: Kısa cevap
56
+ single_option: Tek seçenek
57
+ sorting: sınıflandırma
58
+ questionnaires:
59
+ answer:
60
+ invalid: Anketi cevaplarken hatalar oldu.
61
+ success: Anket başarıyla cevaplandı.
62
+ question:
63
+ max_choices: 'Maksimum seçenek: %{n}'
64
+ show:
65
+ answer_questionnaire:
66
+ anonymous_user_message: Anketi cevaplamak için <a href="%{sign_in_link}">Hesabınızla giriş yapın</a>yada<a href="%{sign_up_link}">Kaydol</a>
67
+ title: Anketi cevapla
68
+ are_you_sure: Bu işlem geri alınamaz ve cevaplarınızı düzenleyemezsiniz. Emin misiniz?
69
+ questionnaire_answered:
70
+ body: Bu anketi zaten cevapladınız.
71
+ title: Zaten cevaplandı
72
+ questionnaire_closed:
73
+ body: Anket kapandığı için cevaplayamazsınız.
74
+ title: Anket kapatıldı
75
+ questionnaire_for_private_users:
76
+ body: Anket sadece özel kullanıcılar için kullanılabilir.
77
+ title: Anket kapatıldı
78
+ submit: Gönder
79
+ tos_agreement: Katılarak Hizmet Şartlarını kabul etmiş olursunuz.
@@ -22,7 +22,13 @@ module Decidim
22
22
  private
23
23
 
24
24
  def normalize_body(answer)
25
- answer.body || answer.choices.pluck(:body)
25
+ answer.body || normalize_choices(answer.choices)
26
+ end
27
+
28
+ def normalize_choices(choices)
29
+ choices.map do |choice|
30
+ choice.try(:custom_body) || choice.try(:body)
31
+ end
26
32
  end
27
33
  end
28
34
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-forms version.
5
5
  module Forms
6
6
  def self.version
7
- "0.16.0"
7
+ "0.16.1"
8
8
  end
9
9
  end
10
10
  end
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.16.0
4
+ version: 0.16.1
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: 2019-01-09 00:00:00.000000000 Z
14
+ date: 2019-03-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: decidim-core
@@ -19,42 +19,42 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.16.0
22
+ version: 0.16.1
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.16.0
29
+ version: 0.16.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: decidim-admin
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 0.16.0
36
+ version: 0.16.1
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 0.16.0
43
+ version: 0.16.1
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: decidim-dev
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - '='
49
49
  - !ruby/object:Gem::Version
50
- version: 0.16.0
50
+ version: 0.16.1
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - '='
56
56
  - !ruby/object:Gem::Version
57
- version: 0.16.0
57
+ version: 0.16.1
58
58
  description: A forms gem for decidim.
59
59
  email:
60
60
  - josepjaume@gmail.com
@@ -101,9 +101,12 @@ files:
101
101
  - app/views/decidim/forms/admin/questionnaires/edit.html.erb
102
102
  - app/views/decidim/forms/questionnaires/_answer.html.erb
103
103
  - app/views/decidim/forms/questionnaires/show.html.erb
104
+ - config/locales/ar-SA.yml
104
105
  - config/locales/ca.yml
106
+ - config/locales/cs-CZ.yml
105
107
  - config/locales/de.yml
106
108
  - config/locales/en.yml
109
+ - config/locales/es-MX.yml
107
110
  - config/locales/es-PY.yml
108
111
  - config/locales/es.yml
109
112
  - config/locales/eu.yml