decidim-surveys 0.27.8 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/cells/decidim/surveys/survey_activity_cell.rb +1 -4
  4. data/app/controllers/decidim/surveys/admin/surveys_controller.rb +7 -1
  5. data/app/controllers/decidim/surveys/surveys_controller.rb +3 -1
  6. data/app/helpers/decidim/surveys/survey_helper.rb +1 -3
  7. data/app/jobs/decidim/surveys/clean_survey_answers_job.rb +1 -1
  8. data/app/jobs/decidim/surveys/settings_change_job.rb +2 -2
  9. data/app/mailers/decidim/surveys/survey_confirmation_mailer.rb +39 -0
  10. data/app/serializers/decidim/surveys/data_serializer.rb +1 -1
  11. data/app/views/decidim/surveys/admin/component/_actions.html.erb +17 -16
  12. data/app/views/decidim/surveys/admin/surveys/edit.html.erb +40 -0
  13. data/app/views/decidim/surveys/survey_confirmation_mailer/confirmation.html.erb +3 -0
  14. data/app/views/decidim/surveys/surveys/no_permission.html.erb +1 -1
  15. data/config/assets.rb +0 -1
  16. data/config/locales/ar.yml +0 -2
  17. data/config/locales/bg.yml +1 -62
  18. data/config/locales/ca.yml +9 -4
  19. data/config/locales/cs.yml +7 -2
  20. data/config/locales/de.yml +7 -2
  21. data/config/locales/el.yml +2 -2
  22. data/config/locales/en.yml +7 -2
  23. data/config/locales/es-MX.yml +7 -2
  24. data/config/locales/es-PY.yml +7 -2
  25. data/config/locales/es.yml +9 -4
  26. data/config/locales/eu.yml +7 -2
  27. data/config/locales/fi-plain.yml +7 -2
  28. data/config/locales/fi.yml +7 -2
  29. data/config/locales/fr-CA.yml +5 -2
  30. data/config/locales/fr.yml +7 -2
  31. data/config/locales/gl.yml +0 -3
  32. data/config/locales/hu.yml +0 -3
  33. data/config/locales/id-ID.yml +0 -2
  34. data/config/locales/it.yml +0 -3
  35. data/config/locales/ja.yml +2 -5
  36. data/config/locales/lb.yml +0 -3
  37. data/config/locales/lt.yml +2 -2
  38. data/config/locales/lv.yml +0 -3
  39. data/config/locales/nl.yml +0 -3
  40. data/config/locales/no.yml +0 -3
  41. data/config/locales/pl.yml +1 -8
  42. data/config/locales/pt-BR.yml +0 -7
  43. data/config/locales/pt.yml +0 -3
  44. data/config/locales/ro-RO.yml +2 -2
  45. data/config/locales/sk.yml +0 -3
  46. data/config/locales/sv.yml +0 -3
  47. data/config/locales/tr-TR.yml +0 -3
  48. data/config/locales/zh-CN.yml +0 -3
  49. data/config/locales/zh-TW.yml +2 -2
  50. data/db/migrate/20200609090533_check_legacy_tables.rb +5 -5
  51. data/lib/decidim/surveys/admin_engine.rb +1 -1
  52. data/lib/decidim/surveys/component.rb +6 -89
  53. data/lib/decidim/surveys/engine.rb +20 -1
  54. data/lib/decidim/surveys/seeds.rb +103 -0
  55. data/lib/decidim/surveys/test/factories.rb +5 -10
  56. data/lib/decidim/surveys/version.rb +1 -1
  57. data/lib/tasks/decidim_surveys_tasks.rake +4 -4
  58. metadata +35 -29
  59. data/app/packs/stylesheets/decidim/surveys/_surveys.scss +0 -67
  60. data/config/locales/he-IL.yml +0 -1
  61. data/decidim-surveys.gemspec +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 681036a925a6e0dccf6ae195a948341db0d1386d5039b744be3d485675a9c6a7
4
- data.tar.gz: b98e8f1c6f2d845892853d17f45dfca30793123f48667e27c3a82500d6d47ba6
3
+ metadata.gz: 7874e24e08c90cf8af0ec1aca5a00f267f096ad120499535d96b69e7802b46db
4
+ data.tar.gz: c1eca241078860c82e7ed73c79c1af7daeb89026faf448a80a51e5b1f312ca8f
5
5
  SHA512:
