decidim-decidim_awesome 0.7.0 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -9
  3. data/app/assets/config/decidim_admin_decidim_awesome_manifest.css +2 -2
  4. data/app/assets/config/decidim_admin_decidim_awesome_manifest.js +1 -2
  5. data/app/assets/config/decidim_decidim_awesome_manifest.css +2 -2
  6. data/app/assets/config/decidim_decidim_awesome_manifest.js +3 -2
  7. data/app/assets/config/legacy_decidim_admin_decidim_awesome_manifest.js +2 -0
  8. data/app/assets/config/legacy_decidim_decidim_awesome_manifest.js +4 -0
  9. data/app/assets/javascripts/decidim/decidim_awesome/admin/auto_edit.js.es6 +77 -0
  10. data/app/assets/javascripts/decidim/decidim_awesome/admin/codemirror.js.es6 +2 -3
  11. data/app/assets/javascripts/decidim/decidim_awesome/admin/form_builder.js.es6 +80 -0
  12. data/app/assets/javascripts/decidim/decidim_awesome/admin/legacy_form_builder.js.es6 +80 -0
  13. data/app/assets/javascripts/decidim/decidim_awesome/admin/user_picker.js.es6 +24 -0
  14. data/app/assets/javascripts/decidim/decidim_awesome/awesome_admin.js +7 -0
  15. data/app/assets/javascripts/decidim/decidim_awesome/{application.js → awesome_application.js} +1 -2
  16. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/layers.js.es6 +3 -2
  17. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/load_map.js.es6 +15 -0
  18. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/map.js.es6 +52 -56
  19. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/meetings.js.es6 +2 -2
  20. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/proposals.js.es6 +1 -1
  21. data/app/assets/javascripts/decidim/decidim_awesome/awesome_map/utilities.js.es6 +33 -24
  22. data/app/assets/javascripts/decidim/decidim_awesome/editors/legacy_quill_editor.js.es6 +14 -2
  23. data/app/assets/javascripts/decidim/decidim_awesome/editors/quill_editor.js.es6 +18 -4
  24. data/app/assets/javascripts/decidim/decidim_awesome/editors/tabs_focus.js.es6 +24 -0
  25. data/app/assets/javascripts/decidim/decidim_awesome/forms/custom_fields_builder.js.es6 +211 -0
  26. data/app/assets/javascripts/decidim/decidim_awesome/forms/rich_text_plugin.js.es6 +106 -0
  27. data/app/assets/javascripts/decidim/decidim_awesome/legacy_admin.js +5 -1
  28. data/app/assets/javascripts/decidim/decidim_awesome/legacy_application.js +0 -1
  29. data/app/assets/javascripts/decidim/decidim_awesome/proposals/custom_fields.js.es6 +21 -0
  30. data/app/assets/stylesheets/decidim/decidim_awesome/admin/auto_edits.scss +15 -0
  31. data/app/assets/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +15 -4
  32. data/app/assets/stylesheets/decidim/decidim_awesome/admin/constraints.scss +12 -0
  33. data/app/assets/stylesheets/decidim/decidim_awesome/admin/custom_fields.scss +66 -0
  34. data/app/assets/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +35 -0
  35. data/app/assets/stylesheets/decidim/decidim_awesome/{admin.scss → awesome_admin.scss} +12 -0
  36. data/app/assets/stylesheets/decidim/decidim_awesome/awesome_application.scss +22 -0
  37. data/app/assets/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +0 -1
  38. data/app/assets/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +16 -1
  39. data/app/awesome_overrides/forms/decidim/proposals/proposal_wizard_create_step_form_override.rb +28 -0
  40. data/app/cells/decidim/decidim_awesome/content_blocks/map/show.erb +74 -0
  41. data/app/cells/decidim/decidim_awesome/content_blocks/map_cell.rb +54 -0
  42. data/app/cells/decidim/decidim_awesome/content_blocks/map_form/show.erb +61 -0
  43. data/app/cells/decidim/decidim_awesome/content_blocks/map_form_cell.rb +19 -0
  44. data/app/commands/concerns/decidim/decidim_awesome/admin/needs_constraint_helpers.rb +32 -0
  45. data/app/commands/decidim/decidim_awesome/admin/create_proposal_custom_field.rb +45 -0
  46. data/app/commands/decidim/decidim_awesome/admin/create_scoped_admin.rb +38 -0
  47. data/app/commands/decidim/decidim_awesome/admin/destroy_constraint.rb +4 -0
  48. data/app/commands/decidim/decidim_awesome/admin/destroy_proposal_custom_field.rb +40 -0
  49. data/app/commands/decidim/decidim_awesome/admin/destroy_scoped_admin.rb +40 -0
  50. data/app/commands/decidim/decidim_awesome/admin/destroy_scoped_style.rb +1 -1
  51. data/app/commands/decidim/decidim_awesome/admin/rename_scope_label.rb +58 -0
  52. data/app/commands/decidim/decidim_awesome/admin/update_config.rb +1 -0
  53. data/app/controllers/concerns/decidim/decidim_awesome/admin_not_found_redirect.rb +39 -0
  54. data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +31 -18
  55. data/app/controllers/decidim/decidim_awesome/admin/constraints_controller.rb +4 -0
  56. data/app/controllers/decidim/decidim_awesome/admin/proposal_custom_fields_controller.rb +38 -0
  57. data/app/controllers/decidim/decidim_awesome/admin/scoped_admins_controller.rb +38 -0
  58. data/app/controllers/decidim/decidim_awesome/admin/scoped_styles_controller.rb +38 -0
  59. data/app/forms/decidim/decidim_awesome/admin/config_form.rb +39 -0
  60. data/app/forms/decidim/decidim_awesome/admin/constraint_form.rb +3 -1
  61. data/app/helpers/decidim/decidim_awesome/admin/config_constraints_helpers.rb +11 -7
  62. data/app/helpers/decidim/decidim_awesome/amendments_helper_override.rb +48 -0
  63. data/app/helpers/decidim/decidim_awesome/map_helper.rb +67 -16
  64. data/app/helpers/decidim/decidim_awesome/proposals/application_helper_override.rb +78 -0
  65. data/app/middleware/decidim/decidim_awesome/current_config.rb +182 -0
  66. data/app/models/decidim/decidim_awesome/awesome_config.rb +15 -0
  67. data/app/models/decidim/decidim_awesome/user_override.rb +25 -0
  68. data/app/permissions/decidim/decidim_awesome/admin/permissions.rb +2 -0
  69. data/app/views/decidim/decidim_awesome/admin/checks/index.html.erb +1 -1
  70. data/app/views/decidim/decidim_awesome/admin/config/_autoedit_box_label.html.erb +7 -0
  71. data/app/views/decidim/decidim_awesome/admin/config/_constraints.html.erb +2 -2
  72. data/app/views/decidim/decidim_awesome/admin/config/_form_admins.html.erb +21 -0
  73. data/app/views/decidim/decidim_awesome/admin/config/_form_editors.html.erb +0 -3
  74. data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_custom_fields.html.erb +25 -0
  75. data/app/views/decidim/decidim_awesome/admin/config/_form_proposals.html.erb +0 -2
  76. data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +4 -7
  77. data/app/views/decidim/decidim_awesome/admin/proposals/_editor.html.erb +4 -0
  78. data/app/views/decidim/decidim_awesome/custom_fields/_form_render.html.erb +6 -0
  79. data/app/views/decidim/decidim_awesome/map_component/map/show.html.erb +0 -2
  80. data/app/views/decidim/proposals/admin/proposals/_form.html.erb +101 -0
  81. data/app/views/decidim/proposals/collaborative_drafts/_edit_form_fields.html.erb +83 -0
  82. data/app/views/decidim/proposals/collaborative_drafts/show.html.erb +1 -0
  83. data/app/views/layouts/decidim/admin/decidim_awesome.html.erb +25 -11
  84. data/app/views/layouts/decidim/decidim_awesome/_awesome_config.html.erb +4 -0
  85. data/app/views/layouts/decidim/decidim_awesome/_custom_styles.html.erb +1 -1
  86. data/app/views/v0.23/decidim/proposals/collaborative_drafts/_show.html.erb +134 -0
  87. data/app/views/v0.23/layouts/decidim/_head.html.erb +1 -1
  88. data/app/views/v0.23/layouts/decidim/admin/_header.html.erb +1 -1
  89. data/app/views/v0.24/decidim/proposals/collaborative_drafts/_show.html.erb +128 -0
  90. data/app/views/v0.24/layouts/decidim/_head.html.erb +2 -2
  91. data/app/views/v0.24/layouts/decidim/admin/_header.html.erb +2 -2
  92. data/config/locales/ca.yml +62 -3
  93. data/config/locales/cs.yml +62 -3
  94. data/config/locales/en.yml +90 -11
  95. data/config/locales/es.yml +61 -2
  96. data/config/locales/eu.yml +63 -4
  97. data/config/locales/fr.yml +62 -3
  98. data/config/locales/it.yml +284 -0
  99. data/config/locales/ja.yml +284 -0
  100. data/config/locales/nl.yml +62 -3
  101. data/config/locales/sv.yml +62 -3
  102. data/db/migrate/20210628150825_change_awesome_config_var_type.rb +12 -0
  103. data/lib/decidim/decidim_awesome/admin_engine.rb +16 -4
  104. data/lib/decidim/decidim_awesome/awesome_helpers.rb +17 -10
  105. data/lib/decidim/decidim_awesome/checksums.yml +17 -4
  106. data/lib/decidim/decidim_awesome/config.rb +53 -6
  107. data/lib/decidim/decidim_awesome/context_analyzers/request_analyzer.rb +27 -21
  108. data/lib/decidim/decidim_awesome/custom_fields.rb +94 -0
  109. data/lib/decidim/decidim_awesome/engine.rb +62 -6
  110. data/lib/decidim/decidim_awesome/test/shared_examples/box_label_editor.rb +116 -0
  111. data/lib/decidim/decidim_awesome/test/shared_examples/current_config_examples.rb +143 -0
  112. data/lib/decidim/decidim_awesome/test/shared_examples/editor_examples.rb +4 -0
  113. data/lib/decidim/decidim_awesome/test/shared_examples/scoped_admins_examples.rb +428 -0
  114. data/lib/decidim/decidim_awesome/version.rb +1 -1
  115. data/lib/decidim/decidim_awesome.rb +41 -8
  116. data/vendor/assets/javascripts/delta.min.js +405 -0
  117. data/vendor/assets/javascripts/delta.min.js.map +1 -0
  118. data/vendor/assets/javascripts/europa.min.js +4 -0
  119. data/vendor/assets/javascripts/form-builder.min.js +19 -0
  120. data/vendor/assets/javascripts/form-render.min.js +19 -0
  121. data/vendor/assets/javascripts/inscrybmde.min.js +1 -1
  122. data/vendor/assets/javascripts/jquery-ui.min.js +13 -0
  123. data/vendor/assets/javascripts/select2.js +6147 -0
  124. data/vendor/assets/langs/en-US.lang +110 -0
  125. data/vendor/assets/stylesheets/inscrybmde.min.scss +14 -0
  126. data/vendor/assets/stylesheets/jquery-ui.min.css +7 -0
  127. data/vendor/assets/stylesheets/select2-foundation-theme.css +249 -0
  128. data/vendor/assets/stylesheets/select2.css +515 -0
  129. metadata +68 -27
  130. data/app/assets/images/decidim/decidim_awesome/loading.gif +0 -0
  131. data/app/assets/javascripts/decidim/decidim_awesome/admin.js +0 -3
  132. data/app/assets/javascripts/decidim/decidim_awesome/editors/markdown_view.js.es6 +0 -12
  133. data/app/assets/stylesheets/decidim/decidim_awesome/application.scss +0 -8
  134. data/app/assets/stylesheets/decidim/decidim_awesome/editors/markdown_view.scss +0 -27
  135. data/app/awesome_overrides/presenters/decidim/proposals/proposal_presenter_override.rb +0 -58
  136. data/lib/decidim/decidim_awesome/content_renderers/markdown_renderer.rb +0 -18
  137. data/lib/decidim/decidim_awesome/content_renderers.rb +0 -9
@@ -17,7 +17,9 @@ cs:
17
17
  intergram_title_closed: Titulek uzavřeného chatu
18
18
  intergram_title_open: Titulek otevřeného chatu
19
19
  intergram_use_floating_button: Je-li zaškrtnuto, uzavřený chat je vždy tlačítko místo textu
20
- scoped_styles: 'Vlastní styly číslo %{id}'
20
+ proposal_custom_fields: 'Uživatelská pole #%{id}'
21
+ scoped_admins: 'Skupina Škálovaní administrátoři #%{id}'
22
+ scoped_styles: Vlastní styly číslo %{id}
21
23
  use_markdown_editor: Použít Markdown editor namísto HTML editoru
22
24
  constraint:
23
25
  component_id: nebo konkrétně v
@@ -30,6 +32,8 @@ cs:
30
32
  target: Otevře se v
31
33
  url: URL
32
34
  visibility: Viditelnost
35
+ proposal:
36
+ proposal_custom_fields: Vlastní pole
33
37
  decidim:
34
38
  admin:
35
39
  menu:
@@ -84,22 +88,37 @@ cs:
84
88
  head_tags: Úžasné tagy zahrnuté v hlavičce aplikace
85
89
  title: Kontroly kompatibility systému
86
90
  config:
91
+ caution: 'POZNÁMKA: Tato funkce silně mění některé výchozí chování, které by mohlo vést k neočekávaným výsledkům. Používejte ji s opatrností!'
87
92
  constraints:
88
93
  add_condition: Přidat případ
89
94
  always: Vždy
95
+ cannot_be_destroyed: Omlouváme se, toto nelze odstranit. Tato konfigurace potřebuje alespoň jednu vazbu.
90
96
  delete: Smazat
91
97
  edit: Upravit
92
98
  title: 'Platí pouze v těchto případech:'
99
+ create_proposal_custom_field:
100
+ error: Chyba při vytváření nového pole "vlastní pole"! %{error}
101
+ success: '"vlastní pole" %{key} úspěšně vytvořeno'
102
+ create_scoped_admin:
103
+ error: Chyba při vytváření nové skupiny administrátorů! %{error}
104
+ success: Skupina administrátorů %{key} úspěšně vytvořena
93
105
  create_scoped_style:
94
106
  error: Chyba při vytváření nového CSS boxu! %{error}
95
107
  success: CSS box %{key} úspěšně vytvořen
108
+ destroy_proposal_custom_field:
109
+ error: Chyba při odebírání "vlastního pole"! %{error}
110
+ success: '"vlastní pole" %{key} bylo úspěšně odebráno'
111
+ destroy_scoped_admin:
112
+ error: Chyba při odstraňování skupiny administrátorů! %{error}
113
+ success: Skupina administrátorů %{key} byla úspěšně odstraněna
96
114
  destroy_scoped_style:
97
115
  error: Chyba při odstraňování CSS boxu! %{error}
98
116
  success: CSS box %{key} byl úspěšně odstraněn
99
- experimental: Experimentální možnosti
100
117
  form:
118
+ edit_label: Přejmenovat štítek
101
119
  errors:
102
120
  incorrect_css: 'CSS v poli #%{key} je neplatné'
121
+ incorrect_json: 'Definice JSON v poli #%{key} je neplatná'
103
122
  help:
104
123
  allow_images_in_full_editor: Tímto se přidá ikona pro nahrávání obrázků ve všech editorech WYSIWYG s povoleným plným nástrojovým řádkem.
105
124
  allow_images_in_markdown_editor: To umožní editoru markdown nahrávat obrázky pomocí kopírování a vkládání nebo přetažení.
@@ -109,13 +128,27 @@ cs:
109
128
  drag_and_drop_supported: Při nahrávání obrázků je podporováno vložení přetažením. Obrázky budou nahrány na server a vloženy jako externí zdroje (nepoužívá base64 inline kódování).
110
129
  intergram_about: Intergram používá Telegram messenger pro zpracování widgetu live podpory v dolní části stránky.
111
130
  intergram_config: 'Pozvěte <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bota</a> do vaší skupiny nebo začněte chatovat přímo. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
131
+ proposal_custom_fields: Vytvoření vlastních polí návrhu, která se použijí pouze v určitých částech veřejného webu (použijte k tomu editor omezení)
132
+ proposal_custom_fields_example: Data jsou uložena v objektu XML pomocí kompatibilních atributů HTML (prvky dl,dt,dd), které v běžném návrhu nahrazují "tělo".
133
+ proposal_custom_fields_translations: "Štítky, text nápovědy, zástupné symboly a výchozí hodnoty mohou používat vlastní překlady aplikace. \nK tomu použijte místo doslovného řetězce klíč i18n (musí obsahovat alespoň jednu tečku).\nNapříklad:\n- \"activemodel.attributes.proposal.title\" místo \"Title\".\n- \"activemodel.attributes.proposal.address\" místo \"Address\".\nNebo použijte vlastní klíče v kombinaci s dalšími nástroji pro definici překladů (např.: pomocí modulu Term Customizer):\n- \"myapp.custom_fields.bio\" místo \"Biography\""
134
+ scoped_admins: Povýšení běžného uživatele na administrátora, který může spravovat pouze určité části veřejného webu (k tomu použijte editor omezení). Všimněte si, že uživatelé, kteří již mají oprávnění běžného správce, budou ignorováni.
112
135
  scoped_styles: Vytvořte vlastní CSS aplikovaný pouze na určitých částech veřejného webu (použijte pro to editor omezení)
113
136
  scoped_styles_variables: 'Můžete použít následující CSS proměnné pro nastavené barvy organizace:'
114
137
  use_markdown_editor: Toto nahradí WYSIWYG editor, místo toho použijte Markdown editor. Text bude vykreslen jako HTML na veřejných stránkách (text v databázi bude uložen jako text markdown)
115
- form_styles:
138
+ form_proposal_custom_fields:
139
+ new: Přidat nové pole "vlastní pole"
140
+ remove: Odstranit toto "vlastní pole"
141
+ sure_to_remove: Opravdu chcete zničit toto pole?
142
+ form_scoped_admins:
143
+ new: Přidání nové skupiny "Škálovaní administrátoři"
144
+ remove: Odstranit tuto skupinu "Škálovaní administrátoři""
145
+ sure_to_remove: Opravdu chcete zničit tuto skupinu "Škálovaní administrátoři"?
146
+ form_scoped_styles:
116
147
  new: Přidat nový CSS box
117
148
  remove: Odstranit tento CSS box
118
149
  sure_to_remove: Opravdu chcete zničit tento CSS box?
150
+ none: "⛔ Nikdy! - Deaktivujte jiná omezení"
151
+ process_groups: Skupiny procesů
119
152
  rich_text_editor_in_public_views: 'POZNÁMKA: "Kompletní textový editor pro účastníky" je povolen, tato možnost nebude využita. Pro povolení obrázků v Návrzích používejte místo toho hacky editoru.'
120
153
  show:
121
154
  title: Vylepšení pro %{setting}
@@ -145,10 +178,12 @@ cs:
145
178
  error: Chyba při aktualizaci případu podmínky
146
179
  success: Případ stavu byl úspěšně aktualizován
147
180
  menu:
181
+ admins: Škálovaní administrátoři
148
182
  checks: Systémová kompatibilita
149
183
  editors: Hack editoru
150
184
  livechat: Live Chat
151
185
  menu_hacks: Vylepšení menu
186
+ proposal_custom_fields: Vlastní pole pro návrhy
152
187
  proposals: Návrhy hacků
153
188
  styles: Vlastní styly
154
189
  surveys: Průzkumy a formuláře
@@ -193,7 +228,31 @@ cs:
193
228
  intro_message: Dobrý den! Jak Vám můžeme pomoci?
194
229
  title_closed: Kliknutím chatujte!
195
230
  title_open: Pojďme chatovat!
231
+ content_blocks:
232
+ map:
233
+ collapse: Začít se sbaleným menu
234
+ map_center: Střed mapy (zeměpisná šířka, zeměpisná délka)
235
+ map_center_help: 'Použijte desetinné body (ie: 41.38879, 2.15899). Nechte prázdné, aby se automaticky vešly všechny značky'
236
+ map_height: Výška mapy (px)
237
+ map_settings: Nastavení mapy
238
+ map_zoom: Zvětšení (libovolné číslo mezi 0 a 18)
239
+ map_zoom_help: Použije se pouze v případě, že je definován střed mapy
240
+ menu_amendments: Zobrazit pozměňovací návrhy
241
+ menu_meetings: Zobrazit schůzky
242
+ name: Úžasná mapa
243
+ show_accepted: Zobrazit přijaté návrhy
244
+ show_evaluating: Zobrazit hodnocení návrhů
245
+ show_not_answered: Zobrazit nezodpovězené návrhy
246
+ show_rejected: Zobrazit odmítnuté návrhy
247
+ show_withdrawn: Zobrazit stažené návrhy
248
+ text_settings: Nastavení textu
249
+ title: Nadpis
250
+ truncate: Maximum znaků pro popisy vyskakovacích oken
196
251
  credits: Vylepšení Decidim %{version} · Vyrobeno s ♥ od Platoniq
252
+ custom_fields:
253
+ errors:
254
+ invalid_fields: Obsah nemohl být analyzován, ale byl přiřazen do pole '%{field}'
255
+ invalid_xml: 'Obsah se nepodařilo analyzovat: DL/DD prvky nebyly v XML nalezeny'
197
256
  editor_images:
198
257
  create:
199
258
  error: Chyba při nahrávání obrázku!
@@ -22,7 +22,9 @@ en:
22
22
  intergram_title_open: Opened chat title
23
23
  intergram_use_floating_button: If checked, the closed chat is always a button
24
24
  instead of a text
25
- scoped_styles: 'Custom styles #%{id}'
25
+ proposal_custom_fields: Custom fields %{id}
26
+ scoped_admins: Scoped admins group %{id}
27
+ scoped_styles: Custom styles %{id}
26
28
  use_markdown_editor: Use a Markdown editor instead of the HTML editor
27
29
  constraint:
28
30
  component_id: or specifically in
@@ -35,6 +37,8 @@ en:
35
37
  target: Opens in
36
38
  url: URL
37
39
  visibility: Visibility
40
+ proposal:
41
+ proposal_custom_fields: Custom fields
38
42
  decidim:
39
43
  admin:
40
44
  menu:
@@ -95,22 +99,39 @@ en:
95
99
  head_tags: Awesome tags included in the application header
96
100
  title: System compatibility checks
97
101
  config:
102
+ caution: 'NOTE: This feature heavily modifies some default behaviours that
103
+ might lead to unexpected results. Use it with caution!'
98
104
  constraints:
99
105
  add_condition: Add case
100
106
  always: Always
107
+ cannot_be_destroyed: Sorry, this cannot be deleted. This configuration
108
+ needs at least one constraint.
101
109
  delete: Delete
102
110
  edit: Edit
103
111
  title: 'Applicable only in these cases:'
112
+ create_proposal_custom_field:
113
+ error: Error creating a new "custom field" box! %{error}
114
+ success: '"custom field" box %{key} created successfully'
115
+ create_scoped_admin:
116
+ error: Error creating a new Admin group! %{error}
117
+ success: Admin group %{key} created successfully
104
118
  create_scoped_style:
105
119
  error: Error creating a new CSS box! %{error}
106
120
  success: CSS box %{key} created successfully
121
+ destroy_proposal_custom_field:
122
+ error: Error removing "custom field" box! %{error}
123
+ success: '"custom field" box %{key} removed successfully'
124
+ destroy_scoped_admin:
125
+ error: Error removing Admin group! %{error}
126
+ success: Admin group %{key} removed successfully
107
127
  destroy_scoped_style:
108
128
  error: Error removing CSS box! %{error}
109
129
  success: CSS box %{key} removed successfully
110
- experimental: Experimental options
111
130
  form:
131
+ edit_label: Rename label
112
132
  errors:
113
133
  incorrect_css: 'CSS in box #%{key} is invalid'
134
+ incorrect_json: 'JSON definition in box #%{key} is invalid'
114
135
  help:
115
136
  allow_images_in_full_editor: This will add an image uploader icon in
116
137
  all the editors WYSIWYG with the full toolbar enabled.
@@ -134,17 +155,46 @@ en:
134
155
  intergram_config: Invite the <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram
135
156
  bot</a> to your group or start a chat with it directly. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+
136
157
  info</a>
158
+ proposal_custom_fields: Create custom proposal fields that applies only
159
+ in certain parts of the public web (use the restrictions editor for
160
+ that)
161
+ proposal_custom_fields_example: Data is stored in a XML object using
162
+ compatible HTML attributes (dl,dt,dd elements) replacing the "body"
163
+ in a normal proposal.
164
+ proposal_custom_fields_translations: "Labels, help text, placeholders
165
+ and default values can use your application custom translations. \nFor
166
+ that, instead of using a string literal, use the i18n key (it must
167
+ containt at least one dot).\nFor instance:\n- \"activemodel.attributes.proposal.title\"
168
+ instead of \"Title\"\n- \"activemodel.attributes.proposal.address\"
169
+ instead of \"Address\"\nOr use your own keys in combination with other
170
+ tools to define translations (eg: using the module Term Customizer):\n
171
+ - \"myapp.custom_fields.bio\" instead of \"Biography\""
172
+ scoped_admins: Promote regular user to admins that can only administrate
173
+ certain parts of the public web (use the restrictions editor for that).
174
+ Note that users who already have regular admin permissions will be
175
+ ignored.
137
176
  scoped_styles: Create custom CSS that applies only in certain parts
138
177
  of the public web (use the restrictions editor for that)
139
178
  scoped_styles_variables: 'You can use the following CSS variables for
140
179
  organization customized colors:'
141
180
  use_markdown_editor: This will substitute the Quill WYSIWYG editor,
142
- use a Markdown editor instead. Text will be rendered as HTML in the
143
- public pages (text in database will be saved as markdown text)
144
- form_styles:
181
+ to use a Markdown editor instead. Text will be converted and saved
182
+ as HTML in the database.
183
+ form_proposal_custom_fields:
184
+ new: Add a new "custom fields" box
185
+ remove: Remove this "custom fields" box
186
+ sure_to_remove: Are you sure you want to destroy this fields box?
187
+ form_scoped_admins:
188
+ new: Add a new "Scoped Admins" group
189
+ remove: Remove this "Scoped Admins" group
190
+ sure_to_remove: Are you sure you want to destroy this "Scoped Admins"
191
+ group?
192
+ form_scoped_styles:
145
193
  new: Add a new CSS box
146
194
  remove: Remove this CSS box
147
195
  sure_to_remove: Are you sure you want to destroy this CSS box?
196
+ none: "⛔ Never! - Deactivate any other constraint"
197
+ process_groups: Process groups
148
198
  rich_text_editor_in_public_views: 'NOTE: "Rich text editor for participants"
149
199
  is enabled, this option won''t apply. Use the editors hacks instead to
150
200
  enable images in proposals.'
@@ -176,13 +226,15 @@ en:
176
226
  error: Error updating condition case
177
227
  success: Condition case updated successfully
178
228
  menu:
179
- checks: System compatibility
180
- editors: Editor hacks
229
+ admins: Scoped Admins
230
+ checks: System Compatibility
231
+ editors: Editor Hacks
181
232
  livechat: Live Chat
182
- menu_hacks: Menu tweaks
183
- proposals: Proposals hacks
184
- styles: Custom styles
185
- surveys: Surveys & forms
233
+ menu_hacks: Menu Tweaks
234
+ proposal_custom_fields: Proposals Custom Fields
235
+ proposals: Proposals Hacks
236
+ styles: Custom Styles
237
+ surveys: Surveys & Forms
186
238
  menu_hacks:
187
239
  create:
188
240
  error: Error creating menu item! %{error}
@@ -228,7 +280,34 @@ en:
228
280
  intro_message: Hello! How can we help you?
229
281
  title_closed: Click to chat!
230
282
  title_open: Let's chat!
283
+ content_blocks:
284
+ map:
285
+ collapse: Start with collapsed menu
286
+ map_center: Map center (Latitude, Longitude)
287
+ map_center_help: 'Use decimal points (ie: 41.38879, 2.15899). Leave it empty
288
+ to automatically fit all the markers'
289
+ map_height: Map height (px)
290
+ map_settings: Map settings
291
+ map_zoom: Zoom (any number betwen 0 and 18)
292
+ map_zoom_help: Only applies if a map center is defined
293
+ menu_amendments: Show amendments
294
+ menu_meetings: Show meetings
295
+ name: Awesome Map
296
+ show_accepted: Show accepted proposals
297
+ show_evaluating: Show evaluating proposals
298
+ show_not_answered: Show not answered proposals
299
+ show_rejected: Show rejected proposals
300
+ show_withdrawn: Show withdrawn proposals
301
+ text_settings: Text settings
302
+ title: Title
303
+ truncate: Maximum characters for popup descriptions
231
304
  credits: Decidim Awesome %{version} · Made with ♥ by Platoniq
305
+ custom_fields:
306
+ errors:
307
+ invalid_fields: Content couldn't be parsed but has been assigned to the
308
+ field '%{field}'
309
+ invalid_xml: 'Content couldn''t be parsed: DL/DD elements not found in the
310
+ XML'
232
311
  editor_images:
233
312
  create:
234
313
  error: Error uploading image!
@@ -17,6 +17,8 @@ es:
17
17
  intergram_title_closed: Título del chat cerrado
18
18
  intergram_title_open: Título del chat abierto
19
19
  intergram_use_floating_button: Si está marcado, el chat cerrado siempre es un botón en lugar de un texto
20
+ proposal_custom_fields: 'Campos personalizados #%{id}'
21
+ scoped_admins: 'Grupo de administradoras acotadas #%{id}'
20
22
  scoped_styles: 'Estilos personalizados #%{id}'
21
23
  use_markdown_editor: Utilizar el editor Markdown en lugar del editor HTML
22
24
  constraint:
@@ -30,6 +32,8 @@ es:
30
32
  target: Abrir en
31
33
  url: URL
32
34
  visibility: Visibilidad
35
+ proposal:
36
+ proposal_custom_fields: Campos personalizados
33
37
  decidim:
34
38
  admin:
35
39
  menu:
@@ -84,22 +88,37 @@ es:
84
88
  head_tags: Etiquetas Awesome incluidas en el encabezado de la aplicación
85
89
  title: Análisis de compatibilidad del sistema
86
90
  config:
91
+ caution: 'NOTA: Esta función modifica en gran medida algunos comportamientos por defecto que pueden llevar a resultados inesperados. ¡Utilícelo con precaución!'
87
92
  constraints:
88
93
  add_condition: Añadir restricción
89
94
  always: Siempre
95
+ cannot_be_destroyed: Lo sentimos, esto no se puede eliminar. Esta configuración necesita al menos una restricción.
90
96
  delete: Eliminar
91
97
  edit: Editar
92
98
  title: 'Se aplica solo en estos casos:'
99
+ create_proposal_custom_field:
100
+ error: '¡Error al crear una nueva caja de "campo personalizado"! %{error}'
101
+ success: 'La caja "campo personalizado" %{key} se ha creado correctamente'
102
+ create_scoped_admin:
103
+ error: '¡Error al crear un nuevo grupo de administradoras! %{error}'
104
+ success: Grupo de administradoras %{key} creado correctamente
93
105
  create_scoped_style:
94
106
  error: '¡Error al crear una nueva caja CSS! %{error}'
95
107
  success: Caja CSS %{key} creada correctamente
108
+ destroy_proposal_custom_field:
109
+ error: '¡Error al eliminar la caja "campo personalizado"! %{error}'
110
+ success: 'La caja "campo personalizado" %{key} se ha eliminado correctamente'
111
+ destroy_scoped_admin:
112
+ error: '¡Error al eliminar el grupo de administradoras! %{error}'
113
+ success: Grupo de administradoras %{key} eliminado correctamente
96
114
  destroy_scoped_style:
97
115
  error: '¡Error al eliminar la caja CSS! %{error}'
98
116
  success: Caja CSS %{key} eliminada correctamente
99
- experimental: Opciones experimentales
100
117
  form:
118
+ edit_label: Renombrar la etiqueta
101
119
  errors:
102
120
  incorrect_css: 'El CSS de la caja #%{key} no es válido'
121
+ incorrect_json: 'La definición JSON en la caja #%{key} no es válida'
103
122
  help:
104
123
  allow_images_in_full_editor: Esto añadirá un botón para subir imágenes en el editor HTML completo.
105
124
  allow_images_in_markdown_editor: Esto permitirá al editor markdown subir imágenes con "copiar & pegar" o con "arrastrar & soltar".
@@ -109,13 +128,27 @@ es:
109
128
  drag_and_drop_supported: Cuando se suban imágenes, se puede hacer a través del método "arrastrar & soltar". Las imágenes se subirán en el servidor y se insertarán como recursos externos (no se utiliza codificación en línea base64).
110
129
  intergram_about: Intergram utiliza el Telegram Messenger para gestionar un widget de chat de soporte incrustado en la parte inferior de la página.
111
130
  intergram_config: 'Invita a la <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> a tu grupo o inicia un chat con ella directamente. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
131
+ proposal_custom_fields: Crea campos personalizados en las propuestas que sólo se aplican en ciertas partes de la web pública (utilizar el editor de restricciones para ello)
132
+ proposal_custom_fields_example: Los datos se almacenan en un objeto XML utilizando atributos HTML compatibles (dl,dt,dd elements) que reemplazan el "cuerpo" en una propuesta normal.
133
+ proposal_custom_fields_translations: "Las etiquetas, el texto de ayuda, placeholders, y los valores predeterminados pueden utilizar las traducciones personalizadas de la aplicación.\nPara eso, en lugar de usar un texto literal, use la clave i18n (debe contener al menos un punto).\nPor ejemplo:\n- \"activemodel.attributes.proposal.title\" en lugar de \"Título\"\n- \"activemodel.attributes.proposal.address\" en lugar de \"Address\"\nO simplemente usar claves propias en combinación con otras herramientas para definir traducciones (por ejemplo, usando el módulo Term Customizer):\n- \"myapp.custom_fields.bio\" en lugar de \"Biografía\""
134
+ scoped_admins: Promueve usuarias normales a administradoras con acceso limitado a ciertas partes de la web pública (utilizar el editor de restricciones para eso). Tener en cuenta que las usuarias que ya tienen permisos regulares de administración serán ignorados.
112
135
  scoped_styles: Crea CSS personalizados que solo se apliquen en ciertas partes de la web pública (para ello, utiliza el editor de restricciones)
113
136
  scoped_styles_variables: 'Puedes utilizar las siguientes variables CSS para los colores personalizados de la organización:'
114
137
  use_markdown_editor: Esto sustituirá al editor HTML (Quill), utilice un editor de Markdown en su lugar. El texto se mostrará como HTML en las páginas públicas (en la base de datos, el texto se almacenará como markdown)
115
- form_styles:
138
+ form_proposal_custom_fields:
139
+ new: Añadir una nueva caja de "campos personalizados"
140
+ remove: Eliminar esta caja de "campos personalizados"
141
+ sure_to_remove: '¿Estás segura de que quieres eliminar esta caja de campos personalizados?'
142
+ form_scoped_admins:
143
+ new: Añadir un nuevo grupo de "Administradoras acotadas"
144
+ remove: Eliminar este grupo de "Administradoras acotadas"
145
+ sure_to_remove: '¿Estás segura de que quieres eliminar este grupo de "administradoras acotadas"?'
146
+ form_scoped_styles:
116
147
  new: Añadir una nueva caja CSS
117
148
  remove: Eliminar esta caja CSS
118
149
  sure_to_remove: '¿Estás segura de que quieres eliminar esta caja CSS?'
150
+ none: "⛔ ¡Nunca! - Desactiva cualquier otra restricción"
151
+ process_groups: Grupo de procesos
119
152
  rich_text_editor_in_public_views: 'NOTA: "Editor de texto enriquecido para participantes" está habilitado, esta opción no se aplicará. Utiliza las modificaciones del editor general para añadir imágenes a las propuestas.'
120
153
  show:
121
154
  title: Ajustes para %{setting}
@@ -145,10 +178,12 @@ es:
145
178
  error: Error actualizando la restricción
146
179
  success: Restricción actualizada correctamente
147
180
  menu:
181
+ admins: Administradoras acotadas
148
182
  checks: Compatibilidad del sistema
149
183
  editors: Modificaciones a los editores
150
184
  livechat: Chat en vivo
151
185
  menu_hacks: Ajustes en el menú
186
+ proposal_custom_fields: Campos personalizados para propuestas
152
187
  proposals: Modificaciones a las propuestas
153
188
  styles: Estilos personalizados
154
189
  surveys: Encuestas y formularios
@@ -193,7 +228,31 @@ es:
193
228
  intro_message: Hola, ¿en qué puedo ayudarte?
194
229
  title_closed: '¡Haz clic para chatear!'
195
230
  title_open: '¡Hablemos!'
231
+ content_blocks:
232
+ map:
233
+ collapse: Iniciar con el menú contraído
234
+ map_center: Centro del mapa (Latitud, Longitud)
235
+ map_center_help: 'Utiliza un punto para marcar los decimales (pe: 41.38879, 2.15899). Deja este campo vacío para incluir automáticamente todos los marcadores'
236
+ map_height: Altura del mapa (px)
237
+ map_settings: Ajustes del mapa
238
+ map_zoom: Zoom (cualquier número entre 0 y 18)
239
+ map_zoom_help: Solo aplica si se define el punto central del mapa
240
+ menu_amendments: Mostrar enmiendas
241
+ menu_meetings: Mostrar encuentros
242
+ name: Mapa Global
243
+ show_accepted: Muestra las propuestas aceptadas
244
+ show_evaluating: Muestra las propuestas en evaluación
245
+ show_not_answered: Muestra las propuestas pendientes de contestart
246
+ show_rejected: Muestra las propuestas rechazadas
247
+ show_withdrawn: Muestra las propuestas retiradas
248
+ text_settings: Ajustes del texto
249
+ title: Título
250
+ truncate: Número máximo de caracteres para las descripciones emergentes
196
251
  credits: Decidim Awesome %{version} · Made with ♥ by Platoniq
252
+ custom_fields:
253
+ errors:
254
+ invalid_fields: No se ha podido analizar el contenido pero se ha asignado al campo '%{field}'
255
+ invalid_xml: 'No se pudo analizar el contenido: no se encontraron los elementos DL/DD en el XML'
197
256
  editor_images:
198
257
  create:
199
258
  error: '¡Error cargando imagen!'
@@ -17,7 +17,9 @@ eu:
17
17
  intergram_title_closed: Closed chat title
18
18
  intergram_title_open: Opened chat title
19
19
  intergram_use_floating_button: If checked, the closed chat is always a button instead of a text
20
- scoped_styles: 'Custom styles #%{id}'
20
+ proposal_custom_fields: Custom fields %{id}
21
+ scoped_admins: Scoped admins group %{id}
22
+ scoped_styles: Custom styles %{id}
21
23
  use_markdown_editor: Use a Markdown editor instead of the HTML editor
22
24
  constraint:
23
25
  component_id: or specifically in
@@ -30,6 +32,8 @@ eu:
30
32
  target: Opens in
31
33
  url: URL
32
34
  visibility: Visibility
35
+ proposal:
36
+ proposal_custom_fields: Custom fields
33
37
  decidim:
34
38
  admin:
35
39
  menu:
@@ -84,22 +88,37 @@ eu:
84
88
  head_tags: Awesome tags included in the application header
85
89
  title: System compatibility checks
86
90
  config:
91
+ caution: 'NOTE: This feature heavily modifies some default behaviours that might lead to unexpected results. Use it with caution!'
87
92
  constraints:
88
93
  add_condition: Add case
89
94
  always: Always
95
+ cannot_be_destroyed: Sorry, this cannot be deleted. This configuration needs at least one constraint.
90
96
  delete: Ezabatu
91
97
  edit: Editatu
92
98
  title: 'Applicable only in these cases:'
99
+ create_proposal_custom_field:
100
+ error: Error creating a new "custom field" box! %{error}
101
+ success: '"custom field" box %{key} created successfully'
102
+ create_scoped_admin:
103
+ error: Error creating a new Admin group! %{error}
104
+ success: Admin group %{key} created successfully
93
105
  create_scoped_style:
94
106
  error: Error creating a new CSS box! %{error}
95
107
  success: CSS box %{key} created successfully
108
+ destroy_proposal_custom_field:
109
+ error: Error removing "custom field" box! %{error}
110
+ success: '"custom field" box %{key} removed successfully'
111
+ destroy_scoped_admin:
112
+ error: Error removing Admin group! %{error}
113
+ success: Admin group %{key} removed successfully
96
114
  destroy_scoped_style:
97
115
  error: Error removing CSS box! %{error}
98
116
  success: CSS box %{key} removed successfully
99
- experimental: Experimental options
100
117
  form:
118
+ edit_label: Rename label
101
119
  errors:
102
120
  incorrect_css: 'CSS in box #%{key} is invalid'
121
+ incorrect_json: 'JSON definition in box #%{key} is invalid'
103
122
  help:
104
123
  allow_images_in_full_editor: This will add an image uploader icon in all the editors WYSIWYG with the full toolbar enabled.
105
124
  allow_images_in_markdown_editor: This will allow markdown editor to upload images by copy & paste or drag & drop.
@@ -109,13 +128,27 @@ eu:
109
128
  drag_and_drop_supported: When uploading images, Drag & Drop is supported. Images will be uploaded to the server and inserted as external resources (it doesn't use base64 inline encoding).
110
129
  intergram_about: Intergram uses Telegram messenger to handle a live support chat widget embedded in the bottom of the page.
111
130
  intergram_config: 'Invite the <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> to your group or start a chat with it directly. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
131
+ proposal_custom_fields: Create custom proposal fields that applies only in certain parts of the public web (use the restrictions editor for that)
132
+ proposal_custom_fields_example: Data is stored in a XML object using compatible HTML attributes (dl,dt,dd elements) replacing the "body" in a normal proposal.
133
+ proposal_custom_fields_translations: "Labels, help text, placeholders and default values can use your application custom translations. \nFor that, instead of using a string literal, use the i18n key (it must containt at least one dot).\nFor instance:\n- \"activemodel.attributes.proposal.title\" instead of \"Title\"\n- \"activemodel.attributes.proposal.address\" instead of \"Address\"\nOr use your own keys in combination with other tools to define translations (eg: using the module Term Customizer):\n - \"myapp.custom_fields.bio\" instead of \"Biography\""
134
+ scoped_admins: Promote regular user to admins that can only administrate certain parts of the public web (use the restrictions editor for that). Note that users who already have regular admin permissions will be ignored.
112
135
  scoped_styles: Create custom CSS that applies only in certain parts of the public web (use the restrictions editor for that)
113
136
  scoped_styles_variables: 'You can use the following CSS variables for organization customized colors:'
114
- use_markdown_editor: This will substitute the Quill WYSIWYG editor, use a Markdown editor instead. Text will be rendered as HTML in the public pages (text in database will be saved as markdown text)
115
- form_styles:
137
+ use_markdown_editor: This will substitute the Quill WYSIWYG editor, use a Markdown editor instead. Text will be saved as HTML in the database.
138
+ form_proposal_custom_fields:
139
+ new: Add a new "custom fields" box
140
+ remove: Remove this "custom fields" box
141
+ sure_to_remove: Are you sure you want to destroy this fields box?
142
+ form_scoped_admins:
143
+ new: Add a new "Scoped Admins" group
144
+ remove: Remove this "Scoped Admins" group
145
+ sure_to_remove: Are you sure you want to destroy this "Scoped Admins" group?
146
+ form_scoped_styles:
116
147
  new: Add a new CSS box
117
148
  remove: Remove this CSS box
118
149
  sure_to_remove: Are you sure you want to destroy this CSS box?
150
+ none: "⛔ Never! - Deactivate any other constraint"
151
+ process_groups: Process groups
119
152
  rich_text_editor_in_public_views: 'NOTE: "Rich text editor for participants" is enabled, this option won''t apply. Use the editors hacks instead to enable images in proposals.'
120
153
  show:
121
154
  title: Tweaks for %{setting}
@@ -145,10 +178,12 @@ eu:
145
178
  error: Error updating condition case
146
179
  success: Condition case updated successfully
147
180
  menu:
181
+ admins: Scoped Admins
148
182
  checks: System compatibility
149
183
  editors: Editor hacks
150
184
  livechat: Live Chat
151
185
  menu_hacks: Menu tweaks
186
+ proposal_custom_fields: Proposals Custom Fields
152
187
  proposals: Proposals hacks
153
188
  styles: Custom styles
154
189
  surveys: Surveys & forms
@@ -193,7 +228,31 @@ eu:
193
228
  intro_message: Hello! How can we help you?
194
229
  title_closed: Click to chat!
195
230
  title_open: Let's chat!
231
+ content_blocks:
232
+ map:
233
+ collapse: Start with collapsed menu
234
+ map_center: Map center (Latitude, Longitude)
235
+ map_center_help: 'Use decimal points (ie: 41.38879, 2.15899). Leave it empty to automatically fit all the markers'
236
+ map_height: Map height (px)
237
+ map_settings: Map settings
238
+ map_zoom: Zoom (any number betwen 0 and 18)
239
+ map_zoom_help: Only applies if a map center is defined
240
+ menu_amendments: Show amendments
241
+ menu_meetings: Show meetings
242
+ name: Awesome Map
243
+ show_accepted: Show accepted proposals
244
+ show_evaluating: Show evaluating proposals
245
+ show_not_answered: Show not answered proposals
246
+ show_rejected: Show rejected proposals
247
+ show_withdrawn: Show withdrawn proposals
248
+ text_settings: Text settings
249
+ title: Title
250
+ truncate: Maximum characters for popup descriptions
196
251
  credits: Decidim Awesome %{version} · Made with ♥ by Platoniq
252
+ custom_fields:
253
+ errors:
254
+ invalid_fields: Content couldn't be parsed but has been assigned to the field '%{field}'
255
+ invalid_xml: 'Content couldn''t be parsed: DL/DD elements not found in the XML'
197
256
  editor_images:
198
257
  create:
199
258
  error: Error uploading image!