decidim-initiatives 0.26.0.rc1 → 0.26.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/initiatives/initiative_m/footer.erb +1 -1
  3. data/app/cells/decidim/initiatives/initiative_m/tags.erb +1 -1
  4. data/app/cells/decidim/initiatives/initiative_m_cell.rb +1 -0
  5. data/app/controllers/concerns/decidim/initiatives/needs_initiative_type.rb +30 -0
  6. data/app/forms/decidim/initiatives/admin/initiative_form.rb +22 -22
  7. data/app/models/decidim/initiative.rb +20 -34
  8. data/app/permissions/decidim/initiatives/permissions.rb +0 -8
  9. data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +3 -2
  10. data/app/views/decidim/initiatives/create_initiative/previous_form.html.erb +2 -2
  11. data/app/views/decidim/initiatives/initiatives/_progress_bar.html.erb +2 -2
  12. data/app/views/decidim/initiatives/initiatives/show.html.erb +1 -1
  13. data/app/views/layouts/decidim/_initiative_header.html.erb +3 -3
  14. data/config/locales/ar.yml +2 -0
  15. data/config/locales/ca.yml +1 -2
  16. data/config/locales/cs.yml +2 -2
  17. data/config/locales/en.yml +2 -2
  18. data/config/locales/es-MX.yml +1 -2
  19. data/config/locales/es-PY.yml +1 -2
  20. data/config/locales/es.yml +0 -2
  21. data/config/locales/eu.yml +1 -1
  22. data/config/locales/fi-plain.yml +3 -2
  23. data/config/locales/fi.yml +2 -2
  24. data/config/locales/fr-CA.yml +2 -2
  25. data/config/locales/fr.yml +7 -7
  26. data/config/locales/gl.yml +2 -0
  27. data/config/locales/hu.yml +2 -0
  28. data/config/locales/it.yml +0 -2
  29. data/config/locales/ja.yml +2 -2
  30. data/config/locales/lb.yml +0 -2
  31. data/config/locales/nl.yml +0 -1
  32. data/config/locales/no.yml +115 -0
  33. data/config/locales/pl.yml +0 -2
  34. data/config/locales/pt-BR.yml +0 -2
  35. data/config/locales/pt.yml +0 -2
  36. data/config/locales/ro-RO.yml +1 -2
  37. data/config/locales/sv.yml +3 -0
  38. data/config/locales/tr-TR.yml +0 -2
  39. data/config/locales/zh-CN.yml +0 -1
  40. data/lib/decidim/initiatives/engine.rb +14 -0
  41. data/lib/decidim/initiatives/version.rb +1 -1
  42. metadata +15 -15
  43. data/config/initializers/mail_previews.rb +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acbc694f3ab5cd8458b802fef1f4ea2a132c217403ad5feb8ea816093457c723
4
- data.tar.gz: 57a943df2ccf79c2386c11010e206c2bf1745850c62f7fa2a6a2f6c43900ef85
3
+ metadata.gz: 45db111dad7787dadef54db425611ded206cbac77ee988fada8d30f5b86f49c7
4
+ data.tar.gz: 5ddbac2b4adcca5285312a8bb7faae5b9c41c29750c923e789955cffcf833841
5
5
  SHA512:
6
- metadata.gz: d1c5f1ab379690f5f0bcb218d1bf29c557e517b1cc44fb2cf1e6541e79a42e5d113634c87b610ff9151678d429cadb5964a1ba0234ff9d56e8fc70e020b64697
7
- data.tar.gz: 513d5f87aefa611ebe2f226e3cde4bc23cc662bf9cbfadafbe5fe42780190271660178831fc5999ed3380bf585f483a063f3b6db9d1b711519da861f1a2b1ee4
6
+ metadata.gz: 67a11771a5df12bd1c77969776c5748b0c66aeb5babd1413a163b4ef10add6ac020ec85097d18509e1971284613c9aac1f9d4292ddaa208628e5ead71ac2ab35
7
+ data.tar.gz: dbaf1c3b5a998d999ff208c259c078ba099854ffcb545a82a4c582c6d65afaf629911efb461c74433b3c6e249155b17d54181c4958d908f508741c23ebd642f2
@@ -1,6 +1,6 @@
1
1
  <div class="card__footer card__footer--spaces">
2
2
  <div class="card__support">
3
- <% if model.published? %>
3
+ <% if model.published? || model.rejected? || model.accepted? %>
4
4
  <div class="card__support__data">
