decidim-budgets 0.27.10 → 0.28.0.rc4

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.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/decidim/budgets/budget/_budget-vote-button.scss +5 -5
  4. data/app/cells/decidim/budgets/base_cell.rb +1 -1
  5. data/app/cells/decidim/budgets/budget_cell.rb +6 -1
  6. data/app/cells/decidim/budgets/budget_information_modal/show.erb +14 -26
  7. data/app/cells/decidim/budgets/budget_list_item/projects_count.erb +6 -0
  8. data/app/cells/decidim/budgets/budget_list_item/show.erb +35 -30
  9. data/app/cells/decidim/budgets/budget_list_item/vote_action.erb +13 -0
  10. data/app/cells/decidim/budgets/budget_list_item_cell.rb +24 -1
  11. data/app/cells/decidim/budgets/budget_metadata_cell.rb +29 -0
  12. data/app/cells/decidim/budgets/budget_s_cell.rb +15 -0
  13. data/app/cells/decidim/budgets/budgets_header/show.erb +2 -6
  14. data/app/cells/decidim/budgets/budgets_list/card_list.erb +8 -13
  15. data/app/cells/decidim/budgets/budgets_list/main_list.erb +5 -0
  16. data/app/cells/decidim/budgets/budgets_list/show.erb +12 -16
  17. data/app/cells/decidim/budgets/budgets_list/voted.erb +8 -44
  18. data/app/cells/decidim/budgets/budgets_list_cell.rb +34 -0
  19. data/app/cells/decidim/budgets/limit_announcement/show.erb +3 -0
  20. data/app/cells/decidim/budgets/limit_announcement_cell.rb +2 -2
  21. data/app/cells/decidim/budgets/order_activity_cell.rb +1 -4
  22. data/app/cells/decidim/budgets/project_cell.rb +6 -1
  23. data/app/cells/decidim/budgets/project_l/extra_data.erb +6 -0
  24. data/app/cells/decidim/budgets/project_l/metadata.erb +4 -0
  25. data/app/cells/decidim/budgets/project_l_cell.rb +38 -0
  26. data/app/cells/decidim/budgets/project_metadata_cell.rb +78 -0
  27. data/app/cells/decidim/budgets/project_s_cell.rb +21 -0
  28. data/app/cells/decidim/budgets/project_tags/show.erb +1 -0
  29. data/app/cells/decidim/budgets/project_vote_button/show.erb +21 -15
  30. data/app/cells/decidim/budgets/project_vote_button_cell.rb +69 -1
  31. data/app/cells/decidim/budgets/project_voted_hint_cell.rb +1 -1
  32. data/app/cells/decidim/budgets/project_votes_count_cell.rb +9 -8
  33. data/app/commands/decidim/budgets/admin/create_project.rb +0 -1
  34. data/app/commands/decidim/budgets/admin/import_proposals_to_budgets.rb +1 -1
  35. data/app/commands/decidim/budgets/admin/update_project.rb +1 -2
  36. data/app/commands/decidim/budgets/admin/update_project_scope.rb +1 -1
  37. data/app/commands/decidim/budgets/admin/update_project_selection.rb +1 -1
  38. data/app/commands/decidim/budgets/admin/update_projects_budget.rb +57 -0
  39. data/app/controllers/concerns/decidim/budgets/admin/filterable.rb +1 -1
  40. data/app/controllers/concerns/decidim/budgets/needs_current_order.rb +2 -2
  41. data/app/controllers/decidim/budgets/admin/budgets_controller.rb +5 -5
  42. data/app/controllers/decidim/budgets/admin/projects_controller.rb +52 -10
  43. data/app/controllers/decidim/budgets/admin/proposals_imports_controller.rb +1 -1
  44. data/app/controllers/decidim/budgets/application_controller.rb +0 -4
  45. data/app/controllers/decidim/budgets/budgets_controller.rb +9 -0
  46. data/app/controllers/decidim/budgets/line_items_controller.rb +10 -16
  47. data/app/controllers/decidim/budgets/orders_controller.rb +7 -2
  48. data/app/controllers/decidim/budgets/projects_controller.rb +51 -4
  49. data/app/forms/decidim/budgets/admin/project_form.rb +1 -1
  50. data/app/helpers/decidim/budgets/application_helper.rb +4 -0
  51. data/app/helpers/decidim/budgets/projects_helper.rb +89 -33
  52. data/app/jobs/decidim/budgets/send_vote_reminder_job.rb +1 -1
  53. data/app/mailers/decidim/budgets/order_summary_mailer.rb +1 -1
  54. data/app/mailers/decidim/budgets/vote_reminder_mailer.rb +1 -1
  55. data/app/models/decidim/budgets/budget.rb +1 -0
  56. data/app/models/decidim/budgets/project.rb +17 -7
  57. data/app/packs/entrypoints/decidim_budgets.js +2 -0
  58. data/app/packs/src/decidim/budgets/exit_handler.js +11 -8
  59. data/app/packs/src/decidim/budgets/progressFixed.js +25 -11
  60. data/app/packs/src/decidim/budgets/projects.js +15 -10
  61. data/app/packs/stylesheets/budgets.scss +273 -0
  62. data/app/presenters/decidim/budgets/admin_log/budget_presenter.rb +2 -2
  63. data/app/presenters/decidim/budgets/admin_log/project_presenter.rb +2 -2
  64. data/app/services/decidim/budgets/order_reminder_generator.rb +4 -4
  65. data/app/views/decidim/budgets/admin/budgets/_form.html.erb +17 -12
  66. data/app/views/decidim/budgets/admin/budgets/edit.html.erb +16 -6
  67. data/app/views/decidim/budgets/admin/budgets/index.html.erb +58 -64
  68. data/app/views/decidim/budgets/admin/budgets/new.html.erb +16 -6
  69. data/app/views/decidim/budgets/admin/projects/_bulk-actions.html.erb +19 -10
  70. data/app/views/decidim/budgets/admin/projects/_form.html.erb +31 -35
  71. data/app/views/decidim/budgets/admin/projects/_project-tr.html.erb +15 -13
  72. data/app/views/decidim/budgets/admin/projects/bulk_actions/_budget-change.html.erb +22 -0
  73. data/app/views/decidim/budgets/admin/projects/bulk_actions/_change-selected.html.erb +3 -3
  74. data/app/views/decidim/budgets/admin/projects/bulk_actions/_dropdown.html.erb +8 -2
  75. data/app/views/decidim/budgets/admin/projects/bulk_actions/_recategorize.html.erb +3 -3
  76. data/app/views/decidim/budgets/admin/projects/bulk_actions/_scope-change.html.erb +5 -8
  77. data/app/views/decidim/budgets/admin/projects/edit.html.erb +16 -6
  78. data/app/views/decidim/budgets/admin/projects/index.html.erb +26 -31
  79. data/app/views/decidim/budgets/admin/projects/new.html.erb +16 -6
  80. data/app/views/decidim/budgets/admin/projects/update_attribute.js.erb +8 -4
  81. data/app/views/decidim/budgets/admin/proposals_imports/new.html.erb +40 -28
  82. data/app/views/decidim/budgets/budgets/index.html.erb +21 -3
  83. data/app/views/decidim/budgets/budgets/index.js.erb +6 -0
  84. data/app/views/decidim/budgets/line_items/update_budget.js.erb +21 -11
  85. data/app/views/decidim/budgets/projects/_addition_selector.html.erb +16 -0
  86. data/app/views/decidim/budgets/projects/_budget_confirm.html.erb +42 -31
  87. data/app/views/decidim/budgets/projects/_budget_excess.html.erb +12 -12
  88. data/app/views/decidim/budgets/projects/_budget_summary.html.erb +2 -75
  89. data/app/views/decidim/budgets/projects/_exit_modal.html.erb +15 -18
  90. data/app/views/decidim/budgets/projects/_linked_projects.html.erb +3 -12
  91. data/app/views/decidim/budgets/projects/_order.html.erb +1 -0
  92. data/app/views/decidim/budgets/projects/_order_progress_progressbar_marks_right.html.erb +10 -0
  93. data/app/views/decidim/budgets/projects/_order_progress_summary_content.html.erb +113 -0
  94. data/app/views/decidim/budgets/projects/_order_total_budget.html.erb +6 -7
  95. data/app/views/decidim/budgets/projects/_project.html.erb +2 -1
  96. data/app/views/decidim/budgets/projects/_project_budget_button.html.erb +11 -19
  97. data/app/views/decidim/budgets/projects/_projects.html.erb +8 -6
  98. data/app/views/decidim/budgets/projects/_projects_count.html.erb +5 -0
  99. data/app/views/decidim/budgets/projects/_projects_list.html.erb +3 -0
  100. data/app/views/decidim/budgets/projects/index.html.erb +58 -55
  101. data/app/views/decidim/budgets/projects/index.js.erb +5 -4
  102. data/app/views/decidim/budgets/projects/show.html.erb +78 -51
  103. data/config/assets.rb +0 -1
  104. data/config/locales/ar.yml +0 -50
  105. data/config/locales/bg.yml +0 -381
  106. data/config/locales/ca.yml +75 -84
  107. data/config/locales/cs.yml +73 -82
  108. data/config/locales/de.yml +76 -85
  109. data/config/locales/el.yml +34 -72
  110. data/config/locales/en.yml +79 -88
  111. data/config/locales/es-MX.yml +73 -82
  112. data/config/locales/es-PY.yml +73 -82
  113. data/config/locales/es.yml +75 -84
  114. data/config/locales/eu.yml +74 -86
  115. data/config/locales/fi-plain.yml +75 -84
  116. data/config/locales/fi.yml +79 -88
  117. data/config/locales/fr-CA.yml +74 -86
  118. data/config/locales/fr.yml +78 -90
  119. data/config/locales/ga-IE.yml +0 -12
  120. data/config/locales/gl.yml +0 -58
  121. data/config/locales/hu.yml +58 -81
  122. data/config/locales/id-ID.yml +0 -38
  123. data/config/locales/is-IS.yml +0 -22
  124. data/config/locales/it.yml +0 -84
  125. data/config/locales/ja.yml +69 -81
  126. data/config/locales/ko.yml +0 -54
  127. data/config/locales/lb.yml +0 -85
  128. data/config/locales/lt.yml +59 -82
  129. data/config/locales/lv.yml +0 -44
  130. data/config/locales/nl.yml +0 -96
  131. data/config/locales/no.yml +0 -84
  132. data/config/locales/pl.yml +0 -167
  133. data/config/locales/pt-BR.yml +9 -141
  134. data/config/locales/pt.yml +0 -85
  135. data/config/locales/ro-RO.yml +0 -95
  136. data/config/locales/ru.yml +0 -41
  137. data/config/locales/sk.yml +0 -44
  138. data/config/locales/sq-AL.yml +0 -52
  139. data/config/locales/sr-CS.yml +0 -4
  140. data/config/locales/sv.yml +42 -150
  141. data/config/locales/tr-TR.yml +2 -82
  142. data/config/locales/uk.yml +0 -41
  143. data/config/locales/zh-CN.yml +0 -65
  144. data/config/locales/zh-TW.yml +13 -59
  145. data/lib/decidim/budgets/admin_engine.rb +3 -2
  146. data/lib/decidim/budgets/component.rb +4 -90
  147. data/lib/decidim/budgets/engine.rb +30 -10
  148. data/lib/decidim/budgets/project_serializer.rb +3 -3
  149. data/lib/decidim/budgets/seeds.rb +69 -0
  150. data/lib/decidim/budgets/test/factories.rb +23 -37
  151. data/lib/decidim/budgets/version.rb +1 -1
  152. data/lib/decidim/budgets/workflows/base.rb +1 -1
  153. metadata +46 -42
  154. data/app/cells/decidim/budgets/budget_m/data.erb +0 -12
  155. data/app/cells/decidim/budgets/budget_m/footer.erb +0 -5
  156. data/app/cells/decidim/budgets/budget_m_cell.rb +0 -16
  157. data/app/cells/decidim/budgets/project_list_item/project_data.erb +0 -19
  158. data/app/cells/decidim/budgets/project_list_item/project_image.erb +0 -5
  159. data/app/cells/decidim/budgets/project_list_item/project_text.erb +0 -23
  160. data/app/cells/decidim/budgets/project_list_item/show.erb +0 -5
  161. data/app/cells/decidim/budgets/project_list_item_cell.rb +0 -70
  162. data/app/cells/decidim/budgets/project_m/data.erb +0 -12
  163. data/app/cells/decidim/budgets/project_m/footer.erb +0 -5
  164. data/app/cells/decidim/budgets/project_m_cell.rb +0 -22
  165. data/app/packs/stylesheets/decidim/budgets/_budgets.scss +0 -3
  166. data/app/packs/stylesheets/decidim/budgets/budget/_budget-list.scss +0 -198
  167. data/app/packs/stylesheets/decidim/budgets/budget/_budget-meter.scss +0 -83
  168. data/app/packs/stylesheets/decidim/budgets/budget/_progress.scss +0 -19
  169. data/app/views/decidim/budgets/admin/projects/proposals_picker.html.erb +0 -1
  170. data/app/views/decidim/budgets/projects/_filters.html.erb +0 -30
  171. data/app/views/decidim/budgets/projects/_filters_small_view.html.erb +0 -18
  172. data/app/views/decidim/budgets/projects/_order_progress.html.erb +0 -32
  173. data/app/views/decidim/budgets/projects/_order_selected_projects.html.erb +0 -27
  174. data/config/locales/he-IL.yml +0 -1
  175. data/decidim-budgets.gemspec +0 -34
  176. data/lib/decidim/budgets/seeds/city.jpeg +0 -0
@@ -49,18 +49,19 @@ en:
49
49
  edit: Edit
50
50
  edit_projects: Manage projects
51
51
  import: Import proposals to projects
52
- new: New %{name}
52
+ new_budget: New budget
53
+ new_project: New project
53
54
  preview: Preview
54
55
  send_voting_reminders: Send voting reminders
55
56
  title: Actions
56
57
  admin:
57
58
  budgets:
58
59
  create:
59
- invalid: There was a problem creating this budget
60
- success: Budget successfully created
60
+ invalid: There was a problem creating this budget.
61
+ success: Budget successfully created.
61
62
  destroy:
62
- invalid: There was a problem deleting this budget
63
- success: Budget successfully deleted
63
+ invalid: There was a problem deleting this budget.
64
+ success: Budget successfully deleted.
64
65
  edit:
65
66
  title: Edit budget
66
67
  update: Update budget
@@ -74,8 +75,8 @@ en:
74
75
  create: Create budget
75
76
  title: New budget
76
77
  update:
77
- invalid: There was a problem updating this budget
78
- success: Budget successfully updated
78
+ invalid: There was a problem updating this budget.
79
+ success: Budget successfully updated.
79
80
  exports:
80
81
  projects: Projects
81
82
  models:
@@ -85,16 +86,17 @@ en:
85
86
  name: Project
86
87
  projects:
87
88
  create:
88
- invalid: There was a problem creating this project
89
- success: Project successfully created
89
+ invalid: There was a problem creating this project.
90
+ success: Project successfully created.
90
91
  destroy:
91
- success: Project successfully deleted
92
+ success: Project successfully deleted.
92
93
  edit:
93
94
  title: Edit project
94
95
  update: Update
95
96
  index:
96
97
  actions: Actions
97
98
  cancel: Cancel
99
+ change_budget: Change budget
98
100
  change_category: Change category
99
101
  change_scope: Change scope
100
102
  change_selected: Change selected state
@@ -103,41 +105,43 @@ en:
103
105
  pending_orders: Pending votes
104
106
  select_for_implementation: Select for implementation
105
107
  selected: Selected
106
- selected_options:
107
- 'no': 'No'
108
- 'yes': 'Yes'
109
108
  title: Projects
110
109
  update: Update
110
+ update_budget_button: Update project's budget
111
111
  update_scope_button: Update scope
112
112
  new:
113
113
  create: Create
114
114
  title: New project
115
115
  update:
116
- invalid: There was a problem updating this project
117
- success: Project successfully updated
116
+ invalid: There was a problem updating this project.
117
+ success: Project successfully updated.
118
+ update_budget:
119
+ invalid: 'These projects already are in the same budget or their budgets are more than the maximum allowed: %{projects}.'
120
+ select_a_project: Please select a project.
121
+ success: 'Projects successfully updated to the %{subject_name} budget: %{projects}.'
118
122
  update_category:
119
123
  invalid: 'These projects already had the %{subject_name} category: %{projects}.'
120
- select_a_category: Please select a category
121
- select_a_project: Please select a project
124
+ select_a_category: Please select a category.
125
+ select_a_project: Please select a project.
122
126
  success: 'Projects successfully updated to the %{subject_name} category: %{projects}.'
123
127
  update_scope:
124
128
  invalid: 'These projects already had the %{subject_name} scope: %{projects}.'
125
- select_a_project: Please select a project
126
- select_a_scope: Please select a scope
129
+ select_a_project: Please select a project.
130
+ select_a_scope: Please select a scope.
127
131
  success: 'Projects successfully updated to the %{subject_name} scope: %{projects}.'
128
132
  update_selected:
129
133
  invalid:
130
134
  selected: 'These projects were already selected for implementation: %{projects}.'
131
135
  unselected: 'These projects were already unselected from implementation: %{projects}.'
132
- select_a_project: Please select a project
133
- select_a_selection: Please select an implementation state
136
+ select_a_project: Please select a project.
137
+ select_a_selection: Please select an implementation state.
134
138
  success:
135
139
  selected: 'These projects were successfully selected for implementation: %{projects}.'
136
140
  unselected: 'These projects were successfully unselected from implementation: %{projects}.'
137
141
  proposals_imports:
138
142
  create:
139
- invalid: There was a problem importing the proposals into projects
140
- success: "%{number} proposals successfully imported into projects"
143
+ invalid: There was a problem importing the proposals into projects.
144
+ success: "%{number} proposals successfully imported into projects."
141
145
  new:
142
146
  create: Import proposals to projects
143
147
  default_budget: Default budget
@@ -145,7 +149,7 @@ en:
145
149
  no_components: There are no other proposal components in this participatory space to import the proposals into projects.
146
150
  origin_component_id: Origin component
147
151
  select_component: Please select a component
148
- title: Import proposals
152
+ title: Import proposals to projects
149
153
  reminders:
150
154
  orders:
151
155
  description: Users will receive an email with links to the budgets where they have pending order.
@@ -161,32 +165,33 @@ en:
161
165
  create: "%{user_name} created the %{resource_name} project in the %{space_name} space"
162
166
  delete: "%{user_name} deleted the %{resource_name} project in the %{space_name} space"
163
167
  update: "%{user_name} updated the %{resource_name} project in the %{space_name} space"
164
- budget:
165
- view: View all budget projects
166
168
  budget_information_modal:
167
169
  back_to: Back to %{component_name}
168
170
  close_modal: Close modal
169
171
  continue: Continue
170
172
  more_information: More information
171
- budget_list_item:
172
- voting_finished: You have voted in this budget
173
- voting_started: You have started to vote in this budget
174
173
  budgets_list:
174
+ budgets: Budgets
175
175
  cancel_order:
176
176
  more_than_one: delete your vote on %{name} and start over
177
177
  only_one: delete your vote and start over.
178
- finished_message: You've finished the voting process. Thanks for participating!
178
+ count:
179
+ one: "%{count} budget"
180
+ other: "%{count} budgets"
181
+ empty: There are no budgets yet
182
+ finished_message: You have finished the voting process. Thanks for participating!
179
183
  highlighted_cta: Vote on %{name}
180
- if_change_opinion: If you've changed your mind, you can
181
- my_budgets: My budgets
184
+ if_change_opinion: If you have changed your mind, you can
182
185
  progress: Finish voting
186
+ remove_vote: Remove vote
183
187
  show: See projects
184
188
  vote: Vote
185
- voted_on: You've voted on %{links}
189
+ voted_budgets: Voted budgets
190
+ voted_on: You have voted on %{links}.
186
191
  last_activity:
187
- new_vote_at_html: "<span>New budgeting vote at %{link}</span>"
192
+ new_vote_at: New budgeting vote at
188
193
  limit_announcement:
189
- cant_vote: You can't vote on this budget. <a href="%{landing_path}">Try on another budget</a>.
194
+ cant_vote: You cannot vote on this budget. <a href="%{landing_path}">Try on another budget</a>.
190
195
  limit_reached: You have active votes in %{links}. To vote on this budget you must <a href="%{landing_path}">delete your vote and start over</a>.
191
196
  models:
192
197
  budget:
@@ -198,7 +203,6 @@ en:
198
203
  fields:
199
204
  category: Category
200
205
  id: ID
201
- scope: Scope
202
206
  title: Title
203
207
  order_summary_mailer:
204
208
  order_summary:
@@ -215,45 +219,27 @@ en:
215
219
  title: Confirm vote
216
220
  budget_excess:
217
221
  budget_excess:
218
- description: This project exceeds the maximum budget and can not be added. If you want, you can delete a project you have already selected, in order to be able to vote again according to your preferences.
222
+ description: This project exceeds the maximum budget and cannot be added. If you want, you can delete a project you have already selected, in order to be able to vote again according to your preferences.
219
223
  title: Maximum budget exceeded
220
- close: Close
221
- description: This project exceeds the maximum budget and can not be added. If you want, you can delete a project you have already selected, in order to be able to vote again according to your preferences.
224
+ description: This project exceeds the maximum budget and cannot be added. If you want, you can delete a project you have already selected, in order to be able to vote again according to your preferences.
222
225
  ok: OK
223
226
  projects_excess:
224
227
  description: This project exceeds the maximum number of projects and cannot be added. If you want, you can delete a project you have already selected, in order to be able to vote again according to your preferences.
225
228
  title: Maximum projects exceeded
226
229
  budget_summary:
227
230
  are_you_sure: Are you sure you want to cancel your vote?
228
- assigned: 'Assigned:'
229
- cancel_order: delete your vote and start over
231
+ cancel_order: delete your vote
230
232
  checked_out:
231
- description: You've already voted for the budget. If you've changed your mind, you can %{cancel_link}.
233
+ description: You have already voted for the budget. If you have changed your mind, you can delete your vote.
232
234
  title: Budget vote completed