6
- metadata.gz: a9cf96c1c29855f381c9c894db10a4a1fc5f0dd5d116baf332148b7ad7d3c09612f269fa8ccd7032e4ba3f7ab45156b6451759adbc4a19539bd1fa65dab68372
7
- data.tar.gz: 0a4f302edb68c76b9d42546d9a47f8afac57128fd20856de918a2ce710752a337f96031742c5911c879fe26f079b8d0947d14051aaa7be530d87917aee16f379
6
+ metadata.gz: f032b64acb18f6c34a25ca8a26b639ee7cd180da8a0bc7cc82ca4d8d6ae6d1400cf7a1b37033768e641509dd74e502818dbc2928bbee823cbab224d7f99f1268
7
+ data.tar.gz: 50f2739293a75989c5a33d404b466a5bb356916c91146deca381d5adf91fde45d12f01bcef73975042f517393f31bf4491fa6310ca6cddcaae562110357457d2
data/README.md CHANGED
@@ -14,7 +14,7 @@ Surveys will be available as a Component for a Participatory Process.
14
14
 
15
15
  ## Installation
16
16
 
17
- This is on the default Decidim installation so you shouldn't change anything to use this component.
17
+ This is on the default Decidim installation so you should not change anything to use this component.
18
18
 
19
19
  ## Screenshots
20
20
 
@@ -7,10 +7,7 @@ module Decidim
7
7
  include Decidim::ComponentPathHelper
8
8
 
9
9
  def title
10
- I18n.t(
11
- "decidim.surveys.last_activity.new_survey_at_html",
12
- link: participatory_space_link
13
- )
10
+ I18n.t("decidim.surveys.last_activity.new_survey")
14
11
  end
15
12
 
16
13
  def activity_link_path
@@ -8,6 +8,12 @@ module Decidim
8
8
  include Decidim::Forms::Admin::Concerns::HasQuestionnaire
9
9
  include Decidim::Forms::Admin::Concerns::HasQuestionnaireAnswers
10
10
 
11
+ def edit
12
+ enforce_permission_to(:update, :questionnaire, questionnaire:)
13
+
14
+ @form = form(Decidim::Forms::Admin::QuestionnaireForm).from_model(questionnaire)
15
+ end
16
+
11
17
  def questionnaire_for
12
18
  survey
13
19
  end
@@ -19,7 +25,7 @@ module Decidim
19
25
 
20
26
  # Specify where to redirect after exporting a user response
21
27
  def questionnaire_participant_answers_url(session_token)
22
- Decidim::EngineRouter.admin_proxy(survey.component).show_survey_path(session_token: session_token)
28
+ Decidim::EngineRouter.admin_proxy(survey.component).show_survey_path(session_token:)
23
29
  end
24
30
 
25
31
  def edit_questionnaire_title
@@ -6,7 +6,9 @@ module Decidim
6
6
  class SurveysController < Decidim::Surveys::ApplicationController
7
7
  include Decidim::Forms::Concerns::HasQuestionnaire
8
8
  include Decidim::ComponentPathHelper
9
- helper Decidim::Surveys::SurveyHelper
9
+ include Decidim::Surveys::SurveyHelper
10
+
11
+ helper_method :authorizations
10
12
 
11
13
  delegate :allow_unregistered?, to: :current_settings
12
14
 
@@ -4,9 +4,7 @@ module Decidim
4
4
  module Surveys
5
5
  module SurveyHelper
6
6
  def no_permission
7
- render(
8
- partial: "decidim/authorization_modals/content"
9
- )
7
+ cell "decidim/authorization_modal", authorizations
10
8
  end
11
9
 
12
10
  def resource
@@ -7,7 +7,7 @@ module Decidim
7
7
  @component = data[:resource]
8
8
  return unless component&.manifest_name == "surveys"
9
9
 
10
- @survey = Survey.find_by(component: component)
10
+ @survey = Survey.find_by(component:)
11
11
  return unless survey&.questionnaire
12
12
 
13
13
  case data[:event_class]
@@ -19,8 +19,8 @@ module Decidim
19
19
  return unless event && event_class
20
20
 
21
21
  Decidim::EventsManager.publish(
22
- event: event,
23
- event_class: event_class,
22
+ event:,
23
+ event_class:,
24
24
  resource: component,
25
25
  followers: component.participatory_space.followers
26
26
  )
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Surveys
5
+ class SurveyConfirmationMailer < ApplicationMailer
6
+ include TranslatableAttributes
7
+ helper Decidim::SanitizeHelper
8
+
9
+ def confirmation(user, questionnaire, answers)
10
+ return if answers.blank? || user.nil?
11
+
12
+ with_user(user) do
13
+ @user = user
14
+ @questionnaire_title = translated_attribute(questionnaire.title)
15
+ @participatory_space_title = translated_attribute(questionnaire.questionnaire_for.component.participatory_space.title)
16
+ @organization = user.organization
17
+
18
+ add_file_with_answers(answers)
19
+
20
+ mail(to: "#{@user.name} <#{@user.email}>", subject: t(".subject", questionnaire_title: @questionnaire_title))
21
+ end
22
+ end
23
+
24
+ private
25
+
26
+ def add_file_with_answers(answers)
27
+ export_name = t("decidim.surveys.survey_confirmation_mailer.export_name")
28
+ serializer = Decidim::Forms::UserAnswersSerializer
29
+
30
+ export_data = Decidim::Exporters::FormPDF.new(answers, serializer).export
31
+
32
+ filename = export_data.filename(export_name)
33
+ filename_without_extension = export_data.filename(export_name, extension: false)
34
+
35
+ attachments["#{filename_without_extension}.zip"] = FileZipper.new(filename, export_data.read).zip
36
+ end
37
+ end
38
+ end
39
+ end
@@ -10,7 +10,7 @@ module Decidim
10
10
  # or nil if none exists.
11
11
  def serialize
12
12
  component = resource
13
- surveys = Decidim::Surveys::Survey.where(component: component)
13
+ surveys = Decidim::Surveys::Survey.where(component:)
14
14
  surveys.collect do |survey|
15
15
  next if survey.questionnaire.nil?
16
16
 
@@ -1,43 +1,44 @@
1
1
  <% if component.manifest.admin_engine %>
2
- <%= icon_link_to "pencil", manage_component_path(component), t("actions.manage", scope: "decidim.admin"), class: "action-icon--manage" %>
2
+ <%= icon_link_to "pencil-line", manage_component_path(component), t("actions.manage", scope: "decidim.admin"), class: "action-icon--manage" %>
3
3
  <% else %>
4
4
  <span class="action-space icon"></span>
5
5
  <% end %>
6
6
 
7
- <% if allowed_to?(:update, :component, component: component) %>
8
- <% if component.published? %>
9
- <%= icon_link_to "x", url_for(action: :unpublish, id: component, controller: "components"), t("actions.unpublish", scope: "decidim.admin"), class: "action-icon--unpublish", method: :put %>
10
- <% else %>
11
- <%= icon_link_to "check", url_for(action: :publish, id: component, controller: "components"), t("actions.publish", scope: "decidim.admin"), class: "action-icon--publish", method: :put, data: { confirm: t(".answers_alert") } %>
12
- <% end %>
7
+ <% if allowed_to? :share, :component, component: component %>
8
+ <%= icon_link_to "share-line", url_for(action: :share, id: component, controller: "components"), t("actions.share", scope: "decidim.admin"), target: :blank, class: "action-icon--share" %>
13
9
  <% else %>
14
10
  <span class="action-space icon"></span>
15
11
  <% end %>
16
-
17
12
  <% if allowed_to? :update, :component, component: component %>
18
- <%= icon_link_to "cog", url_for(action: :edit, id: component, controller: "components"), t("actions.configure", scope: "decidim.admin"), class: "action-icon--configure" %>
13
+ <%= icon_link_to "settings-4-line", url_for(action: :edit, id: component, controller: "components"), t("actions.configure", scope: "decidim.admin"), class: "action-icon--configure" %>
19
14
  <% else %>
20
15
  <span class="action-space icon"></span>
21
16
  <% end %>
22
17
 
23
- <% if allowed_to? :update, :component, component: component %>
24
- <% if component.manifest.actions.empty? %>
25
- <%= icon "key", class: "action-icon action-icon--disabled" %>
18
+ <% if allowed_to?(:update, :component, component: component) %>
19
+ <% if component.published? %>
20
+ <%= icon_link_to "close-circle-line", url_for(action: :unpublish, id: component, controller: "components"), t("actions.unpublish", scope: "decidim.admin"), class: "action-icon--unpublish", method: :put %>
26
21
  <% else %>
27
- <%= icon_link_to "key", url_for(action: :edit, component_id: component, controller: "component_permissions"), t("actions.permissions", scope: "decidim.admin"), class: "action-icon--permissions" %>
22
+ <%= icon_link_to "check-line", url_for(action: :publish, id: component, controller: "components"), t("actions.publish", scope: "decidim.admin"), class: "action-icon--publish", method: :put, data: { confirm: t(".answers_alert") } %>
28
23
  <% end %>
29
24
  <% else %>
30
25
  <span class="action-space icon"></span>
31
26
  <% end %>
32
27
 
33
- <% if allowed_to? :share, :component, component: component %>
34
- <%= icon_link_to "share", url_for(action: :share, id: component, controller: "components"), t("actions.share", scope: "decidim.admin"), class: "action-icon--share", target: "_blank" %>
28
+ <%= icon_link_to "eye-line", main_component_path(component), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: :blank, data: { "external-link": false } %>
29
+
30
+ <% if allowed_to? :update, :component, component: component %>
31
+ <% if component.manifest.actions.empty? %>
32
+ <%= icon "key-2-line", class: "action-icon action-icon--disabled" %>
33
+ <% else %>
34
+ <%= icon_link_to "key-2-line", url_for(action: :edit, component_id: component, controller: "component_permissions"), t("actions.permissions", scope: "decidim.admin"), class: "action-icon--permissions" %>
35
+ <% end %>
35
36
  <% else %>
36
37
  <span class="action-space icon"></span>
37
38
  <% end %>
38
39
 
39
40
  <% if allowed_to? :destroy, :component, component: component %>
40
- <%= icon_link_to "circle-x", url_for(action: :destroy, id: component, controller: "components"), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete %>
41
+ <%= icon_link_to "delete-bin-line", url_for(action: :destroy, id: component, controller: "components"), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete %>
41
42
  <% else %>
42
43
  <span class="action-space icon"></span>
43
44
  <% end %>
@@ -0,0 +1,40 @@
1
+ <% add_decidim_page_title(t("decidim.forms.admin.questionnaires.edit.title")) %>
2
+
3
+ <% if templates_defined? && choose_template? %>
4
+ <%= render partial: "decidim/templates/admin/questionnaire_templates/choose", locals: { target: questionnaire, form_title: t("decidim.forms.admin.questionnaires.edit.title") } %>
5
+ <% else %>
6
+
7
+ <div class="item_show__header">
8
+ <h2 class="item_show__header-title">
9
+ <%= edit_questionnaire_title %>
10
+
11
+ <% if allowed_to? :preview, :questionnaire %>
12
+ <%= link_to t("preview", scope: "decidim.forms.admin.questionnaires.form"), public_url, class: "button button__sm button__secondary", target: :_blank, data: { "external-link": false } %>
13
+ <% end %>
14
+ <% if questionnaire.answers.any? %>
15
+ <%= export_dropdown(current_component, questionnaire.id) if allowed_to? :export_answers, :questionnaire %>
16
+ <% if allowed_to? :show, :questionnaire_answers %>
17
+ <%= link_to t("actions.show", scope: "decidim.forms.admin.questionnaires"), questionnaire_participants_url, class: "button button__sm button__secondary new whitespace-nowrap" %>
18
+ <% end %>
19
+ <% else %>
20
+ <button class="button button__sm button__secondary whitespace-nowrap" disabled><%= t("empty", scope: "decidim.forms.admin.questionnaires.answers") %></button>
21
+ <% end %>
22
+ <%= render partial: "decidim/admin/components/resource_action" %>
23
+
24
+ </h2>
25
+ </div>
26
+
27
+ <div class="item__edit item__edit-1col">
28
+ <div class="item__edit-form">
29
+ <%= decidim_form_for(@form, url: update_url, method: :put, html: { class: "form-defaults form edit_questionnaire" }) do |form| %>
30
+ <%= render partial: "decidim/forms/admin/questionnaires/form", object: form %>
31
+ <div class="item__edit-sticky">
32
+ <div class="item__edit-sticky-container">
33
+ <%= form.submit t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary" %>
34
+ </div>
35
+ </div>
36
+ <% end %>
37
+ </div>
38
+ </div>
39
+
40
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <p class="confimation-survey-answers">
2
+ <%= t(".body", questionnaire_title: @questionnaire_title, participatory_space: @participatory_space_title) %>
3
+ </p>
@@ -2,7 +2,7 @@
2
2
  <div class="columns large-6 medium-centered">
3
3
  <div class="card">
4
4
  <div class="card__content">
5
- <%= render partial: "decidim/authorization_modals/content" %>
5
+ <%= cell "decidim/authorization_modal", authorizations %>
6
6
  </div>
7
7
  </div>
8
8
  </div>
data/config/assets.rb CHANGED
@@ -3,4 +3,3 @@
3
3
  base_path = File.expand_path("..", __dir__)
4
4
 
5
5
  Decidim::Webpacker.register_path("#{base_path}/app/packs")
6
- Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/surveys/surveys")
@@ -58,8 +58,6 @@ ar:
58
58
  update:
59
59
  invalid: كانت هناك مشكلة في إنقاذ المسح.
60
60
  success: تم حفظ الاستطلاع بنجاح.
61
- last_activity:
62
- new_survey_at_html: "<span>استطلاع جديد في %{link}</span>"
63
61
  surveys:
64
62
  answer:
65
63
  invalid: كانت هناك مشكلة في الإجابة على الاستبيان.
@@ -2,71 +2,10 @@
2
2
  bg:
3
3
  activemodel:
4
4
  models:
5
- decidim/surveys/closed_survey_event: Анкетата приключи
5
+ decidim/surveys/closed_survey_event: Анкетата завърши
6
6
  decidim/surveys/opened_survey_event: Анкетата започна
7
7
  activerecord:
8
8
  models:
9
9
  decidim/surveys/survey:
10
10
  one: Анкета
11
11
  other: Анкети
12
- decidim/surveys/survey_answer:
13
- one: Отговор
14
- other: Отговори
15
- decidim:
16
- components:
17
- surveys:
18
- actions:
19
- answer: Отговор
20
- name: Анкета
21
- settings:
22
- global:
23
- announcement: Съобщение
24
- clean_after_publish: Изтриване на отговорите при публикуване на проучването
25
- ends_at: Отговорите се приемат до
26
- ends_at_help: Оставете празно при липса на конкретна дата
27
- scope_id: Обхват
28
- scopes_enabled: Обхватите са активирани
29
- starts_at: Отговорите се приемат от
30
- starts_at_help: Оставете празно при липса на конкретна дата
31
- step:
32
- allow_answers: Разрешаване на отговори
33
- allow_unregistered: Разрешаване на нерегистрирани потребители да отговарят на въпросите в проучването
34
- allow_unregistered_help: Ако е активно, няма да се изисква влизане, за да се отговори на анкетата. Това може да доведе до лоши или ненадеждни данни и ще e по-уязвимo на автоматизирани атаки. Използвайте с повишено внимание! Имайте предвид, че участник може да отговори на едно и също проучване няколко пъти, като използва различни браузъри или функцията за „частно сърфиране“ на своя уеб браузър.
35
- announcement: Съобщение
36
- events:
37
- surveys:
38
- survey_closed:
39
- email_intro: Анкетата %{resource_title} в(ъв) %{participatory_space_title} беше затворена.
40
- email_outro: Получавате това известие, защото следвате %{participatory_space_title}. Може да прекратите известията чрез предходния линк.
41
- email_subject: Приключи анкетата в(ъв) %{participatory_space_title}
42
- notification_title: Анкетата <a href="%{resource_path}">%{resource_title}</a> в(ъв) <a href="%{participatory_space_url}">%{participatory_space_title}</a> приключи.
43
- survey_opened:
44
- email_intro: 'Анкетата %{resource_title} в(ъв) %{participatory_space_title} вече е отворена. Можете да участвате в нея от тази страница:'
45
- email_outro: Получавате това известие, защото следвате %{participatory_space_title}. Може да прекратите известията чрез предходния линк.
46
- email_subject: Нова анкета в(ъв) %{participatory_space_title}
47
- notification_title: Анкетата <a href="%{resource_path}">%{resource_title}</a> в(ъв) <a href="%{participatory_space_url}">%{participatory_space_title}</a> вече е отворена.
48
- metrics:
49
- survey_answers:
50
- description: Брой на анкетите с отговори от участници
51
- object: отговори на анкети
52
- title: Отговори на анкети
53
- statistics:
54
- answers_count: Отговори
55
- surveys:
56
- admin:
57
- component:
58
- actions:
59
- answers_alert: Ако публикувате компонента, всички резултати ще бъдат премахнати.
60
- exports:
61
- survey_user_answers: Отговори на участник в анкети
62
- surveys:
63
- update:
64
- invalid: Възникна проблем при запазването на анкетата.
65
- success: Анкетата беше запазена успешно.
66
- last_activity:
67
- new_survey_at_html: "<span>Ново допитване на %{link}</span>"
68
- surveys:
69
- answer:
70
- invalid: Възникна проблем при попълването на отговорите на анкетата.
71
- spam_detected: Възникна проблем при попълването на отговорите във формуляра. Навярно сте били твърде бързи, бихте ли опитали отново?
72
- success: Отговорите на анкетата са попълнени успешно.
@@ -37,12 +37,12 @@ ca:
37
37
  surveys:
38
38
  survey_closed:
39
39
  email_intro: L'enquesta %{resource_title} a %{participatory_space_title} ha estat tancada.
40
- email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
40
+ email_outro: Has rebut aquesta notificació perquè estàs seguint %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
41
41
  email_subject: S'ha acabat una enquesta a %{participatory_space_title}
42
42
  notification_title: L'enquesta <a href="%{resource_path}">%{resource_title}</a> a <a href="%{participatory_space_url}">%{participatory_space_title}</a> ha acabat.
43
43
  survey_opened:
44
44
  email_intro: 'L''enquesta %{resource_title} a %{participatory_space_title} ja està oberta. Pots participar-hi des d''aquesta pàgina:'
45
- email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
45
+ email_outro: Has rebut aquesta notificació perquè estàs seguint %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
46
46
  email_subject: Una nova enquesta a %{participatory_space_title}
47
47
  notification_title: L'enquesta <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a> ja està oberta.
48
48
  metrics:
@@ -64,9 +64,14 @@ ca:
64
64
  invalid: S'ha produït un error en desar l'enquesta.
65
65
  success: Enquesta desada correctament.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Nova enquesta a %{link}</span>"
67
+ new_survey: 'Nova enquesta:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Has respost amb èxit a l'enquesta %{questionnaire_title} dins de %{participatory_space}
71
+ subject: Confirmació de resposta al qüestionari %{questionnaire_title}
72
+ export_name: Respostes a l'enquesta
68
73
  surveys:
69
74
  answer:
70
75
  invalid: S'ha produït un error en respondre l'enquesta.
71
- spam_detected: Hi ha hagut un problema contestant el formulari. Potser has estat massa ràpid, ho pots tornar a intentar?
76
+ spam_detected: Hi ha hagut un problema responent el formulari. Potser has anat massa ràpid, ho pots tornar a intentar?
72
77
  success: Enquesta resposta correctament.
@@ -68,9 +68,14 @@ cs:
68
68
  invalid: Při ukládání průzkumu došlo k chybám.
69
69
  success: Průzkum byl úspěšně uložen.
70
70
  last_activity:
71
- new_survey_at_html: "<span>Nový průzkum na %{link}</span>"
71
+ new_survey: 'Nový průzkum:'
72
+ survey_confirmation_mailer:
73
+ confirmation:
74
+ body: Úspěšně jste odpověděli na anketu %{questionnaire_title} v rámci %{participatory_space}
75
+ subject: Potvrzení odpovědi na dotazník %{questionnaire_title}
76
+ export_name: Odpovědi na dotazník
72
77
  surveys:
73
78
  answer:
74
79
  invalid: Při odpovědi na průzkum došlo k chybám.
75
- spam_detected: Při vyplňování formuláře došlo k potížím. Možná jste byli příliš rychlí, můžete to zkusit znovu?
80
+ spam_detected: Vyskytl se problém s odpovědí na formulář. Možná jste byl příliš rychlý, můžete to zkusit znovu?
76
81
  success: Průzkum úspěšně odpověděl.
@@ -64,9 +64,14 @@ de:
64
64
  invalid: Beim Speichern der Umfrage sind Fehler aufgetreten.
65
65
  success: Umfrage wurde erfolgreich gespeichert.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Neue Umfrage auf %{link}</span>"
67
+ new_survey: 'Neue Umfrage:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Sie haben die Umfrage %{questionnaire_title} auf %{participatory_space} erfolgreich beantwortet
71
+ subject: 'Umfrage "%{questionnaire_title}": Bestätigung Ihrer Antwort'
72
+ export_name: Umfrageantworten
68
73
  surveys:
69
74
  answer:
70
75
  invalid: Bei der Beantwortung der Umfrage sind Fehler aufgetreten.
71
- spam_detected: Bei der Beantwortung des Fragebogens sind Fehler aufgetreten. Möglicherweise waren Sie zu schnell. Versuchen Sie es vielleicht erneut.
76
+ spam_detected: Bei der Beantwortung der Umfrage ist ein Fehler aufgetreten. Möglicherweise waren Sie zu schnell, können Sie es erneut versuchen?
72
77
  success: Umfrage erfolgreich beantwortet.
@@ -61,9 +61,9 @@ el:
61
61
  invalid: Υπήρξε ένα πρόβλημα κατά την αποθήκευση της έρευνας.
62
62
  success: Η έρευνα αποθηκεύτηκε με επιτυχία.
63
63
  last_activity:
64
- new_survey_at_html: "<span>Νέα έρευνα σε %{link}</span>"
64
+ new_survey: 'Νέα έρευνα:'
65
65
  surveys:
66
66
  answer:
67
67
  invalid: Υπήρξε ένα πρόβλημα κατά την απάντηση στην έρευνα.
68
- spam_detected: Υπήρξε ένα πρόβλημα κατά την απάντηση της φόρμας. Ίσως απαντήσατε πολύ γρήγορα, μπορείτε να δοκιμάσετε ξανά;
68
+ spam_detected: Υπήρχε ένα πρόβλημα στην απάντηση της φόρμας. Ίσως είστε πολύ γρήγοροι, μπορείτε να δοκιμάσετε ξανά;
69
69
  success: Η έρευνα απαντήθηκε με επιτυχία.
@@ -64,9 +64,14 @@ en:
64
64
  invalid: There was a problem saving the survey.
65
65
  success: Survey successfully saved.
66
66
  last_activity:
67
- new_survey_at_html: "<span>New survey at %{link}</span>"
67
+ new_survey: 'New survey:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: You have successfully answered the %{questionnaire_title} survey within %{participatory_space}
71
+ subject: Questionnaire %{questionnaire_title} answering confirmation
72
+ export_name: Survey answers
68
73
  surveys:
69
74
  answer:
70
75
  invalid: There was a problem answering the survey.
71
- spam_detected: There was a problem answering the form. Maybe you've been too quick, can you try again?
76
+ spam_detected: There was a problem answering the form. Maybe you have been too quick, can you try again?
72
77
  success: Survey successfully answered.
@@ -64,9 +64,14 @@ es-MX:
64
64
  invalid: Se han producido errores al guardar la encuesta.
65
65
  success: Encuesta guardada correctamente.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Nueva encuesta en %{link}</span>"
67
+ new_survey: 'Nueva encuesta:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Has respondido con éxito a la encuesta %{questionnaire_title} dentro de %{participatory_space}
71
+ subject: Confirmación de respuesta al cuestionario %{questionnaire_title}
72
+ export_name: Respuestas a la encuesta
68
73
  surveys:
69
74
  answer:
70
75
  invalid: Se han producido errores al responder a la encuesta.
71
- spam_detected: Hubo un problema al responder al formulario. Tal vez hayas ido demasiado rápido, ¿puedes intentarlo de nuevo?
76
+ spam_detected: Hubo un problema respondiendo al formulario. Tal vez has sido demasiado rápido, ¿puedes intentarlo de nuevo?
72
77
  success: La encuesta ha sido respondida con éxito.
@@ -64,9 +64,14 @@ es-PY:
64
64
  invalid: Se han producido errores al guardar la encuesta.
65
65
  success: Encuesta guardada correctamente.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Nueva encuesta en %{link}</span>"
67
+ new_survey: 'Nueva encuesta:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Has respondido con éxito a la encuesta %{questionnaire_title} dentro de %{participatory_space}
71
+ subject: Confirmación de respuesta al cuestionario %{questionnaire_title}
72
+ export_name: Respuestas a la encuesta
68
73
  surveys:
69
74
  answer:
70
75
  invalid: Se han producido errores al responder a la encuesta.
71
- spam_detected: Hubo un problema al responder al formulario. Tal vez hayas ido demasiado rápido, ¿puedes intentarlo de nuevo?
76
+ spam_detected: Hubo un problema respondiendo al formulario. Tal vez has sido demasiado rápido, ¿puedes intentarlo de nuevo?
72
77
  success: La encuesta ha sido respondida con éxito.
@@ -37,12 +37,12 @@ es:
37
37
  surveys:
38
38
  survey_closed:
39
39
  email_intro: La encuesta %{resource_title} en %{participatory_space_title} se ha cerrado.
40
- email_outro: Has recibido esta notificación porqué estás siguiendo el espacio "%{participatory_space_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
40
+ email_outro: Has recibido esta notificación porqué estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
41
41
  email_subject: Ha terminado una encuesta en %{participatory_space_title}
42
42
  notification_title: La encuesta <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a> ha terminado.
43
43
  survey_opened:
44
44
  email_intro: 'Ya está abierta la encuesta %{resource_title} en %{participatory_space_title}. Puedes participar desde esta página:'
45
- email_outro: Has recibido esta notificación porque estás siguiendo el espacio "%{participatory_space_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
45
+ email_outro: Has recibido esta notificación porque estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
46
46
  email_subject: Nueva encuesta en %{participatory_space_title}
47
47
  notification_title: Ya está abierta la encuesta <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
48
48
  metrics:
@@ -64,9 +64,14 @@ es:
64
64
  invalid: Se ha producido un error al guardar la encuesta.
65
65
  success: Encuesta guardada correctamente.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Nueva encuesta en %{link}</span>"
67
+ new_survey: 'Nueva encuesta:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Has respondido con éxito a la encuesta %{questionnaire_title} dentro de %{participatory_space}
71
+ subject: Confirmación de respuesta al cuestionario %{questionnaire_title}
72
+ export_name: Respuestas a la encuesta
68
73
  surveys:
69
74
  answer:
70
75
  invalid: Se ha producido un error al responder la encuesta.
71
- spam_detected: Hubo un problema al responder al formulario. Tal vez hayas ido demasiado rápido, ¿puedes intentarlo de nuevo?
76
+ spam_detected: Hubo un problema respondiendo al formulario. Tal vez has sido demasiado rápido, ¿puedes intentarlo de nuevo?
72
77
  success: La encuesta se ha respondido correctamente.
@@ -37,7 +37,7 @@ eu:
37
37
  surveys:
38
38
  survey_closed:
39
39
  email_intro: '%{resource_title} inkesta %{participatory_space_title} itxi egin da.'
40
- email_outro: Jakinarazpen hau jaso duzu %{participatory_space_title} jarraitzen ari zarelako. Aurreko estekan jakinarazpenak jasotzeari utzi ahal diozu.
40
+ email_outro: Jakinarazpen hau jaso duzu %{participatory_space_title} jarraitzen ari zarelako. Aurreko estekan sartuz jakinarazpenak jasotzeari utzi ahal diozu.
41
41
  email_subject: Inkesta bat itxi da %{participatory_space_title} espazioan
42
42
  notification_title: <a href="%{resource_path}">%{resource_title}</a> inkesta <a href="%{participatory_space_url}">%{participatory_space_title}</a> espazioan amaitu da.
43
43
  survey_opened:
@@ -64,7 +64,12 @@ eu:
64
64
  invalid: Arazo bat egon da inkesta gordetzean.
65
65
  success: Inkesta ondo gorde da.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Inkesta berria hemen: %{link}</span>"
67
+ new_survey: 'Beste inkesta bat:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Zuzen erantzun duzu %{participatory_space} espazioko %{questionnaire_title} inkesta
71
+ subject: '%{questionnaire_title} galdetegiaren erantzun-baieztapena'
72
+ export_name: Inkestaren erantzunak
68
73
  surveys:
69
74
  answer:
70
75
  invalid: Arazo bat egon da inkesta erantzutean.
@@ -64,9 +64,14 @@ fi-pl:
64
64
  invalid: Kyselyn tallennus epäonnistui.
65
65
  success: Kysely tallennettu onnistuneesti.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Uusi kysely osoitteessa %{link}</span>"
67
+ new_survey: 'Uusi kysely:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Vastauksesi kyselyyn "%{questionnaire_title}" onnistui osallistumistilassa "%{participatory_space}"
71
+ subject: Kyselyn "%{questionnaire_title}" vastaamisen vahvistus
72
+ export_name: Kyselyn vastaukset
68
73
  surveys:
69
74
  answer:
70
75
  invalid: Kyselyyn vastaaminen epäonnistui.
71
- spam_detected: Kyselyn vastaamisessa tapahtui virhe. Ehkä olit liian nopea, voisitko yrittää uudestaan?
76
+ spam_detected: Lomakkeeseen vastaaminen epäonnistui. Saatoit toimia liian nopeasti. Yrittäisitkö uudestaan?
72
77
  success: Kyselyyn vastattu onnistuneesti.
@@ -64,9 +64,14 @@ fi:
64
64
  invalid: Kyselyn tallennus epäonnistui.
65
65
  success: Kyselyn tallennus onnistui.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Uusi kysely osoitteessa %{link}</span>"
67
+ new_survey: 'Uusi kysely:'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Vastauksesi kyselyyn "%{questionnaire_title}" onnistui osallistumistilassa "%{participatory_space}"
71
+ subject: Kyselyn "%{questionnaire_title}" vastaamisen vahvistus
72
+ export_name: Kyselyn vastaukset
68
73
  surveys:
69
74
  answer:
70
75
  invalid: Kyselyyn vastaaminen epäonnistui.
71
- spam_detected: Kyselyn vastaaminen epäonnistui. Ehkä olit liian nopea, voisitko yrittää uudestaan?
76
+ spam_detected: Lomakkeeseen vastaaminen epäonnistui. Saatoit toimia liian nopeasti. Yrittäisitkö uudestaan?
72
77
  success: Kyselyyn vastaaminen onnistui.
@@ -64,9 +64,12 @@ fr-CA:
64
64
  invalid: Erreurs lors de la sauvegarde de l'enquête.
65
65
  success: Enquête enregistrée avec succès.
66
66
  last_activity:
67
- new_survey_at_html: "<span>Nouvelle enquête à %{link}</span>"
67
+ new_survey: 'Nouvelle enquête :'
68
+ survey_confirmation_mailer:
69
+ confirmation:
70
+ body: Vous avez répondu avec succès à l'enquête %{questionnaire_title} dans %{participatory_space}
68
71
  surveys:
69
72
  answer:
70
73
  invalid: Votre réponse à l'enquête comporte des erreurs.
71
- spam_detected: Il y a eu un problème lors de la réponse au questionnaire. Peut-être avez-vous été trop rapide, pouvez-vous réessayer ?
74
+ spam_detected: Une erreur est survenue lorsque vous avez répondu au questionnaire. Pouvez-vous réessayer ?
72
75
  success: Votre réponse à l'enquête a bien été enregistrée.