5
5
  <%= cell(
6
6
  "decidim/progress_bar",
@@ -1,7 +1,7 @@
1
1
  <% if model.hashtag.present? %>
2
2
  <%= link_to(
3
3
  "##{hashtag}",
4
- "https://twitter.com/hashtag/#{hashtag}",
4
+ twitter_hashtag_url(hashtag),
5
5
  class: "card__text--category",
6
6
  target: "_blank"
7
7
  ) %>
@@ -6,6 +6,7 @@ module Decidim
6
6
  # for an given instance of an Initiative
7
7
  class InitiativeMCell < Decidim::CardMCell
8
8
  include Decidim::Initiatives::Engine.routes.url_helpers
9
+ include Decidim::TwitterSearchHelper
9
10
 
10
11
  property :state
11
12
 
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/concern"
4
+
5
+ module Decidim
6
+ module Initiatives
7
+ # Common methods for elements that need specific behaviour when there is only one initiative type.
8
+ module NeedsInitiativeType
9
+ extend ActiveSupport::Concern
10
+
11
+ included do
12
+ before_action :verify_initiative_type
13
+
14
+ private
15
+
16
+ def any_initiative_type?
17
+ Decidim::InitiativesType.where(organization: current_organization).any?
18
+ end
19
+
20
+ def verify_initiative_type
21
+ unless any_initiative_type?
22
+ flash[:error] = "There needs to be an initiative type created by an administrator for initiatives to work"
23
+ redirect_to decidim.root_path
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+
@@ -19,7 +19,7 @@ module Decidim
19
19
  attribute :signature_start_date, Decidim::Attributes::LocalizedDate
20
20
  attribute :signature_end_date, Decidim::Attributes::LocalizedDate
21
21
  attribute :hashtag, String
22
- attribute :offline_votes, Hash[String => Integer]
22
+ attribute :offline_votes, Hash[Symbol => Integer]
23
23
  attribute :state, String
24
24
  attribute :attachment, AttachmentForm
25
25
 
@@ -38,31 +38,11 @@ module Decidim
38
38
  validate :notify_missing_attachment_if_errored
39
39
  validate :area_is_not_removed
40
40
 
41
- # rubocop:disable Metrics/CyclomaticComplexity
42
- # rubocop:disable Metrics/PerceivedComplexity
43
41
  def map_model(model)
44
42
  self.type_id = model.type.id
45
43
  self.decidim_scope_id = model.scope&.id
46
- self.offline_votes = model.offline_votes
47
-
48
- if offline_votes.empty?
49
- self.offline_votes = model.votable_initiative_type_scopes.each_with_object({}) do |initiative_scope_type, all_votes|
50
- all_votes[initiative_scope_type.decidim_scopes_id || "global"] = [0, initiative_scope_type.scope_name]
51
- end
52
- else
53
- offline_votes.delete("total")
54
- self.offline_votes = offline_votes.each_with_object({}) do |(decidim_scope_id, votes), all_votes|
55
- scope_name = model.votable_initiative_type_scopes.find do |initiative_scope_type|
56
- initiative_scope_type.global_scope? && decidim_scope_id == "global" ||
57
- initiative_scope_type.decidim_scopes_id == decidim_scope_id.to_i
58
- end.scope_name
59
-
60
- all_votes[decidim_scope_id || "global"] = [votes, scope_name]
61
- end
62
- end
44
+ self.offline_votes = offline_votes.empty? ? zero_offine_votes_with_scopes_names(model) : offline_votes_with_scopes_names(model)
63
45
  end
64
- # rubocop:enable Metrics/CyclomaticComplexity
65
- # rubocop:enable Metrics/PerceivedComplexity
66
46
 
67
47
  def signature_type_updatable?
68
48
  @signature_type_updatable ||= begin
@@ -91,6 +71,26 @@ module Decidim
91
71
 
92
72
  private
93
73
 
74
+ # Private: set the in-person signatures to zero for every scope
75
+ def zero_offine_votes_with_scopes_names(model)
76
+ model.votable_initiative_type_scopes.each_with_object({}) do |initiative_scope_type, all_votes|
77
+ all_votes[initiative_scope_type.decidim_scopes_id&.to_s&.to_sym || "global"] = [0, initiative_scope_type.scope_name]
78
+ end
79
+ end
80
+
81
+ # Private: set the in-person signatures for every scope
82
+ def offline_votes_with_scopes_names(model)
83
+ model.offline_votes.delete("total")
84
+ model.offline_votes.each_with_object({}) do |(decidim_scope_id, votes), all_votes|
85
+ scope_name = model.votable_initiative_type_scopes.find do |initiative_scope_type|
86
+ initiative_scope_type.global_scope? && decidim_scope_id == "global" ||
87
+ initiative_scope_type.decidim_scopes_id == decidim_scope_id.to_i
88
+ end.scope_name
89
+
90
+ all_votes[decidim_scope_id || "global"] = [votes, scope_name]
91
+ end
92
+ end
93
+
94
94
  def type
95
95
  @type ||= type_id ? Decidim::InitiativesType.find(type_id) : context.initiative.type
96
96
  end
@@ -62,8 +62,7 @@ module Decidim
62
62
  enum signature_type: [:online, :offline, :any], _suffix: true
63
63
  enum state: [:created, :validating, :discarded, :published, :rejected, :accepted]
64
64
 
65
- validates :title, :description, :state, presence: true
66
- validates :signature_type, presence: true
65
+ validates :title, :description, :state, :signature_type, presence: true
67
66
  validates :hashtag,
68
67
  uniqueness: true,
69
68
  allow_blank: true,
@@ -128,37 +127,30 @@ module Decidim
128
127
  delegate :document_number_authorization_handler, :promoting_committee_enabled?, to: :type
129
128
  delegate :type, :scope, :scope_name, to: :scoped_type, allow_nil: true
130
129
 
131
- # PUBLIC banner image
132
- #
133
- # Overrides participatory space's banner image with the banner image defined
130
+ # Public: Overrides participatory space's banner image with the banner image defined
134
131
  # for the initiative type.
135
132
  #
136
- # RETURNS Decidim::BannerImageUploader
133
+ # Returns Decidim::BannerImageUploader
137
134
  def banner_image
138
135
  type.attached_uploader(:banner_image)
139
136
  end
140
137
 
141
- # PUBLIC
142
- #
143
- # Returns true when an initiative has been created by an individual person.
144
- # False in case it has been created by an authorized organization.
138
+ # Public: Check if an initiative has been created by an individual person.
139
+ # If it's false, then it has been created by an authorized organization.
145
140
  #
146
- # RETURN boolean
141
+ # Returns a Boolean
147
142
  def created_by_individual?
148
143
  decidim_user_group_id.nil?
149
144
  end
150
145
 
151
- # PUBLIC
146
+ # Public: check if an initiative is open
152
147
  #
153
- # RETURN boolean TRUE when the initiative is open, false in case its
154
- # not closed.
148
+ # Returns a Boolean
155
149
  def open?
156
150
  !closed?
157
151
  end
158
152
 
159
- # PUBLIC
160
- #
161
- # Returns when an initiative is closed. An initiative is closed when
153
+ # Public: Checks if an initiative is closed. An initiative is closed when
162
154
  # at least one of the following conditions is true:
163
155
  #
164
156
  # * It has been discarded.
@@ -166,17 +158,15 @@ module Decidim
166
158
  # * It has been accepted.
167
159
  # * Signature collection period has finished.
168
160
  #
169
- # RETURNS BOOLEAN
161
+ # Returns a Boolean
170
162
  def closed?
171
163
  discarded? || rejected? || accepted? || !votes_enabled?
172
164
  end
173
165
 
174
- # PUBLIC
175
- #
176
- # Returns the author name. If it has been created by an organization it will
166
+ # Public: Returns the author name. If it has been created by an organization it will
177
167
  # return the organization's name. Otherwise it will return author's name.
178
168
  #
179
- # RETURN string
169
+ # Returns a string
180
170
  def author_name
181
171
  user_group&.name || author.name
182
172
  end
@@ -196,7 +186,7 @@ module Decidim
196
186
 
197
187
  # Public: Checks if the organization has given an answer for the initiative.
198
188
  #
199
- # Returns Boolean.
189
+ # Returns a Boolean.
200
190
  def answered?
201
191
  answered_at.present?
202
192
  end
@@ -271,14 +261,12 @@ module Decidim
271
261
 
272
262
  # Public: Returns the percentage of required supports reached
273
263
  def percentage
274
- return 100 if supports_goal_reached?
275
-
276
- supports_count * 100 / supports_required
264
+ [supports_count * 100 / supports_required, 100].min
277
265
  end
278
266
 
279
267
  # Public: Whether the supports required objective has been reached
280
268
  def supports_goal_reached?
281
- initiative_type_scopes.map(&:scope).all? { |scope| supports_goal_reached_for?(scope) }
269
+ votable_initiative_type_scopes.map(&:scope).all? { |scope| supports_goal_reached_for?(scope) }
282
270
  end
283
271
 
284
272
  # Public: Whether the supports required objective has been reached for a scope
@@ -330,9 +318,9 @@ module Decidim
330
318
  end
331
319
 
332
320
  def set_offline_votes_total
333
- return if offline_votes.blank? || scope.nil?
321
+ return if offline_votes.blank?
334
322
 
335
- offline_votes["total"] = offline_votes[scope.id.to_s]
323
+ offline_votes["total"] = offline_votes[scope&.id.to_s] || offline_votes["global"]
336
324
  end
337
325
 
338
326
  # Public: Finds all the InitiativeTypeScopes that are eligible to be voted by a user.
@@ -407,13 +395,11 @@ module Decidim
407
395
  nil
408
396
  end
409
397
 
410
- # PUBLIC
411
- #
412
- # Checks if the type the initiative belongs to enables SMS code
398
+ # Public: Checks if the type the initiative belongs to enables SMS code
413
399
  # verification step. Tis configuration is ignored if the organization
414
400
  # doesn't have the sms authorization available
415
401
  #
416
- # RETURNS boolean
402
+ # Returns a Boolean
417
403
  def validate_sms_code_on_votes?
418
404
  organization.available_authorizations.include?("sms") && type.validate_sms_code_on_votes?
419
405
  end
@@ -447,7 +433,7 @@ module Decidim
447
433
  type.scopes
448
434
  end
449
435
 
450
- # Private: A validator that verifies the signaature type is allowed by the InitiativeType.
436
+ # Private: A validator that verifies the signature type is allowed by the InitiativeType.
451
437
  def signature_type_allowed
452
438
  return if published?
453
439
 
@@ -9,7 +9,6 @@ module Decidim
9
9
  return permission_action if permission_action.scope != :public
10
10
 
11
11
  # Non-logged users permissions
12
- public_report_content_action?
13
12
  list_public_initiatives?
14
13
  read_public_initiative?
15
14
  search_initiative_types_and_scopes?
@@ -154,13 +153,6 @@ module Decidim
154
153
  toggle_allow(initiative_type.attachments_enabled?)
155
154
  end
156
155
 
157
- def public_report_content_action?
158
- return unless permission_action.action == :create &&
159
- permission_action.subject == :moderation
160
-
161
- allow!
162
- end
163
-
164
156
  def sign_initiative?
165
157
  return unless permission_action.action == :sign_initiative &&
166
158
  permission_action.subject == :initiative
@@ -30,11 +30,11 @@
30
30
  <% end %>
31
31
 
32
32
  <div class="field">
33
- <%= f.text_field :title, autofocus: true, required: true %>
33
+ <%= f.text_field :title, autofocus: true %>
34
34
  </div>
35
35
 
36
36
  <div class="field">
37
- <%= f.editor :description, lines: 8, toolbar: :full, required: true %>
37
+ <%= f.editor :description, lines: 8, toolbar: :full %>
38
38
  </div>
39
39
 
40
40
  <% signature_type_options = signature_type_options(f.object) %>
@@ -52,6 +52,7 @@
52
52
  <div class="field">
53
53
  <%= f.select :scope_id,
54
54
  scopes.map { |scope| [translated_attribute(scope.scope_name), scope&.scope&.id] },
55
+ required: true,
55
56
  include_blank: t(".select_scope") %>
56
57
  </div>
57
58
  <% end %>
@@ -23,11 +23,11 @@
23
23
  <%= f.hidden_field :type_id %>
24
24
 
25
25
  <div class="field">
26
- <%= f.text_field :title, autofocus: true, required: true %>
26
+ <%= f.text_field :title, autofocus: true %>
27
27
  </div>
28
28
 
29
29
  <div class="field">
30
- <%= f.editor :description, lines: 8, toolbar: :full, required: true %>
30
+ <%= f.editor :description, lines: 8, toolbar: :full %>
31
31
  </div>
32
32
 
33
33
  <div class="actions">
@@ -3,7 +3,7 @@
3
3
  <% if index == 0 %>
4
4
  <%= cell(
5
5
  "decidim/progress_bar",
6
- current_initiative.online_votes_count_for(type_scope.scope),
6
+ current_initiative.supports_count_for(type_scope.scope),
7
7
  total: type_scope.supports_required,
8
8
  units_name: "decidim.initiatives.initiatives.votes_count.count",
9
9
  element_id: "initiative-#{current_initiative.id}-votes-count",
@@ -13,7 +13,7 @@
13
13
  <% else %>
14
14
  <%= cell(
15
15
  "decidim/progress_bar",
16
- current_initiative.online_votes_count_for(type_scope.scope),
16
+ current_initiative.supports_count_for(type_scope.scope),
17
17
  total: type_scope.supports_required,
18
18
  subtitle_text: translated_attribute(type_scope.scope_name),
19
19
  element_id: "initiative-scope-#{type_scope.id}-#{current_initiative.id}-votes-count",
@@ -34,7 +34,7 @@ edit_link(
34
34
  <div class="columns section view-side mediumlarge-4 mediumlarge-push-8 large-3 large-push-9">
35
35
  <div class="card text-center">
36
36
  <div class="card__content">
37
- <% if current_initiative.published? %>
37
+ <% if current_initiative.published? || current_initiative.rejected? || current_initiative.accepted? %>
38
38
  <%= render partial: "progress_bar" %>
39
39
  <% if current_initiative.votes_enabled? %>
40
40
  <div id="initiative-<%= current_initiative.id %>-vote-cabin">
@@ -11,14 +11,14 @@
11
11
  </h1>
12
12
  </div>
13
13
  <div>
14
- <h2 class="text-highlight heading-small">
14
+ <p class="text-highlight heading-small">
15
15
  <% if current_participatory_space.hashtag.present? %>
16
16
  <span class="process-header__hashtag">
17
- <%= link_to "##{current_participatory_space.hashtag}", "https://twitter.com/hashtag/#{current_participatory_space.hashtag}" %>
17
+ <%= link_to "##{current_participatory_space.hashtag}", twitter_hashtag_url(current_participatory_space.hashtag), target: "_blank" %>
18
18
  </span>
19
19
  <% end %>
20
20
  <%= strip_tags participatory_space_helpers.translated_attribute(current_participatory_space.type.title) %>
21
- </h2>
21
+ </p>
22
22
  </div>
23
23
  </div>
24
24
  <%= render partial: "layouts/decidim/initiative_header_steps", locals: { initiative: current_participatory_space } %>
@@ -380,6 +380,8 @@ ar:
380
380
  recent: الأحدث
381
381
  print:
382
382
  city: مدينة
383
+ initiative:
384
+ description: 'الوصف:'
383
385
  result:
384
386
  initiative_rejected_reason: تم رفض هذه المبادرة بسبب افتقارها للتوقيعات.
385
387
  show:
@@ -274,8 +274,6 @@ ca:
274
274
  update: Actualitza
275
275
  form:
276
276
  authorizations: Configuració de l'autorització
277
- child_scope_threshold_enabled_help: 'Aquest ajust de configuració no suporta recollida de signatures presencials. Habilita indicadors de signatures per subàmbits i funciona amb un controlador d''autoritzacions que associa un àmbit a l''usuari. Assegura''t de seleccionar aquesta autorització més a baix, en la configuració d''autorització. Perquè funcioni ha de configurar-se de manera jeràrquica : 1 àmbit - N subàmbits. Per a més informació sobre com funciona aquesta configuració, consulta aquest <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">enllaç</a>.'
278
- only_global_scope_enabled_help: Marca aquesta casella si has habilitat "Activar signatures per subàmbit" i vas configurar l'àmbit global com l'àmbit principal. En habilitar aquesta casella, la selecció del tipus d'iniciativa s'ometrà en l'assistent de creació d'iniciatives. Per a més informació sobre com funciona aquesta configuració, consulta aquest <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">enllaç</a>.
279
277
  options: Opcions
280
278
  title: Informació general
281
279
  initiative_type_scopes:
@@ -408,6 +406,7 @@ ca:
408
406
  notification_title: <a href="%{applicant_profile_url}">%{applicant_nickname}</a> ha sol·licitat formar part de la comissió promotora de la teva iniciativa <a href="%{resource_url}">%{resource_title}</a>. Per acceptar-ho o rebutjar-ho fes clic <a href="%{resource_url}/edit">aquí</a>.
409
407
  form:
410
408
  add_attachments: Documents
409
+ attachment_legend: "(Opcional) Afegir un fitxer adjunt"
411
410
  delete_attachment: Esborrar
412
411
  index:
413
412
  title: Iniciatives
@@ -280,8 +280,8 @@ cs:
280
280
  update: Aktualizovat
281
281
  form:
282
282
  authorizations: Nastavení autorizace
283
- child_scope_threshold_enabled_help: 'Tento příznak konfigurace nepodporuje offline hlasování, povoluje dílčí oblasti působnosti a pracuje s obslužnou rutinou autorizace, která přidruží oblast působnosti uživateli. ujistěte se, že jste vybrali tuto autorizaci níže v nastavení autorizace. Aby to fungovalo, je třeba hierarchicky nakonfigurovat oblasti působnosti: 1 Nadřazený - N Podřazených. Další informace o tom, jak tato konfigurace funguje, naleznete v tomto <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank"> odkazu </a>.'
284
- only_global_scope_enabled_help: Zaškrtněte tuto poznámku, pokud jste povolili "Podřazená oblast působnosti" a nakonfigurovali globální rozsah jako vaši nadřazenou oblast působnosti. Povolením této možnosti bude výběr typu iniciativy přeskočeno v průvodci vytvořením iniciativy. Více informací o tom, jak tato konfigurace funguje, naleznete na tomto <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">odkazu</a>.
283
+ child_scope_threshold_enabled_help: 'Tento příznak konfigurace nepodporuje offline hlasování, umožňuje podřízené oblasti působnosti a pracuje s obslužnou rutinou autorizace, která uživateli přiřazuje rozsah, Ujistěte se, že jste vybrali tuto autorizaci, níže v nastavení autorizace. Aby fungovala obblast působnosti, musí být nastavena hierarchickým způsobem: 1 nadřazený - N podřazených. Více informací o tom, jak tato konfigurace funguje, naleznete na tomto <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">odkazu</a>.'
284
+ only_global_scope_enabled_help: Zaškrtněte tuto poznámku, pokud jste povolili "Podřazená oblast působnosti" a nakonfigurovali globální rozsah jako vaši nadřazenou oblast působnosti. Povolením této možnosti bude výběr typu iniciativy přeskočeno v průvodci vytvořením iniciativy. Více informací o tom, jak tato konfigurace funguje, naleznete na tomto <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">odkazu</a>.
285
285
  options: Možnosti
286
286
  title: Obecná informace
287
287
  initiative_type_scopes:
@@ -275,8 +275,8 @@ en:
275
275
  update: Update
276
276
  form:
277
277
  authorizations: Authorization settings
278
- child_scope_threshold_enabled_help: 'This config flag doesn''t support offline votes, it enables sub-scopes and works with an authorization handler that associates a scope to the user, make sure you select that authorization, bellow in authorization settings. For it to work scopes need to be configured in hierarchical way : 1 Parent - N Child. For more info on how this configuration works, see this <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">link</a>.'
279
- only_global_scope_enabled_help: Tick this flag if you enabled "Child scope signature" and configured the global scope as your parent scope. By enabling this, initiative type selection will be skipped in the initiative creation wizard. For more info on how this configuration works, see this <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">link</a>.
278
+ child_scope_threshold_enabled_help: 'This config flag doesn''t support offline votes, it enables sub-scopes and works with an authorization handler that associates a scope to the user, make sure you select that authorization, bellow in authorization settings. For it to work scopes need to be configured in hierarchical way : 1 Parent - N Child. For more info on how this configuration works, see this <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">link</a>.'
279
+ only_global_scope_enabled_help: Tick this flag if you enabled "Child scope signature" and configured the global scope as your parent scope. By enabling this, initiative type selection will be skipped in the initiative creation wizard. For more info on how this configuration works, see this <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">link</a>.
280
280
  options: Options
281
281
  title: General information
282
282
  initiative_type_scopes:
@@ -274,8 +274,6 @@ es-MX:
274
274
  update: Actualizar
275
275
  form:
276
276
  authorizations: Ajustes de autorización
277
- child_scope_threshold_enabled_help: 'Este ajuste de configuración no soporta recogida de firmas en persona, habilita indicadores de firmas por subámbitos y funciona con un controlador de autorizaciones que asocia un ámbito al usuario. Asegúrate de seleccionar esa autorización más abajo, en la configuración de autorización. Para que funcione debe configurarse de manera jerárquica : 1 ámbito - N subámbitos. Para más información sobre cómo funciona esta configuración, consulta este <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">enlace</a>.'
278
- only_global_scope_enabled_help: Marca esta casilla si habilitaste "Activar firmas por subámbito" y configuraste el ámbito global como el ámbito principal. Al habilitar esta casilla, la selección del tipo de iniciativa se omitirá en el asistente de creación de iniciativas. Para más información sobre cómo funciona esta configuración, consulta este <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">enlace</a>.
279
277
  options: Opciones
280
278
  title: Información general
281
279
  initiative_type_scopes:
@@ -408,6 +406,7 @@ es-MX:
408
406
  notification_title: <a href="%{applicant_profile_url}">%{applicant_nickname}</a> ha solicitado unirse al comité promotor de tu iniciativa <a href="%{resource_url}">%{resource_title}</a>. Para aceptar o rechazar la solicitud haz clic <a href="%{resource_url}/edit">aquí</a>.
409
407
  form:
410
408
  add_attachments: Documentos
409
+ attachment_legend: "(Opcional) Añadir un archivo adjunto"
411
410
  delete_attachment: Borrar
412
411
  index:
413
412
  title: Iniciativas
@@ -274,8 +274,6 @@ es-PY:
274
274
  update: Actualizar
275
275
  form:
276
276
  authorizations: Ajustes de autorización
277
- child_scope_threshold_enabled_help: 'Este ajuste de configuración no soporta recogida de firmas en persona, habilita indicadores de firmas por subámbitos y funciona con un controlador de autorizaciones que asocia un ámbito al usuario. Asegúrate de seleccionar esa autorización más abajo, en la configuración de autorización. Para que funcione debe configurarse de manera jerárquica : 1 ámbito - N subámbitos. Para más información sobre cómo funciona esta configuración, consulta este <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">enlace</a>.'
278
- only_global_scope_enabled_help: Marca esta casilla si habilitaste "Activar firmas por subámbito" y configuraste el ámbito global como el ámbito principal. Al habilitar esta casilla, la selección del tipo de iniciativa se omitirá en el asistente de creación de iniciativas. Para más información sobre cómo funciona esta configuración, consulta este <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">enlace</a>.
279
277
  options: Opciones
280
278
  title: Información general
281
279
  initiative_type_scopes:
@@ -408,6 +406,7 @@ es-PY:
408
406
  notification_title: <a href="%{applicant_profile_url}">%{applicant_nickname}</a> ha solicitado unirse al comité promotor de tu iniciativa <a href="%{resource_url}">%{resource_title}</a>. Para aceptar o rechazar la solicitud haz clic <a href="%{resource_url}/edit">aquí</a>.
409
407
  form:
410
408
  add_attachments: Documentos
409
+ attachment_legend: "(Opcional) Añadir un archivo adjunto"
411
410
  delete_attachment: Borrar
412
411
  index:
413
412
  title: Iniciativas
@@ -274,8 +274,6 @@ es:
274
274
  update: Actualizar
275
275
  form:
276
276
  authorizations: Ajustes de autorización
277
- child_scope_threshold_enabled_help: 'Este ajuste de configuración no soporta recogida de firmas en persona, habilita indicadores de firmas por subámbitos y funciona con un controlador de autorizaciones que asocia un ámbito al usuario. Asegúrate de seleccionar esa autorización más abajo, en la configuración de autorización. Para que funcione debe configurarse de manera jerárquica : 1 ámbito - N subámbitos. Para más información sobre cómo funciona esta configuración, consulta este <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">enlace</a>.'
278
- only_global_scope_enabled_help: Marca esta casilla si habilitaste "Activar firmas por subámbito" y configuraste el ámbito global como el ámbito principal. Al habilitar esta casilla, la selección del tipo de iniciativa se omitirá en el asistente de creación de iniciativas. Para más información sobre cómo funciona esta configuración, consulta este <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">enlace</a>.
279
277
  options: Opciones
280
278
  title: Información general
281
279
  initiative_type_scopes:
@@ -506,7 +506,7 @@ eu:
506
506
  phone_number: Telefono zenbakia
507
507
  place_date: Lekua, data
508
508
  postal_code: Posta-kodea/ZIP
509
- print: Inprimatu
509
+ print: Inprimatu
510
510
  province: Probintzia/Estatua
511
511
  section: 'Antolakuntzak eskatzen badu, mesedez, inprimatu eta bete formulario hau, adierazten den tokira bidaltzeko:'
512
512
  signature: Sinadura
@@ -274,8 +274,8 @@ fi-pl:
274
274
  update: Päivitä
275
275
  form:
276
276
  authorizations: Varmennuksen asetukset
277
- child_scope_threshold_enabled_help: 'Tämä asetus ei tue fyysisiä äänestyksiä, se ottaa käyttöön alateemat ja toimii sellaisten tunnistautumistapojen kanssa, jotka yhdistävät käyttäjän tiettyyn teemaan. Varmista, että valitset tällaisen tunnistautumistavan alla olevista asetuksista. Toimiakseen teemojen on oltava määritetty hierarkisella tavalla: 1 isäntä - N lasta. Jos tarvitset lisätietoja kuinka tämä asetus toimii, tutustu <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">asetuksen dokumentaatioon täältä</a>.'
278
- only_global_scope_enabled_help: Ota tämä asetus käyttöön, jos otit köyttöön "alateemojen allekirjoitukset" ja asetit järjestelmänlaajuisen yläteeman. Ottamalla tämän asetuksen käyttöön, aloitteen tyypin valinta sivuutetaan aloitteiden luontinäkymässä. Saat <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">lisätietoja tästä ominaisuudesta täältä</a>.
277
+ child_scope_threshold_enabled_help: 'Tämä asetus ei tue fyysisiä äänestyksiä, se ottaa käyttöön alateemat ja toimii sellaisten tunnistautumistapojen kanssa, jotka yhdistävät käyttäjän tiettyyn teemaan. Varmista, että valitset tällaisen tunnistautumistavan alla olevista asetuksista. Tämän asetuksen toiminta vaatii teemojen määrityksen hierarkisesti: 1 isäntä - N lasta. Jos tarvitset lisätietoja kuinka tämä asetus toimii, tutustu <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">asetuksen dokumentaatioon täältä</a>.'
278
+ only_global_scope_enabled_help: Ota tämä asetus käyttöön, jos otit käyttöön "alateemojen allekirjoitukset" ja asetit yleisen yläteeman. Ottamalla tämän asetuksen käyttöön, aloitteen tyypin valinta sivuutetaan aloitteiden luontinäkymässä. Saat <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">lisätietoja tästä ominaisuudesta täältä</a>.
279
279
  options: Valinnat
280
280
  title: Yleistä tietoa
281
281
  initiative_type_scopes:
@@ -408,6 +408,7 @@ fi-pl:
408
408
  notification_title: <a href="%{applicant_profile_url}">%{applicant_nickname}</a> haki jäseneksi aloitteesi <a href="%{resource_url}">%{resource_title}</a> kannatuskomiteaan. Voit hyväksyä tai hylätä pyynnön <a href="%{resource_url}/edit">aloitteen muokkaussivulta</a>.
409
409
  form:
410
410
  add_attachments: Asiakirjat
411
+ attachment_legend: "(Valinnainen) Lisää liitetiedosto"
411
412
  delete_attachment: Poista
412
413
  index:
413
414
  title: Aloitteet
@@ -274,8 +274,8 @@ fi:
274
274
  update: Päivitä
275
275
  form:
276
276
  authorizations: Varmennuksen asetukset
277
- child_scope_threshold_enabled_help: 'Tämä asetus ei tue fyysisiä äänestyksiä, se ottaa käyttöön alateemat ja toimii sellaisten tunnistautumistapojen kanssa, jotka yhdistävät käyttäjän tiettyyn teemaan. Varmista, että valitset tällaisen tunnistautumistavan alla olevista asetuksista. Toimiakseen teemojen on oltava määritetty hierarkisella tavalla: 1 isäntä - N lasta. Jos tarvitset lisätietoja kuinka tämä asetus toimii, tutustu <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">asetuksen dokumentaatioon täältä</a>.'
278
- only_global_scope_enabled_help: Ota tämä asetus käyttöön, jos otit köyttöön "alateemojen allekirjoitukset" ja asetit järjestelmänlaajuisen yläteeman. Ottamalla tämän asetuksen käyttöön, aloitteen tyypin valinta sivuutetaan aloitteiden luontinäkymässä. Saat <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">lisätietoja tästä ominaisuudesta täältä</a>.
277
+ child_scope_threshold_enabled_help: 'Tämä asetus ei tue fyysisiä äänestyksiä, se ottaa käyttöön alateemat ja toimii sellaisten tunnistautumistapojen kanssa, jotka yhdistävät käyttäjän tiettyyn teemaan. Varmista, että valitset tällaisen tunnistautumistavan alla olevista asetuksista. Tämän asetuksen toiminta vaatii teemojen määrityksen hierarkisesti: 1 isäntä - N lasta. Jos tarvitset lisätietoja kuinka tämä asetus toimii, tutustu <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">asetuksen dokumentaatioon täältä</a>.'
278
+ only_global_scope_enabled_help: Ota tämä asetus käyttöön, jos otit käyttöön "alateemojen allekirjoitukset" ja asetit yleisen yläteeman. Ottamalla tämän asetuksen käyttöön, aloitteen tyypin valinta sivuutetaan aloitteiden luontinäkymässä. Saat <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">lisätietoja tästä ominaisuudesta täältä</a>.
279
279
  options: Valinnat
280
280
  title: Yleistä tietoa
281
281
  initiative_type_scopes:
@@ -274,8 +274,8 @@ fr-CA:
274
274
  update: Mettre à jour
275
275
  form:
276
276
  authorizations: Paramètres d'autorisation
277
- child_scope_threshold_enabled_help: 'Cette option de configuration ne gère pas les votes hors-ligne, elle permet d''activer des sous-secteurs et fonctionne avec un gestionnaire d''autorisation qui associe un secteur à l''utilisateur. Assurez-vous de sélectionner une telle autorisation dans les paramètres d''autorisation ci-dessous. Pour que cela fonctionne, les secteurs doivent être configurées de manière hiérarchique : 1 Parent - N Enfants. Pour plus d''informations sur le fonctionnement de cette configuration, cliquez <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">ici</a>.'
278
- only_global_scope_enabled_help: Cochez cette case si vous avez activé "Signature de la portée enfant" et configuré la portée globale comme votre portée parente. En activant cette option, la sélection du type d'initiative sera ignorée dans l'assistant de création d'initiative. Pour plus d'informations sur le fonctionnement de cette configuration, voir ce <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">lien</a>.
277
+ child_scope_threshold_enabled_help: 'Cette option de configuration ne gère pas les votes hors-ligne, elle permet d''activer des sous-secteurs et fonctionne avec un gestionnaire d''autorisation qui associe un secteur à l''utilisateur. Assurez-vous de sélectionner cette autorisation dans les paramètres d''autorisation ci-dessous. Pour que cela fonctionne, les secteurs doivent être configurées de manière hiérarchique : 1 Parent - N Enfants. Pour plus d''informations sur le fonctionnement de cette configuration, cliquez <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">ici</a>.'
278
+ only_global_scope_enabled_help: Cochez cette case si vous avez activé "Autoriser les signatures par sous-secteur" et configurer la portée globale comme votre portée parente. En activant cette option, la sélection du type d'initiative sera ignorée dans l'assistant de création d'initiative. Pour plus d'informations sur le fonctionnement de cette configuration, voir ce <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">lien</a>.
279
279
  options: Paramètres
280
280
  title: informations générales
281
281
  initiative_type_scopes:
@@ -86,7 +86,7 @@ fr:
86
86
  title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Rechercher %{collection} par titre, description, ID ou nom de l'auteur.
87
87
  menu:
88
88
  attachments: Pièces jointes
89
- committee_members: Membres de comité
89
+ committee_members: Membres du comité
90
90
  components: Fonctionnalités
91
91
  information: Informations
92
92
  initiatives: Initiatives
@@ -274,8 +274,8 @@ fr:
274
274
  update: Mettre à jour
275
275
  form:
276
276
  authorizations: Paramètres d'autorisation
277
- child_scope_threshold_enabled_help: 'Cette option de configuration ne gère pas les votes hors-ligne, elle permet d''activer des sous-secteurs et fonctionne avec un gestionnaire d''autorisation qui associe un secteur à l''utilisateur. Assurez-vous de sélectionner une telle autorisation dans les paramètres d''autorisation ci-dessous. Pour que cela fonctionne, les secteurs doivent être configurées de manière hiérarchique : 1 Parent - N Enfants. Pour plus d''informations sur le fonctionnement de cette configuration, cliquez <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">ici</a>.'
278
- only_global_scope_enabled_help: Cochez cette case si vous avez activé "Autoriser les signatures par sous-secteur" et configuré la portée globale comme votre portée parente. En activant cette option, la sélection du type d'initiative sera ignorée dans l'assistant de création d'initiative. Pour plus d'informations sur le fonctionnement de cette configuration, voir ce <a href="https://docs.decidim.org/admin-manual/en/initiatives/" target="_blank">lien</a>.
277
+ child_scope_threshold_enabled_help: 'Cette option de configuration ne gère pas les votes hors-ligne, elle permet d''activer des sous-secteurs et fonctionne avec un gestionnaire d''autorisation qui associe un secteur à l''utilisateur. Assurez-vous de sélectionner cette autorisation dans les paramètres d''autorisation ci-dessous. Pour que cela fonctionne, les secteurs doivent être configurées de manière hiérarchique : 1 Parent - N Enfants. Pour plus d''informations sur le fonctionnement de cette configuration, cliquez <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">ici</a>.'
278
+ only_global_scope_enabled_help: Cochez cette case si vous avez activé "Autoriser les signatures par sous-secteur" et configurer la portée globale comme votre portée parente. En activant cette option, la sélection du type d'initiative sera ignorée dans l'assistant de création d'initiative. Pour plus d'informations sur le fonctionnement de cette configuration, voir ce <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">lien</a>.
279
279
  options: Paramètres
280
280
  title: informations générales
281
281
  initiative_type_scopes:
@@ -340,10 +340,10 @@ fr:
340
340
  back_to_initiatives: Retour à l'index des initiatives
341
341
  callout_text: Bravo ! Votre pétition a été créée avec succès.
342
342
  confirm: Vous allez envoyer la pétition à un administrateur pour qu'il la consulte et la publie. Une fois publiée, vous ne serez plus en mesure de l'éditer. Êtes-vous sûr que votre pétition est prête ?
343
- edit_my_initiative: Modifier mon initiative
343
+ edit_my_initiative: Modifier ma pétition
344
344
  go_to_my_initiatives: Consulter mes initiatives
345
345
  more_information: "(Plus d'informations)"
346
- send_my_initiative: Envoyer mon initiative pour la validation technique
346
+ send_my_initiative: Envoyer ma pétition pour validation technique
347
347
  finish_help:
348
348
  access_reminder: Vous pouvez accéder à vos pétitions via le filtre %{link} sur la page Pétitions.
349
349
  publish_helper_text: N'oubliez pas que pour que votre pétition soit publiée, vous devez compléter les informations requises et <strong>l'envoyer à la validation technique</strong> pour qu'un administrateur puisse l'examiner.
@@ -397,7 +397,7 @@ fr:
397
397
  email_subject: Initiative soutenue par %{author_nickname}
398
398
  notification_title: L'initiative<a href="%{resource_path}">%{resource_title}</a> a été soutenue par <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
399
399
  revoke_membership_request:
400
- email_intro: "%{author_nickname} a accepté votre candidature pour faire partie du comité de promotion de la pétition %{resource_title}."
400
+ email_intro: "%{author_nickname} a rejeté votre candidature pour faire partie du comité de promotion de la pétition %{resource_title}."
401
401
  email_outro: 'Vous avez reçu cette notification parce que vous avez demandé à rejoindre cette pétition : %{resource_title}.'
402
402
  email_subject: "%{author_nickname} a rejeté votre candidature au comité de promotion"
403
403
  notification_title: <a href="%{author_profile_url}">%{author_nickname}</a> a rejeté votre candidature pour faire partie du comité de promotion de la pétition suivante <a href="%{resource_url}">%{resource_title}</a>.
@@ -515,7 +515,7 @@ fr:
515
515
  section: 'Si l''organisme le demande, veuillez imprimer et remplir ce formulaire pour soumettre si indiqué:'
516
516
  signature: Signature
517
517
  result:
518
- answer_title: Cette initiative a reçu une réponse
518
+ answer_title: Cette pétition a reçu une réponse
519
519
  initiative_rejected_reason: Cette initiative a été rejetée car elle n'a pas atteint le nombre de signatures requis dans le délai de collecte.
520
520
  show:
521
521
  any_vote_method: Cette pétition recueille des signatures en ligne ainsi qu'en présentiel.
@@ -286,6 +286,8 @@ gl:
286
286
  email_outro: Recibiches esta notificación porque estás seguindo %{author_nickname}. Podes deixar de recibir notificacións seguindo a ligazón anterior.
287
287
  email_subject: Iniciativa aprobada por %{author_nickname}
288
288
  notification_title: A <a href="%{resource_path}">%{resource_title}</a> iniciativa foi aprobada por <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
289
+ form:
290
+ attachment_legend: "(Opcional) Engade un anexo"
289
291
  index:
290
292
  title: Iniciativas
291
293
  initiative_signatures: