decidim-budgets 0.26.3 → 0.26.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9783071f2f03519467687fece2911d28f77971cc971229a3e478b463445bf59d
4
- data.tar.gz: 2ba0b7f432155e01fc61319749d71b5d4addf9dc440adbfbe1e1e9fa564169bf
3
+ metadata.gz: 2a7eb220680e03c3f8ca012a81217a443c5672804687417251c1dffbec45b0e0
4
+ data.tar.gz: 49dfd04c441922ca035ba2960af1fa9bcecdc96a714f4ce8c8aa174a0518c6ed
5
5
  SHA512:
6
- metadata.gz: fecaa1b8879eece732abf6fb6d32a23655a135eeb5e2748cbb5e16ee0c031b23af76a3d61c8a7e7cc377997a31dc875db39a6d621ded6c1977c6bfaa6a567411
7
- data.tar.gz: cdad13c11987cebe70b880c927626e85d91938ea0f47523541d2ba41543eec00a6547b5ad3473b990f861333e0190b9d2a9c9bc7ba2dfbed2e9388d1b68b130a
6
+ metadata.gz: d12adac75f375e11e435c5615036e501597afe8a4e3708f7d7444ebb7c9205748962171e8025f8f5570dc0359a62abdac396c90fca00d869dc1823cd655eaee7
7
+ data.tar.gz: 3aa335a63d70836da050ef789353eef75cef7e0c1943b055e219d0d2cb7a0e58dc09edf7a09b37a5865b781d2d263e3721d24ea182f773b64922230ca5e57216
@@ -81,7 +81,10 @@ module Decidim
81
81
  end
82
82
 
83
83
  def proposal_already_copied?(original_proposal)
84
- original_proposal.linked_resources(:projects, "included_proposals").any? do |project|
84
+ # Note: we are including also projects from unpublished components
85
+ # because otherwise duplicates could be created until the component is
86
+ # published.
87
+ original_proposal.linked_resources(:projects, "included_proposals", component_published: false).any? do |project|
85
88
  project.budget == form.budget
86
89
  end
87
90
  end
@@ -28,8 +28,8 @@ module Decidim
28
28
  def projects
29
29
  return @projects if @projects
30
30
 
31
- @projects = search.results.page(params[:page]).per(current_component.settings.projects_per_page)
32
- @projects = reorder(@projects)
31
+ @projects = reorder(search.results)
32
+ @projects = @projects.page(params[:page]).per(current_component.settings.projects_per_page)
33
33
  end
34
34
 
35
35
  def project
@@ -40,7 +40,7 @@ ca:
40
40
  actions:
41
41
  attachment_collections: Carpetes
42
42
  attachments: Adjunts
43
- confirm_destroy: Estàs segura que vols eliminar aquest projecte?
43
+ confirm_destroy: Segur que vols eliminar aquest projecte?
44
44
  destroy: Esborrar
45
45
  edit: Editar
46
46
  edit_projects: Gestionar projectes
@@ -257,7 +257,7 @@ cs:
257
257
  few: hlasy
258
258
  many: hlasů
259
259
  other: hlasů
260
- you_voted: Hlasovali jste
260
+ you_voted: Hlasoval jste pro toto
261
261
  project_budget_button:
262
262
  add: Přidat do vašeho hlasování
263
263
  add_descriptive: Přidat k hlasování projekt %{resource_name}
@@ -6,7 +6,7 @@ de:
6
6
  description: Beschreibung
7
7
  title: Titel
8
8
  total_budget: Gesamtbudget
9
- weight: Bestellposition
9
+ weight: Reihenfolge
10
10
  project:
11
11
  budget_amount: Höhe des Budgets
12
12
  decidim_category_id: Kategorie
@@ -245,7 +245,6 @@ de:
245
245
  votes:
246
246
  one: Abstimmung
247
247
  other: Abstimmungen
248
- you_voted: Du hast für dieses gestimmt
249
248
  project_budget_button:
250
249
  add: Zur Abstimmung hinzufügen
251
250
  add_descriptive: Projekt %{resource_name} Ihrer Stimme hinzufügen
@@ -217,7 +217,6 @@ el:
217
217
  votes:
218
218
  one: ψήφος
219
219
  other: ψήφοι
220
- you_voted: Το ψηφίσατε
221
220
  project_budget_button:
222
221
  add: Προσθέστε στην ψήφο σας
223
222
  add_descriptive: Προσθήκη του έργου %{resource_name} στην ψήφο σας
@@ -250,7 +250,7 @@ en:
250
250
  votes:
251
251
  one: vote
252
252
  other: votes
253
- you_voted: You voted this
253
+ you_voted: You voted for this
254
254
  project_budget_button:
255
255
  add: Add to your vote
256
256
  add_descriptive: Add project %{resource_name} to your vote
@@ -40,7 +40,7 @@ es:
40
40
  actions:
41
41
  attachment_collections: Carpetas
42
42
  attachments: Adjuntos
43
- confirm_destroy: '¿Estás segura de que deseas eliminar este proyecto?'
43
+ confirm_destroy: '¿Seguro que deseas eliminar este proyecto?'
44
44
  destroy: Borrar
45
45
  edit: Editar
46
46
  edit_projects: Gestionar proyectos
@@ -179,7 +179,7 @@ es:
179
179
  description: Este proyecto sobrepasa el presupuesto máximo y no se puede añadir. Si lo deseas, puedes eliminar un proyecto que ya hayas seleccionado, o votar de acuerdo a tus preferencias.
180
180
  title: Se ha superado el número máximo de proyectos
181
181
  budget_summary:
182
- are_you_sure: '¿Estás seguro de que deseas cancelar tu voto?'
182
+ are_you_sure: '¿Seguro que deseas cancelar tu voto?'
183
183
  assigned: 'Asignado:'
184
184
  cancel_order: eliminar tu voto y empezar de nuevo
185
185
  checked_out:
@@ -13,8 +13,11 @@ eu:
13
13
  decidim_scope_id: Esparrua
14
14
  description: Descripción
15
15
  proposal_ids: Honekin lotutako proposamenak
16
- selected: Hautatua inplementatzeko
16
+ proposals: Proposamenak
17
+ selected: Ezarpenerako hautatuak
17
18
  title: Titulua
19
+ proposals_import:
20
+ scope_id: Eremua
18
21
  activerecord:
19
22
  models:
20
23
  decidim/budgets/project:
@@ -26,6 +29,8 @@ eu:
26
29
  projects:
27
30
  category_id_eq:
28
31
  label: Kategoria
32
+ scope_id_eq:
33
+ label: Eremua
29
34
  selected_at_null:
30
35
  label: Hautatua
31
36
  values:
@@ -236,7 +241,7 @@ eu:
236
241
  votes:
237
242
  one: Botoa
238
243
  other: botoak
239
- you_voted: Hau bozkatu duzu
244
+ you_voted: Honen aldeko botoa eman duzu
240
245
  project_budget_button:
241
246
  add: Gehitu zure botoari
242
247
  add_descriptive: Gehitu %{resource_name} proiektua zure botoari
@@ -249,7 +249,7 @@ fr-CA:
249
249
  votes:
250
250
  one: vote
251
251
  other: votes
252
- you_voted: Vous avez voté pour
252
+ you_voted: Vous avez voté pour ceci
253
253
  project_budget_button:
254
254
  add: Ajouter à votre vote
255
255
  add_descriptive: Ajouter le projet %{resource_name} à votre vote
@@ -249,7 +249,7 @@ fr:
249
249
  votes:
250
250
  one: vote
251
251
  other: votes
252
- you_voted: Vous avez voté pour
252
+ you_voted: Vous avez voté pour ceci
253
253
  project_budget_button:
254
254
  add: Ajouter à votre vote
255
255
  add_descriptive: Ajouter le projet %{resource_name} à votre vote
@@ -203,7 +203,6 @@ gl:
203
203
  votes:
204
204
  one: voto
205
205
  other: votos
206
- you_voted: Votaches isto
207
206
  project_budget_button:
208
207
  add: Engadir ao teu voto
209
208
  add_descriptive: Engadir o proxecto %{resource_name} ao teu voto
@@ -0,0 +1 @@
1
+ gn:
@@ -226,7 +226,6 @@ it:
226
226
  votes:
227
227
  one: voto
228
228
  other: voti
229
- you_voted: Hai votato
230
229
  project_budget_button:
231
230
  add: Aggiungi al tuo voto
232
231
  add_descriptive: Aggiungi progetto %{resource_name} al tuo voto
@@ -245,7 +245,7 @@ ja:
245
245
  view: 表示
246
246
  votes:
247
247
  other: 投票
248
- you_voted: 投票済
248
+ you_voted: あなたの投票
249
249
  project_budget_button:
250
250
  add: 投票に追加
251
251
  add_descriptive: プロジェクト %{resource_name} をあなたの投票に追加
@@ -0,0 +1 @@
1
+ ka:
@@ -209,7 +209,6 @@ lb:
209
209
  votes:
210
210
  one: Abstimmung
211
211
  other: Abstimmungen
212
- you_voted: Du hast für dieses gestimmt
213
212
  project_budget_button:
214
213
  add: Zur Abstimmung hinzufügen
215
214
  add_descriptive: Projekt %{resource_name} Ihrer Stimme hinzufügen
@@ -0,0 +1 @@
1
+ lo:
@@ -257,7 +257,6 @@ lt:
257
257
  few: balsai
258
258
  many: balsai
259
259
  other: balsai
260
- you_voted: Balsavote už
261
260
  project_budget_button:
262
261
  add: Pridėti prie balsų
263
262
  add_descriptive: Pridėti projektą %{resource_name} prie balsų
@@ -249,7 +249,6 @@ nl:
249
249
  votes:
250
250
  one: stem
251
251
  other: stemmen
252
- you_voted: Je stemde hiervoor
253
252
  project_budget_button:
254
253
  add: Voeg toe aan je stem
255
254
  add_descriptive: Voeg project %{resource_name} toe aan je stem
@@ -240,7 +240,6 @@
240
240
  votes:
241
241
  one: stem
242
242
  other: stemmer
243
- you_voted: Du stemte dette
244
243
  project_budget_button:
245
244
  add: Legg til i stemmen din
246
245
  add_descriptive: Legg til prosjektet %{resource_name} til din stemme
@@ -226,7 +226,6 @@ pl:
226
226
  few: głosów
227
227
  many: głosów
228
228
  other: głosów
229
- you_voted: Zagłosowałeś na
230
229
  project_budget_button:
231
230
  add: Dodaj do swojego głosu
232
231
  add_descriptive: Dodaj projekt %{resource_name} do swojego głosu
@@ -217,7 +217,6 @@ pt-BR:
217
217
  votes:
218
218
  one: voto
219
219
  other: votos
220
- you_voted: Você votou nisto
221
220
  project_budget_button:
222
221
  add: Adicione ao seu voto
223
222
  add_descriptive: Adicione o projeto %{resource_name} ao seu voto
@@ -220,7 +220,6 @@ pt:
220
220
  votes:
221
221
  one: Votações
222
222
  other: Votações
223
- you_voted: Votou isto
224
223
  project_budget_button:
225
224
  add: Adicionar à sua votação
226
225
  add_descriptive: Adicionar projeto %{resource_name} à sua votação
@@ -13,8 +13,11 @@ ro:
13
13
  decidim_scope_id: Domeniu de interes
14
14
  description: Descriere
15
15
  proposal_ids: Propuneri asociate
16
+ proposals: Propuneri
16
17
  selected: Selectate pentru implementare
17
18
  title: Titlu
19
+ proposals_import:
20
+ scope_id: Domeniu de interes
18
21
  activerecord:
19
22
  models:
20
23
  decidim/budgets/project:
@@ -244,7 +247,6 @@ ro:
244
247
  one: vot