233
- minimum_projects_rule:
234
- description: What projects do you think we should allocate budget for? Select at least %{minimum_number} projects you want and vote according to your preferences to define the budget.
235
- instruction: "<li>Select at least %{minimum_number} projects you want and vote according to your preferences to define the budget.</li>"
236
- projects_rule:
237
- description: What projects do you think we should allocate budget for? Select at least %{minimum_number} and up to %{maximum_number} projects you want and vote according to your preferences to define the budget.
238
- instruction: "<li>Select at least %{minimum_number} and up to %{maximum_number} projects you want and vote according to your preferences to define the budget.</li>"
239
- projects_rule_maximum_only:
240
- description: What projects do you think we should allocate budget for? Select up to %{maximum_number} projects you want and vote according to your preferences to define the budget.
241
- instruction: "<li>Select up to %{maximum_number} projects you want and vote according to your preferences to define the budget.</li>"
242
- rules:
243
- title: Budget rules
244
- title: You decide the budget
245
- total_budget: Total budget
246
- total_projects: Total votes
247
- vote_threshold_percent_rule:
248
- description: What projects do you think we should allocate budget for? Assign at least %{minimum_budget} to the projects you want and vote according to your preferences to define the budget.
249
- instruction: "<li>Assign at least %{minimum_budget} to the projects you want and vote according to your preferences to define the budget.</li>"
235
+ vote: Vote budget
250
236
  count:
251
237
  projects_count:
252
238
  one: 1 project
253
239
  other: "%{count} projects"
240
+ empty: There are no projects yet
254
241
  exit_modal:
255
242
  cancel: Return to voting
256
- close_modal: Close modal
257
243
  exit: Exit voting
258
244
  message: Your vote has not been registered because you have not yet completed the voting process. Are you sure you want to exit voting?
259
245
  title: You have not yet voted
@@ -266,21 +252,22 @@ en:
266
252
  all: All
267
253
  not_selected: Not selected
268
254
  selected: Selected
269
- filters_small_view:
270
- close_modal: Close modal
271
- filter: Filter
272
- filter_by: Filter by
273
- unfold: Unfold
274
- index:
275
- view_project: View project
276
255
  order_progress:
277
- vote: Vote
278
- order_selected_projects:
279
- remove: Remove
280
- selected_projects:
281
- one: project selected
282
- other: projects selected
283
- view: View
256
+ assigned: Assigned
257
+ budget: Budget
258
+ dynamic_help:
259
+ keep_adding_projects: Keep adding projects
260
+ minimum_reached: You have reached the minimum to be able to vote
261
+ start_adding_projects: Start adding projects
262
+ minimum: Minimum
263
+ minimum_projects_rule:
264
+ description: Select at least %{minimum_number} projects you want and vote according to your preferences to define the budget.
265
+ projects_rule:
266
+ description: Select at least %{minimum_number} and up to %{maximum_number} projects you want and vote according to your preferences to define the budget.
267
+ projects_rule_maximum_only:
268
+ description: Select up to %{maximum_number} projects you want and vote according to your preferences to define the budget.
269
+ vote_threshold_percent_rule:
270
+ description: Assign at least %{minimum_budget} to the projects you want and vote according to your preferences to define the budget.
284
271
  orders:
285
272
  highest_cost: Highest cost
286
273
  label: Order projects by
@@ -289,23 +276,26 @@ en:
289
276
  random: Random order
290
277
  selected: Selected
291
278
  project:
292
- add: Add project %{resource_name} to your vote
293
- remove: Remove project %{resource_name} from your vote
279
+ add: Add project %{resource_name} to your vote.
280
+ remove: Remove project %{resource_name} from your vote.
294
281
  selected: Selected
295
- view: View
296
282
  votes:
297
283
  one: vote
298
284
  other: votes
299
285
  you_voted: You voted for this
300
286
  project_budget_button:
301
- add: Add to your vote
302
- add_descriptive: Add project %{resource_name} to your vote
303
- added: Added to your vote
304
- added_descriptive: Project %{resource_name} added to your vote
287
+ add: Add
288
+ add_descriptive: Add project %{resource_name} to your vote.
289
+ added: Added
290
+ added_descriptive: Project %{resource_name} added to your vote.
291
+ project_filter:
292
+ added: Added
293
+ all: All
305
294
  projects_for: Projects for %{name}
295
+ select_projects: Select projects
306
296
  show:
307
297
  budget: Budget
308
- view_all_projects: View all projects
298
+ prompt: Select budget
309
299
  vote_reminder_mailer:
310
300
  vote_reminder:
311
301
  email_budgets: 'Areas where you have an unfinished vote:'
@@ -328,8 +318,8 @@ en:
328
318
  comments_max_length: Comments max length (Leave 0 for default value)
329
319
  form:
330
320
  errors:
331
- budget_voting_rule_only_one: Only one voting rule must be enabled
332
- budget_voting_rule_required: One voting rule is required
321
+ budget_voting_rule_only_one: Only one voting rule must be enabled.
322
+ budget_voting_rule_required: One voting rule is required.
333
323
  geocoding_enabled: Geocoding enabled
334
324
  landing_page_content: Budgets landing page
335
325
  more_information_modal: More information modal
@@ -373,11 +363,12 @@ en:
373
363
  notification_title: The <a href="%{resource_path}">%{resource_title}</a> budget is now active for %{participatory_space_title}.
374
364
  orders:
375
365
  checkout:
376
- error: There was a problem processing your vote
377
- success: Your vote has been successfully accepted
366
+ error: There was a problem processing your vote.
367
+ success_html: <p>Your vote has been successfully accepted.</p> <p class="text-sm font-normal">You can explore the <a class="text-secondary underline" href="%{rest_of_budgets_link}">rest of budgets</a>.</p>
368
+ success_no_left_budgets_html: Your vote has been successfully accepted.
378
369
  destroy:
379
- error: There was a problem canceling your vote
380
- success: Your vote has been successfully canceled
370
+ error: There was a problem canceling your vote.
371
+ success: Your vote has been successfully canceled.
381
372
  resource_links:
382
373
  included_proposals:
383
374
  project_proposal: Proposals included in this project
@@ -49,18 +49,19 @@ es-MX:
49
49
  edit: Editar
50
50
  edit_projects: Gestionar proyectos
51
51
  import: Importar propuestas a proyectos
52
- new: Nuevo %{name}
52
+ new_budget: Añadir presupuesto
53
+ new_project: Añadir proyecto
53
54
  preview: Previsualizar
54
55
  send_voting_reminders: Enviar recordatorios de votación
55
56
  title: Acciones
56
57
  admin:
57
58
  budgets:
58
59
  create:
59
- invalid: Se ha producido un error al crear este proyecto
60
- success: Presupuesto creado correctamente
60
+ invalid: Se ha producido un error al crear este proyecto.
61
+ success: Presupuesto creado correctamente.
61
62
  destroy:
62
- invalid: Hubo un problema al eliminar este presupuesto
63
- success: Presupuesto eliminado correctamente
63
+ invalid: Hubo un problema al eliminar este presupuesto.
64
+ success: Presupuesto eliminado correctamente.
64
65
  edit:
65
66
  title: Editar presupuesto
66
67
  update: Actualizar presupuesto
@@ -74,8 +75,8 @@ es-MX:
74
75
  create: Crear presupuesto
75
76
  title: Nuevo presupuesto
76
77
  update:
77
- invalid: Se ha producido un problema al actualizar este presupuesto
78
- success: Presupuesto actualizado correctamente
78
+ invalid: Se ha producido un problema al actualizar este presupuesto.
79
+ success: Presupuesto actualizado correctamente.
79
80
  exports:
80
81
  projects: Proyectos
81
82
  models:
@@ -85,16 +86,17 @@ es-MX:
85
86
  name: Proyecto
86
87
  projects:
87
88
  create:
88
- invalid: Ha habido un problema al crear este proyecto
89
- success: Proyecto creado con éxito
89
+ invalid: Se ha producido un error al crear este proyecto.
90
+ success: Proyecto creado correctamente.
90
91
  destroy:
91
- success: Proyecto eliminado con éxito
92
+ success: Proyecto eliminado correctamente.
92
93
  edit:
93
94
  title: Editar proyecto
94
95
  update: Actualizar
95
96
  index:
96
97
  actions: Acciones
97
98
  cancel: Cancelar
99
+ change_budget: Cambiar presupuesto
98
100
  change_category: Cambiar categoría
99
101
  change_scope: Cambiar ámbito
100
102
  change_selected: Cambiar estado seleccionado
@@ -103,41 +105,43 @@ es-MX:
103
105
  pending_orders: Votos pendientes
104
106
  select_for_implementation: Seleccionado para implementar
105
107
  selected: Seleccionado
106
- selected_options:
107
- 'no': 'No'
108
- 'yes': 'Sí'
109
108
  title: Proyectos
110
109
  update: Actualizar
110
+ update_budget_button: Actualizar el presupuesto del proyecto
111
111
  update_scope_button: Actualizar ámbito
112
112
  new:
113
113
  create: Crear
114
114
  title: Nuevo proyecto
115
115
  update:
116
- invalid: Ha habido un problema al actualizar este proyecto
117
- success: Proyecto actualizado correctamente
116
+ invalid: Se ha producido un error al actualizar este proyecto.
117
+ success: Proyecto actualizado correctamente.
118
+ update_budget:
119
+ invalid: 'Estos proyectos ya están en el mismo presupuesto o sus presupuestos son superiores al máximo permitido: %{projects}.'
120
+ select_a_project: Por favor, selecciona un proyecto.
121
+ success: 'Proyectos actualizados correctamente para el presupuesto %{subject_name}: %{projects}.'
118
122
  update_category:
119
123
  invalid: 'Estas propuestas ya tenían la categoría %{subject_name}: %{projects}.'
120
- select_a_category: Por favor, selecciona una categoría
121
- select_a_project: Por favor, selecciona un proyecto
124
+ select_a_category: Por favor, selecciona una categoría.
125
+ select_a_project: Por favor, selecciona un proyecto.
122
126
  success: 'Los siguientes proyectos se han actualizado correctamente a la categoría %{subject_name}: %{projects}.'
123
127
  update_scope:
124
128
  invalid: 'Estos proyectos ya tenían el ámbito %{subject_name}: %{projects}.'
125
- select_a_project: Por favor, selecciona un proyecto
126
- select_a_scope: Por favor, selecciona un ámbito
129
+ select_a_project: Por favor, selecciona un proyecto.
130
+ select_a_scope: Por favor, selecciona un ámbito.
127
131
  success: 'Los siguientes proyectos se han actualizado correctamente al ámbito %{subject_name}: %{projects}.'
128
132
  update_selected:
129
133
  invalid:
130
134
  selected: 'Estos proyectos ya han sido seleccionados para ser implementados: %{projects}.'
131
135
  unselected: 'Estos proyectos ya han sido deseleccionados de ser implementados: %{projects}.'
132
- select_a_project: Por favor, selecciona un proyecto
133
- select_a_selection: Por favor, seleccione un estado de implementación
136
+ select_a_project: Por favor, selecciona un proyecto.
137
+ select_a_selection: Por favor, seleccione un estado de implementación.
134
138
  success:
135
139
  selected: 'Estos proyectos fueron seleccionados con éxito para ser implementados: %{projects}.'
136
140
  unselected: 'Estos proyectos fueron deseleccionados con éxito para ser implementados: %{projects}.'
137
141
  proposals_imports:
138
142
  create:
139
- invalid: Ha habido un problema al importar las propuestas en proyectos
140
- success: "%{number} propuestas importadas con éxito en proyectos"
143
+ invalid: Se ha producido un error al importar las propuestas a proyectos.
144
+ success: "Se han importado con éxito %{number} propuestas a proyectos."
141
145
  new:
142
146
  create: Importar propuestas a proyectos
143
147
  default_budget: Presupuesto por defecto
@@ -145,7 +149,7 @@ es-MX:
145
149
  no_components: No hay otros componentes de la propuesta en este espacio participativo para importar las propuestas en los proyectos.
146
150
  origin_component_id: Componente de origen
147
151
  select_component: Por favor seleccione un componente
148
- title: Importar propuestas
152
+ title: Importar propuestas a proyectos
149
153
  reminders:
150
154
  orders:
151
155
  description: Las usuarias recibirán un correo electrónico con enlaces a los presupuestos en los que tienen un pedido pendiente.
@@ -158,30 +162,31 @@ es-MX:
158
162
  create: "%{user_name} creó el proyecto %{resource_name} en el espacio %{space_name}"
159
163
  delete: "%{user_name} borró el proyecto %{resource_name} en el espacio %{space_name}"
160
164
  update: "%{user_name} actualizó el proyecto %{resource_name} en el espacio %{space_name}"
161
- budget:
162
- view: Ver todos los proyectos de presupuesto
163
165
  budget_information_modal:
164
166
  back_to: Volver a %{component_name}
165
167
  close_modal: Cierra el modal
166
168
  continue: Continuar
167
169
  more_information: Más información
168
- budget_list_item:
169
- voting_finished: Has votado en este presupuesto
170
- voting_started: Has empezado a votar en este presupuesto
171
170
  budgets_list:
171
+ budgets: Presupuestos
172
172
  cancel_order:
173
173
  more_than_one: eliminar tu voto en %{name} y empezar de nuevo
174
174
  only_one: eliminar tu voto y empezar de nuevo.
175
+ count:
176
+ one: "%{count} presupuesto"
177
+ other: "%{count} presupuestos"
178
+ empty: Aún no hay ningún presupuesto
175
179
  finished_message: Has terminado el proceso de votación. ¡Gracias por participar!
176
180
  highlighted_cta: Votar en %{name}
177
- if_change_opinion: Si has cambiado de opinión, puedes
178
- my_budgets: Mis presupuestos
181
+ if_change_opinion: Si has cambiado de opinión, puedes %{cancel_link}.
179
182
  progress: Finalizar votación
183
+ remove_vote: Eliminar el voto
180
184
  show: Ver proyectos
181
185
  vote: Votar
182
- voted_on: Has votado en %{links}
186
+ voted_budgets: Presupuestos votados
187
+ voted_on: Has votado a %{links}.
183
188
  last_activity:
184
- new_vote_at_html: "<span>Nueva votación presupiestaria en %{link}</span>"
189
+ new_vote_at: Nueva votación presupuestaria en
185
190
  limit_announcement:
186
191
  cant_vote: No puedes votar en este presupuesto. <a href="%{landing_path}"> Prueba con otro presupuesto</a>.
187
192
  limit_reached: Tienes votos activos en %{links}. Para votar en este presupuesto debes <a href="%{landing_path}">borrar tu voto y empezar de nuevo</a>.
@@ -195,7 +200,6 @@ es-MX:
195
200
  fields:
196
201
  category: Categoría
197
202
  id: ID
198
- scope: Ámbito
199
203
  title: Título
200
204
  order_summary_mailer:
201
205
  order_summary:
@@ -212,45 +216,27 @@ es-MX:
212
216
  title: Confirmar voto
213
217
  budget_excess:
214
218
  budget_excess:
215
- 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.
219
+ description: No se puede añadir este proyecto porque sobrepasaría el máximo del presupuesto disponible. Si lo deseas, puedes eliminar alguno de los proyectos que ya hayas seleccionado para poder votar de acuerdo a tus preferencias.
216
220
  title: Presupuesto excedido
217
- close: Cerrar
218
- 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.
221
+ description: No se puede añadir este proyecto porque sobrepasaría el máximo del presupuesto disponible. Si lo deseas, puedes eliminar alguno de los proyectos que ya hayas seleccionado para poder votar de acuerdo a tus preferencias.
219
222
  ok: De acuerdo
220
223
  projects_excess:
221
224
  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.
222
225
  title: Se ha superado el número máximo de proyectos
223
226
  budget_summary:
224
227
  are_you_sure: '¿Estás seguro de que deseas cancelar tu voto?'
225
- assigned: 'Asignado:'
226
228
  cancel_order: eliminar tu voto y empezar de nuevo
227
229
  checked_out:
228
230
  description: Ya has votado para el presupuesto. Si has cambiado de idea, puedes %{cancel_link}.
229
231
  title: Voto enviado correctamente
230
- minimum_projects_rule:
231
- description: '¿A qué proyectos crees que deberíamos destinar el presupuesto? Selecciona por lo menos %{minimum_number} y vota según tus preferencias para definir el presupuesto.'
232
- instruction: "<li>Selecciona al menos %{minimum_number} proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.</li>"
233
- projects_rule:
234
- description: '¿A qué proyectos crees que deberíamos destinar el presupuesto? Selecciona entre %{minimum_number} y %{maximum_number} proyectos, y vota según tus preferencias para definir el presupuesto.'
235
- instruction: "<li>Selecciona al menos %{minimum_number} y hasta %{maximum_number} proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.</li>"
236
- projects_rule_maximum_only:
237
- description: '¿A qué proyectos crees que deberíamos destinar el presupuesto? Selecciona hasta %{maximum_number} y vota según tus preferencias para definir el presupuesto.'
238
- instruction: "<li>Selecciona hasta %{maximum_number} proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.</li>"
239
- rules:
240
- title: Reglas de presupuesto
241
- title: Tú decides el presupuesto
242
- total_budget: Presupuesto total
243
- total_projects: Total de votos
244
- vote_threshold_percent_rule:
245
- description: '¿A qué proyectos crees que deberíamos asignar el presupuesto? Asigna por lo menos %{minimum_budget} a los proyectos que desees y vota para definir el presupuesto.'
246
- instruction: "<li>Selecciona al menos %{minimum_budget} proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.</li>"
232
+ vote: Votar presupuesto
247
233
  count:
248
234
  projects_count:
249
235
  one: 1 proyecto
250
236
  other: "%{count} proyectos"
237
+ empty: Aun no hay ningún proyecto
251
238
  exit_modal:
252
239
  cancel: Volver a la votación
253
- close_modal: Cierra el modal
254
240
  exit: Salir de la votación
255
241
  message: Tu voto no ha sido registrado porque aún no has completado el proceso de votación. ¿Seguro que quieres salir de la votación?
256
242
  title: Aún no has votado
@@ -263,21 +249,22 @@ es-MX:
263
249
  all: Todos
264
250
  not_selected: No seleccionado
265
251
  selected: Seleccionado
266
- filters_small_view:
267
- close_modal: Cierra el modal
268
- filter: Filtrar
269
- filter_by: Filtrar por
270
- unfold: Desplegar
271
- index:
272
- view_project: Ver proyecto
273
252
  order_progress:
274
- vote: Votar
275
- order_selected_projects:
276
- remove: Eliminar
277
- selected_projects:
278
- one: proyecto seleccionado
279
- other: proyectos seleccionados
280
- view: Ver
253
+ assigned: Asignado
254
+ budget: Presupuesto
255
+ dynamic_help:
256
+ keep_adding_projects: Seguir añadiendo proyectos
257
+ minimum_reached: Has alcanzado el mínimo para poder votar
258
+ start_adding_projects: Empezar a añadir proyectos
259
+ minimum: Mínimo
260
+ minimum_projects_rule:
261
+ description: Selecciona al menos %{minimum_number} proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.
262
+ projects_rule:
263
+ description: Selecciona al menos %{minimum_number} y hasta %{maximum_number} proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.
264
+ projects_rule_maximum_only:
265
+ description: Selecciona hasta %{maximum_number} proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.
266
+ vote_threshold_percent_rule:
267
+ description: Selecciona al menos %{minimum_budget} com los proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.
281
268
  orders:
282
269
  highest_cost: Mayor coste
283
270
  label: Ordenar proyectos por
@@ -286,23 +273,26 @@ es-MX:
286
273
  random: Orden aleatorio
287
274
  selected: Seleccionado
288
275
  project:
289
- add: Añadir proyecto %{resource_name} a tu voto
290
- remove: Eliminar el proyecto %{resource_name} de tu voto
276
+ add: Añadir proyecto %{resource_name} a tu voto.
277
+ remove: Eliminar el proyecto %{resource_name} de tu voto.
291
278
  selected: Seleccionado
292
- view: Ver
293
279
  votes:
294
280
  one: voto
295
281
  other: votos
296
282
  you_voted: Has votado esto
297
283
  project_budget_button:
298
284
  add: Añadir a tu voto
299
- add_descriptive: Añadir proyecto %{resource_name} a tu voto
285
+ add_descriptive: Añade el proyecto %{resource_name} a tu voto.
300
286
  added: Añadido a tu voto
301
- added_descriptive: El proyecto %{resource_name} se ha añadido a tu voto
287
+ added_descriptive: El proyecto %{resource_name} se ha añadido a tu voto.
288
+ project_filter:
289
+ added: Añadido
290
+ all: Todos
302
291
  projects_for: Proyectos de %{name}
292
+ select_projects: Selecciona proyectos
303
293
  show:
304
294
  budget: Presupuesto
305
- view_all_projects: Ver todos los proyectos
295
+ prompt: Seleccionar presupuesto
306
296
  vote_reminder_mailer:
307
297
  vote_reminder:
308
298
  email_budgets: 'Áreas donde tienes una votación inacabada:'
@@ -325,8 +315,8 @@ es-MX:
325
315
  comments_max_length: Longitud máxima de los comentarios (deja 0 si quieres mantener la configuración por defecto)
326
316
  form:
327
317
  errors:
328
- budget_voting_rule_only_one: Hay que activar por lo menos una norma para la votación
329
- budget_voting_rule_required: Se requiere una norma para la votación
318
+ budget_voting_rule_only_one: Solo debe habilitarse una norma de votación.
319
+ budget_voting_rule_required: Se requiere una norma para la votación.
330
320
  geocoding_enabled: Geolocalización habilitada
331
321
  landing_page_content: Página de inicio de presupuestos
332
322
  more_information_modal: Modal de "Más información"
@@ -370,11 +360,12 @@ es-MX:
370
360
  notification_title: El presupuesto <a href="%{resource_path}">%{resource_title}</a> en %{participatory_space_title} ya está activo.
371
361
  orders:
372
362
  checkout:
373
- error: Se ha producido un error al procesar tu voto
374
- success: Tu voto se ha tramitado con éxito
363
+ error: Se ha producido un error al procesar tu voto.
364
+ success_html: <p>Tu voto ha sido aceptado con éxito.</p> <p class="text-sm font-normal">Puedes <a class="text-secondary underline" href="%{rest_of_budgets_link}">explorar el resto de presupuestos</a>.</p>
365
+ success_no_left_budgets_html: Tu voto se ha aceptado correctamente.
375
366
  destroy:
376
- error: Ha habido un error al cancelar tu voto
377
- success: Tu voto ha sido cancelado correctamente
367
+ error: Se ha producido un error al cancelar tu voto.
368
+ success: Tu voto se ha cancelado correctamente.
378
369
  resource_links:
379
370
  included_proposals:
380
371
  project_proposal: Propuestas incluidas en este proyecto