245
248
  few: voturi
246
249
  other: voturi
247
- you_voted: Ai votat pentru
248
250
  project_budget_button:
249
251
  add: Adaugă la votul tău
250
252
  add_descriptive: Adaugă proiectul %{resource_name} la votul tău
@@ -6,7 +6,7 @@ sv:
6
6
  description: Beskrivning
7
7
  title: Titel
8
8
  total_budget: Total budget
9
- weight: Vikt
9
+ weight: Ordning
10
10
  project:
11
11
  budget_amount: Belopp
12
12
  decidim_category_id: Kategori
@@ -167,10 +167,13 @@ sv:
167
167
  title: Bekräfta röst
168
168
  budget_excess:
169
169
  budget_excess:
170
+ description: Detta projekt överstiger den maximala budgeten och kan inte tilläggas. Du måste först ta bort ett projekt innan du lägger till ett nytt.
170
171
  title: Maximal budget överskriden
171
172
  close: Stäng
173
+ description: Detta projekt överstiger den maximala budgeten och kan inte tilläggas. Du måste först ta bort ett projekt innan du lägger till ett nytt.
172
174
  ok: OK
173
175
  projects_excess:
176
+ description: Du har valt för många projekt. Du måste först ta bort ett projekt innan du lägger till ett nytt.
174
177
  title: Maximalt antal projekt överskridet
175
178
  budget_summary:
176
179
  are_you_sure: Vill du dra tillbaka din röst?
@@ -243,7 +246,6 @@ sv:
243
246
  votes:
244
247
  one: röst
245
248
  other: röster
246
- you_voted: Det här är din röst
247
249
  project_budget_button:
248
250
  add: Lägg till i din röst
249
251
  add_descriptive: Lägg till projekt %{resource_name} till din röst
@@ -209,7 +209,6 @@ tr:
209
209
  votes:
210
210
  one: oy
211
211
  other: oylar
212
- you_voted: Buna oy verdin
213
212
  project_budget_button:
214
213
  add: Oyunuza ekleyin
215
214
  add_descriptive: Oyunuza %{resource_name} projesini ekleyin
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-budgets version.
5
5
  module Budgets
6
6
  def self.version
7
- "0.26.3"
7
+ "0.26.5"
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-budgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.3
4
+ version: 0.26.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-09-29 00:00:00.000000000 Z
13
+ date: 2023-02-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-comments
@@ -18,70 +18,70 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.26.3
21
+ version: 0.26.5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.26.3
28
+ version: 0.26.5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-core
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.26.3
35
+ version: 0.26.5
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.26.3
42
+ version: 0.26.5
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-admin
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.26.3
49
+ version: 0.26.5
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.26.3
56
+ version: 0.26.5
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-dev
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.26.3
63
+ version: 0.26.5
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.26.3
70
+ version: 0.26.5
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-proposals
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.26.3
77
+ version: 0.26.5
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.26.3
84
+ version: 0.26.5
85
85
  description: A budgets component for decidim's participatory spaces.
86
86
  email:
87
87
  - josepjaume@gmail.com
@@ -245,6 +245,7 @@ files:
245
245
  - config/locales/fr.yml
246
246
  - config/locales/ga-IE.yml
247
247
  - config/locales/gl.yml
248
+ - config/locales/gn-PY.yml
248
249
  - config/locales/hr-HR.yml
249
250
  - config/locales/hr.yml
250
251
  - config/locales/hu.yml
@@ -253,10 +254,12 @@ files:
253
254
  - config/locales/is.yml
254
255
  - config/locales/it.yml
255
256
  - config/locales/ja.yml
257
+ - config/locales/ka-GE.yml
256
258
  - config/locales/ko-KR.yml
257
259
  - config/locales/ko.yml
258
260
  - config/locales/lb-LU.yml
259
261
  - config/locales/lb.yml
262
+ - config/locales/lo-LA.yml
260
263
  - config/locales/lt-LT.yml
261
264
  - config/locales/lt.yml
262
265
  - config/locales/lv.yml