decidim-core 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/data_picker.js.es6 +15 -7
- data/app/assets/stylesheets/decidim/_variables.scss +10 -0
- data/app/assets/stylesheets/decidim/modules/_navbar.scss +1 -1
- data/app/assets/stylesheets/decidim/modules/_process-nav.scss +1 -1
- data/app/assets/stylesheets/decidim/vizzs/_areachart.scss +3 -3
- data/app/cells/decidim/activity_cell.rb +1 -0
- data/app/cells/decidim/fingerprint/show.erb +2 -2
- data/app/cells/decidim/fingerprint_cell.rb +1 -0
- data/app/cells/decidim/profile_sidebar/show.erb +1 -1
- data/app/controllers/decidim/application_controller.rb +1 -0
- data/app/helpers/decidim/layout_helper.rb +18 -1
- data/app/helpers/decidim/sanitize_helper.rb +4 -0
- data/app/views/decidim/amendments/new.html.erb +1 -1
- data/config/locales/ar-SA.yml +22 -21
- data/config/locales/ca.yml +237 -240
- data/config/locales/es-MX.yml +4 -4
- data/config/locales/es.yml +246 -250
- data/config/locales/fr.yml +10 -10
- data/config/locales/hu.yml +31 -31
- data/config/locales/it.yml +10 -10
- data/config/locales/nl.yml +3 -3
- data/lib/decidim/content_renderers/hashtag_renderer.rb +13 -2
- data/lib/decidim/core/test/factories.rb +3 -2
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/events/simple_event.rb +8 -1
- metadata +6 -6
data/config/locales/fr.yml
CHANGED
@@ -636,8 +636,8 @@ fr:
|
|
636
636
|
error: Il y a eu un problème pour créer le groupe
|
637
637
|
success: Groupe créé avec succès
|
638
638
|
edit:
|
639
|
-
edit_user_group:
|
640
|
-
update_user_group:
|
639
|
+
edit_user_group: Éditer le groupe
|
640
|
+
update_user_group: Mettre à jour le groupe
|
641
641
|
form:
|
642
642
|
document_number_help: Ne pas utiliser de tirets ni d'espaces
|
643
643
|
email_help: Email de votre organisation, association, collectif, groupe, etc.
|
@@ -670,8 +670,8 @@ fr:
|
|
670
670
|
help:
|
671
671
|
main_topic:
|
672
672
|
default_page:
|
673
|
-
content: "<p>
|
674
|
-
title: Que puis-je faire
|
673
|
+
content: "<p>Sur %{organization} vous pouvez participer et décider sur différents sujets grâce aux espaces que vous voyez dans le menu principal: Processus, Assemblées, Initiatives, Consultations.</p> <p>Au sein de chacune d’elles, vous trouverez différentes options de participation: faites des propositions - individuellement ou avec d’autres personnes -, participez aux débats, accordez la priorité aux projets à mettre en œuvre, participez aux réunions en personne et autres actions.</p>\n"
|
674
|
+
title: Que puis-je faire sur %{organization} ?
|
675
675
|
description: En savoir plus sur %{organization}
|
676
676
|
title: Aide générale
|
677
677
|
last_activities:
|
@@ -821,10 +821,10 @@ fr:
|
|
821
821
|
participate: Participez
|
822
822
|
welcome: Bienvenue sur %{organization} !
|
823
823
|
metrics:
|
824
|
-
headline: Participation
|
824
|
+
headline: Participation en chiffres
|
825
825
|
statistics:
|
826
826
|
answers_count: Enquêtes terminées
|
827
|
-
assemblies_count:
|
827
|
+
assemblies_count: Assemblées
|
828
828
|
comments_count: Commentaires
|
829
829
|
conferences_count: Conférences
|
830
830
|
debates_count: Débats
|
@@ -996,7 +996,7 @@ fr:
|
|
996
996
|
error: Une erreur s'est produite lors de la mise à jour de vos centres d'intérêt.
|
997
997
|
success: Vos intérêts ont été mis à jour avec succès.
|
998
998
|
welcome_notification:
|
999
|
-
default_body: <p>Bonjour {{name}}, merci
|
999
|
+
default_body: <p>Bonjour {{name}}, merci d'avoir rejoins {{organization}} et bienvenue!</p><ul><li>Si vous souhaitez avoir une idée rapide de ce que vous pouvez faire ici, consultez la section <a href="{{help_url}}">Aide</a> .</li><li>Une fois que vous l'avez lu, vous recevrez votre premier badge. Voici une <a href="{{badges_url}}">liste de tous les badges</a> vous pouvez obtenir vous participez à {{organization}}</li><li>En somme, rejoignez d'autres personnes, partagez avec eux l'expérience d'être engagés et participer à {{organization}}. Faites des propositions, des commentaires, lancez des débats, réfléchissez à la manière de contribuer au bien commun, fournissez des arguments pour convaincre, écoutez et lisez pour être convaincu, exprimez vos idées de manière concrète et directe, répondez avec patience et décision, défendez vos idées un esprit ouvert pour collaborer et rejoindre les idées des autres.</li></ul>
|
1000
1000
|
default_subject: Merci d'avoir rejoint {{organization}}!
|
1001
1001
|
devise:
|
1002
1002
|
confirmations:
|
@@ -1153,11 +1153,11 @@ fr:
|
|
1153
1153
|
long_words: contient des mots trop longs (plus de 35 caractères)
|
1154
1154
|
must_start_with_caps: doit commencer par une majuscule
|
1155
1155
|
nesting_too_deep: ne peut pas être à l'intérieur d'une sous-catégorie
|
1156
|
-
not_found:
|
1156
|
+
not_found: non trouvé
|
1157
1157
|
not_locked: n'était pas verrouillé
|
1158
1158
|
not_saved:
|
1159
|
-
one: '1 erreur a
|
1160
|
-
other: "%{count} erreurs
|
1159
|
+
one: '1 erreur a empêché la sauvegarde de %{resource} :'
|
1160
|
+
other: "%{count} erreurs ont empêché la sauvegarde de %{resource} :"
|
1161
1161
|
too_many_marks: utilise trop de signes de ponctuation consécutifs (par exemple! et?)
|
1162
1162
|
too_much_caps: utilise trop de lettres majuscules (plus de 25% du texte)
|
1163
1163
|
too_short: est trop court (moins de 15 caractères)
|
data/config/locales/hu.yml
CHANGED
@@ -42,8 +42,8 @@ hu:
|
|
42
42
|
one: Nincsenek résztvevők
|
43
43
|
other: Felhasználók
|
44
44
|
decidim/user_group:
|
45
|
-
one:
|
46
|
-
other:
|
45
|
+
one: Felhasználói csoport
|
46
|
+
other: csoportok
|
47
47
|
booleans:
|
48
48
|
'false': 'Nem'
|
49
49
|
'true': 'Igen'
|
@@ -383,13 +383,13 @@ hu:
|
|
383
383
|
amendments:
|
384
384
|
amendment_accepted:
|
385
385
|
affected_user:
|
386
|
-
email_intro: 'Módosítást fogadtak el %{amendable_title}. Láthatja ezt az oldalról:'
|
386
|
+
email_intro: 'Módosítást fogadtak el %{amendable_title}. Láthatja ezt erről az oldalról:'
|
387
387
|
email_outro: Ezt az értesítést megkaptuk, mert Ön szerzője a %{amendable_title}.
|
388
|
-
email_subject: Egy módosítás elfogadva %{amendable_title}
|
388
|
+
email_subject: Egy módosítás elfogadva %{amendable_title} innen %{emendation_author_nickname}
|
389
389
|
notification_title: A <a href="%{emendation_author_path}">%{emendation_author_nickname}</a> által létrehozott <a href="%{emendation_path}">módosítás</a> <a href="%{amendable_path}">%{amendable_title}</a> %{amendable_type}elfogadásra került.
|
390
390
|
follower:
|
391
391
|
email_intro: 'Módosítást fogadtak el %{amendable_title}. Láthatja ezt az oldalról:'
|
392
|
-
email_outro: Ezt az értesítést megkapta, mert %{amendable_title}
|
392
|
+
email_outro: Ezt az értesítést megkapta, mert %{amendable_title} követi. Leállíthatja az értesítések fogadását az előző link segítségével.
|
393
393
|
email_subject: Egy módosítás elfogadva %{amendable_title} -ra %{emendation_author_nickname}-tól
|
394
394
|
notification_title: A <a href="%{emendation_author_path}">%{emendation_author_nickname}</a> által létrehozott <a href="%{emendation_path}">módosítás</a> <a href="%{amendable_path}">%{amendable_title}</a> %{amendable_type} elfogadásra került.
|
395
395
|
amendment_created:
|
@@ -399,19 +399,19 @@ hu:
|
|
399
399
|
email_subject: Új módosítási javaslat érkezett ide %{amendable_title} %{emendation_author_nickname} felhasználótól
|
400
400
|
notification_title: A <a href="%{emendation_path}">új módosítás</a> lett létrehozva <a href="%{emendation_author_path}">%{emendation_author_nickname}</a> <a href="%{amendable_path}">%{amendable_title}</a> %{amendable_type}.
|
401
401
|
follower:
|
402
|
-
email_intro: 'Új módosítás történt
|
403
|
-
email_outro: Ezt az értesítést
|
402
|
+
email_intro: 'Új módosítás történt - %{amendable_title}. Láthatja ezt az oldalról:'
|
403
|
+
email_outro: Ezt az értesítést azért kapta, mert %{amendable_title} változásait követi. Leállíthatja az értesítések fogadását az előző link segítségével.
|
404
404
|
email_subject: Új módosítás a %{amendable_title} tól %{emendation_author_nickname}
|
405
405
|
notification_title: A <a href="%{emendation_path}">új módosítás</a> lett létrehozva <a href="%{emendation_author_path}">%{emendation_author_nickname}</a> <a href="%{amendable_path}">%{amendable_title}</a> %{amendable_type}.
|
406
406
|
amendment_promoted:
|
407
407
|
affected_user:
|
408
|
-
email_intro: '
|
409
|
-
email_outro: Ezt az értesítést
|
408
|
+
email_intro: 'Ezt az elutasított módosítást %{amendable_title} önálló módosítássá %{amendable_type} emelték. Láthatja ezt az oldalról:'
|
409
|
+
email_outro: Ezt az értesítést azért kapta, mert Ön szerzője a %{amendable_title} dokumentumnak.
|
410
410
|
email_subject: A %{emendation_author_nickname} ból származó módosítást támogatták
|
411
411
|
notification_title: A <a href="%{emendation_path}"></a> elutasított </a> módosítást a <a href="%{amendable_path}">%{amendable_title}</a> %{amendable_type} re vonatkozóan <a href="%{emendation_author_path}">%{emendation_author_nickname}</a>kal támogatták.
|
412
412
|
follower:
|
413
|
-
email_intro: 'A %{amendable_title} elutasított módosítást önálló %{amendable_type}emelték. Láthatja ezt az oldalról:'
|
414
|
-
email_outro: Ezt az értesítést
|
413
|
+
email_intro: 'A %{amendable_title} című elutasított módosítást önálló %{amendable_type} módosításra emelték. Láthatja ezt az oldalról:'
|
414
|
+
email_outro: Ezt az értesítést azért kapta, mert a %{amendable_title} követi. Leállíthatja az értesítések fogadását az előző link segítségével.
|
415
415
|
email_subject: A %{emendation_author_nickname} ból származó módosítást támogatták
|
416
416
|
notification_title: A <a href="%{emendation_path}"></a> elutasított </a> módosítást a <a href="%{amendable_path}">%{amendable_title}</a> %{amendable_type} re vonatkozóan <a href="%{emendation_author_path}">%{emendation_author_nickname}</a>kal támogatták.
|
417
417
|
amendment_rejected:
|
@@ -669,7 +669,7 @@ hu:
|
|
669
669
|
help:
|
670
670
|
main_topic:
|
671
671
|
default_page:
|
672
|
-
content: "<p>Az %{organization} részt
|
672
|
+
content: "<p>Az %{organization} -ben részt vehetsz és dönthetsz különböző témákban a főmenüben megjelenő mezőkön keresztül: Folyamatok, Gyűlések, Kezdeményezések, Konzultációk.</p> <p>Mindegyikben megtalálja a különböző lehetőségeket a részvételre: készítsen javaslatokat - egyénileg vagy más emberekkel -, vegyél részt vitákban, fontold meg a végrehajtandó projekteket, vegyél részt személyes találkozókon és egyéb tevékenységekben.</p>\n"
|
673
673
|
title: Mit tehetek a %{organization} szervezetben?
|
674
674
|
description: További információ a %{organization} szervezetről
|
675
675
|
title: Általános segítség
|
@@ -738,7 +738,7 @@ hu:
|
|
738
738
|
download:
|
739
739
|
csv: Adatok letöltése (csv)
|
740
740
|
followers:
|
741
|
-
description: A
|
741
|
+
description: A résztvevők száma, akik ezt a részvételi teret követik
|
742
742
|
object: követők
|
743
743
|
title: Követők
|
744
744
|
participants:
|
@@ -747,8 +747,8 @@ hu:
|
|
747
747
|
title: Résztvevők
|
748
748
|
users:
|
749
749
|
description: A felhasználók száma a szervezetben
|
750
|
-
object:
|
751
|
-
title:
|
750
|
+
object: résztvevők
|
751
|
+
title: Résztvevők
|
752
752
|
newsletter_mailer:
|
753
753
|
newsletter:
|
754
754
|
note: Ezt az emailt azért kapta meg, mert feliratkozott a(z) %{organization_name}hírlevelekre. Megváltoztathatja a beállításokat az <a href="%{link}">értesítések oldalon</a>.
|
@@ -873,7 +873,7 @@ hu:
|
|
873
873
|
participatory_space_private_users:
|
874
874
|
not_allowed: Nincs jogosultságod a tartalom megtekintésére
|
875
875
|
profile:
|
876
|
-
deleted: Törölt
|
876
|
+
deleted: Törölt résztvevő
|
877
877
|
view: Nézet
|
878
878
|
profiles:
|
879
879
|
default_officialization_text_for_user_groups: Ez a felhasználói csoport nyilvánosan ellenőrzött, annak neve igazoltan megfelel a valódi nevének
|
@@ -897,7 +897,7 @@ hu:
|
|
897
897
|
edit_profile: Profil szerkesztése
|
898
898
|
edit_user_group: Csoportprofil szerkesztése
|
899
899
|
fill_in_email_to_confirm_it: Kérjük, töltse ki a csoport e-mailjét a megerősítéshez
|
900
|
-
invite_user:
|
900
|
+
invite_user: Résztvevő meghívása
|
901
901
|
join_user_group: Csatlakozás kérése a csoporthoz
|
902
902
|
leave_user_group: Kilépés a csoportból
|
903
903
|
manage_user_group_admins: Adminisztrátorok kezelése
|
@@ -946,7 +946,7 @@ hu:
|
|
946
946
|
results:
|
947
947
|
results:
|
948
948
|
one: "%{count} eredmény"
|
949
|
-
other: "%{count}
|
949
|
+
other: "%{count} eredmény"
|
950
950
|
view_all: Összes megtekintése (%{count})
|
951
951
|
shared:
|
952
952
|
embed_modal:
|
@@ -955,7 +955,7 @@ hu:
|
|
955
955
|
embed_link: Beágyaz
|
956
956
|
extended_navigation_bar:
|
957
957
|
more: Több
|
958
|
-
unfold:
|
958
|
+
unfold: Kibontás
|
959
959
|
flag_modal:
|
960
960
|
already_reported: Ezt a tartalmat már jelentették, az adminisztrátor éppen felülvizsgálja.
|
961
961
|
close: Bezárás
|
@@ -981,22 +981,22 @@ hu:
|
|
981
981
|
share: Megosztás
|
982
982
|
share_link: Hivatkozás megosztása
|
983
983
|
version_author:
|
984
|
-
deleted: Törölt
|
984
|
+
deleted: Törölt résztvevő
|
985
985
|
user_activity:
|
986
986
|
index:
|
987
|
-
no_activities_warning:
|
987
|
+
no_activities_warning: Ez a résztvevő még nem végzett tevékenységet.
|
988
988
|
user_interests:
|
989
989
|
show:
|
990
|
-
my_interests:
|
991
|
-
no_scopes: Ennek a szervezetnek még nincs
|
992
|
-
select_your_interests:
|
990
|
+
my_interests: Érdeklődési köreim
|
991
|
+
no_scopes: Ennek a szervezetnek még nincs hatóköre!
|
992
|
+
select_your_interests: Válaszd ki a téged érdeklő témákat, hogy hozzájuss a hozzájuk kapcsolódó eseményekhez a profilod Idővonal lapján.
|
993
993
|
update_my_interests: Érdeklődésem frissítése
|
994
994
|
update:
|
995
995
|
error: Hiba történt az érdeklődési körök frissítése közben.
|
996
|
-
success: Az
|
996
|
+
success: Az érdeklődési köreid sikeresen frissültek.
|
997
997
|
welcome_notification:
|
998
|
-
default_body: <p>
|
999
|
-
default_subject: Köszönjük, hogy
|
998
|
+
default_body: <p>Szia{{name}}, üdvözöllek és köszönöm, hogy csatlakoztál a {{organization}} szervezethez</p><ul><li>Ha gyorsan meg szeretnéd tudni, hogy mit tehetsz itt, nézd meg a <a href="{{help_url}}">Súgó</a> részt.</li><li>Miután elolvastad, megkapod az első jelvényed. Itt van egy <a href="{{badges_url}}">lista a</a> jelvényekről, melyeket akkor érdemelsz ki, ha részt veszel a {{organization}}</li><li> szervezetben. Végül, de nem utolsósorban, kapcsolódj más emberekhez is, oszd meg velük a tapasztalatodat a {{organization}} részvételében. Tegyél javaslatokat, megjegyzéseket, generálj vitákat és gondold végig, hogyan járulj hozzá a közjó előmozdításához, gyűjts érveket, hogy meggyőzz másokat, hallgass meg és olvasd el mások meggyőződést, fejezd ki ötleteidet konkrét és közvetlen módon, válaszolj türelemmel és határozottan, védd meg ötleteidet és hagyd nyitva elmédet, hogy elősegítsd az együttműködést és lehetőséget teremts más emberek ötleteinek befogadásához.</li></ul>
|
999
|
+
default_subject: Köszönjük, hogy csatlakoztál a {{organization}} szervezethez!
|
1000
1000
|
devise:
|
1001
1001
|
confirmations:
|
1002
1002
|
confirmed: E-mail címed sikeresen meg lett erősítve.
|
@@ -1033,7 +1033,7 @@ hu:
|
|
1033
1033
|
confirmation_instructions:
|
1034
1034
|
action: Fiókom megerősítése
|
1035
1035
|
greeting: Üdvözöljük %{recipient}!
|
1036
|
-
instruction: '
|
1036
|
+
instruction: 'Fiókodhoz tartozó e-mailt az alábbi linken keresztül erősítheted meg:'
|
1037
1037
|
subject: Megerősítési utasítások
|
1038
1038
|
email_changed:
|
1039
1039
|
greeting: Hello %{recipient}!
|
@@ -1174,7 +1174,7 @@ hu:
|
|
1174
1174
|
edit_link:
|
1175
1175
|
edit: Szerkesztés
|
1176
1176
|
footer:
|
1177
|
-
download_open_data: Töltse le
|
1177
|
+
download_open_data: Töltse le a Nyílt Adat fájlokat
|
1178
1178
|
made_with_open_source: Az oldal <a target="_blank" href="https://github.com/decidim/decidim">nyílt forráskódú szoftverrel</a> készült.
|
1179
1179
|
header:
|
1180
1180
|
close_menu: Menü bezárása
|
@@ -1183,7 +1183,7 @@ hu:
|
|
1183
1183
|
sign_up: Regisztráció
|
1184
1184
|
impersonation_warning:
|
1185
1185
|
close_session: Munkamenet bezárása
|
1186
|
-
description_html: <b>%{user_name}</b>
|
1186
|
+
description_html: <b>%{user_name}</b> felhasználó menedzselése.
|
1187
1187
|
expire_time_html: A munkamenet <b><span class="minutes">%{minutes}</span> perc múlva lejár</b>.
|
1188
1188
|
notifications_dashboard:
|
1189
1189
|
mark_all_as_read: Összes megjelölése olvasottként
|
@@ -1201,7 +1201,7 @@ hu:
|
|
1201
1201
|
my_data: Adataim
|
1202
1202
|
my_interests: Érdekeim
|
1203
1203
|
notifications_settings: Értesítési beállítások
|
1204
|
-
title:
|
1204
|
+
title: A résztvevő beállításai
|
1205
1205
|
user_groups: Csoportok
|
1206
1206
|
widget:
|
1207
1207
|
see_more: Tovább
|
data/config/locales/it.yml
CHANGED
@@ -12,7 +12,7 @@ it:
|
|
12
12
|
nickname: Nome utente
|
13
13
|
password: Password
|
14
14
|
password_confirmation: Conferma la tua password
|
15
|
-
personal_url:
|
15
|
+
personal_url: Pagina personale
|
16
16
|
remove_avatar: Rimuovi avatar
|
17
17
|
models:
|
18
18
|
decidim/attachment_created_event: Allegato
|
@@ -23,7 +23,7 @@ it:
|
|
23
23
|
decidim/join_request_accepted_event: Richiesta di adesione accettata
|
24
24
|
decidim/join_request_rejected_event: Richiesta di adesione rifiutata
|
25
25
|
decidim/profile_updated_event: profilo aggiornato
|
26
|
-
decidim/promote_to_admin: Promosso ad amministratore
|
26
|
+
decidim/promote_to_admin: Promosso ad amministratore del gruppo
|
27
27
|
decidim/removed_from_group: Rimosso dal gruppo
|
28
28
|
activerecord:
|
29
29
|
attributes:
|
@@ -148,8 +148,8 @@ it:
|
|
148
148
|
success: La modifica è stata creata con successo
|
149
149
|
emendation:
|
150
150
|
actions:
|
151
|
-
button_accept:
|
152
|
-
button_reject:
|
151
|
+
button_accept: Accettato
|
152
|
+
button_reject: Rifiutato
|
153
153
|
help_text: Esaminare le modifiche e accettare o rifiutare questo emendamento. Una notifica verrà inviata al suo autore (s).
|
154
154
|
announcement:
|
155
155
|
accepted: |-
|
@@ -316,7 +316,7 @@ it:
|
|
316
316
|
email_already_exists: Questo indirizzo email è già utilizzato per un altro account
|
317
317
|
new:
|
318
318
|
complete_profile: Completa il profilo
|
319
|
-
nickname_help: Il tuo
|
319
|
+
nickname_help: Il tuo nickname (@nickname) in %{organization}
|
320
320
|
sign_up: Si prega di completare il profilo
|
321
321
|
subtitle: Si prega di compilare il seguente modulo per completare la registrazione
|
322
322
|
username_help: Nome pubblico che appare suoi tuoi post. Con l'obiettivo di garantire l'anonimato, può essere qualsiasi nome.
|
@@ -330,7 +330,7 @@ it:
|
|
330
330
|
sign_up: Iscriviti
|
331
331
|
sign_up_as:
|
332
332
|
legend: Registrati come
|
333
|
-
subtitle: Registrati per partecipare alle discussioni e
|
333
|
+
subtitle: Registrati per partecipare alle discussioni e sostenere le proposte.
|
334
334
|
terms: Termini e condizioni di utilizzo del servizio
|
335
335
|
tos_agreement: Iscrivendoti accetti le %{link}.
|
336
336
|
tos_title: Termini di servizio
|
@@ -528,10 +528,10 @@ it:
|
|
528
528
|
no_followings: Non segue nessuno o niente ancora.
|
529
529
|
follows:
|
530
530
|
create:
|
531
|
-
button:
|
531
|
+
button: Segui
|
532
532
|
error: C'è stato un errore seguendo questa risorsa.
|
533
533
|
destroy:
|
534
|
-
button:
|
534
|
+
button: Smetti di seguire
|
535
535
|
error: Si è verificato un errore ad smettere questa risorsa.
|
536
536
|
forms:
|
537
537
|
current_file: File attuale
|
@@ -829,7 +829,7 @@ it:
|
|
829
829
|
conferences_count: conferenze
|
830
830
|
debates_count: Dibattiti
|
831
831
|
endorsements_count: Riconoscimenti
|
832
|
-
headline:
|
832
|
+
headline: Statistiche su %{organization}
|
833
833
|
meetings_count: incontri
|
834
834
|
orders_count: Voti
|
835
835
|
pages_count: Pagine
|
@@ -1119,7 +1119,7 @@ it:
|
|
1119
1119
|
already_signed_out: Sottoscritto con successo.
|
1120
1120
|
new:
|
1121
1121
|
sign_in: Accesso
|
1122
|
-
signed_in:
|
1122
|
+
signed_in: Loggin effettuato.
|
1123
1123
|
signed_out: Sottoscritto con successo.
|
1124
1124
|
shared:
|
1125
1125
|
links:
|
data/config/locales/nl.yml
CHANGED
@@ -269,7 +269,7 @@ nl:
|
|
269
269
|
comments_enabled: Reacties ingeschakeld
|
270
270
|
dummy_global_attribute_1: Voorbeeld-kenmerk 1
|
271
271
|
dummy_global_attribute_2: Voorbeeld-kenmerk 2
|
272
|
-
enable_pads_creation: Schakel het maken van
|
272
|
+
enable_pads_creation: Schakel het maken van notitieblokken in
|
273
273
|
resources_permissions_enabled: Resources permissies ingeschakeld
|
274
274
|
step:
|
275
275
|
comments_blocked: Reacties geblokkeerd
|
@@ -800,8 +800,8 @@ nl:
|
|
800
800
|
verified: Geverifieerd
|
801
801
|
pad_iframe:
|
802
802
|
disclaimer: De inhoud van dit notitieblok is geschreven door geregistreerde gebruikers en geeft hun mening weer. %{organization} kan niet verantwoordelijk worden gehouden voor de inhoud ervan.
|
803
|
-
explanation: Gebruik
|
804
|
-
pad:
|
803
|
+
explanation: Gebruik dit notitieblok om tijdens de vergadering gezamenlijk notities te maken, om later eenvoudig notulen te kunnen maken.
|
804
|
+
pad: Notitieblok
|
805
805
|
pages:
|
806
806
|
home:
|
807
807
|
extended:
|
@@ -9,6 +9,9 @@ module Decidim
|
|
9
9
|
#
|
10
10
|
# @see BaseRenderer Examples of how to use a content renderer
|
11
11
|
class HashtagRenderer < BaseRenderer
|
12
|
+
include ActionView::Helpers::SanitizeHelper
|
13
|
+
include Decidim::SanitizeHelper
|
14
|
+
|
12
15
|
# Matches a global id representing a Decidim::Hashtag
|
13
16
|
GLOBAL_ID_REGEX = %r{gid:\/\/[\w-]*\/Decidim::Hashtag\/(\d+)\/?(_?)([[:alnum:]](?:[[:alnum:]]|_)*)?\b}
|
14
17
|
|
@@ -18,10 +21,18 @@ module Decidim
|
|
18
21
|
#
|
19
22
|
# links - should render hashtags as links?
|
20
23
|
# extras - should include extra hashtags?
|
24
|
+
# html_escape - should the content be HTML-escaped before rendering
|
25
|
+
# hashtags?
|
26
|
+
# strip_tags - should the HTML tags of the content be stripped before
|
27
|
+
# rendering hashtags?
|
21
28
|
#
|
22
29
|
# @return [String] the content ready to display (contains HTML)
|
23
|
-
def render(links: true, extras: true)
|
24
|
-
|
30
|
+
def render(links: true, extras: true, html_escape: false, strip_tags: false)
|
31
|
+
text = content
|
32
|
+
text = strip_tags(text) if strip_tags
|
33
|
+
text = decidim_html_escape(text) if html_escape
|
34
|
+
|
35
|
+
text.gsub(GLOBAL_ID_REGEX) do |hashtag_gid|
|
25
36
|
id, extra, cased_name = hashtag_gid.scan(GLOBAL_ID_REGEX).flatten
|
26
37
|
hashtag = hashtags[id.to_i]
|
27
38
|
|
@@ -17,7 +17,7 @@ FactoryBot.define do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
sequence(:name) do |n|
|
20
|
-
"#{Faker::Name.name} #{n}"
|
20
|
+
"#{Faker::Name.name} #{n}".delete("'")
|
21
21
|
end
|
22
22
|
|
23
23
|
sequence(:nickname) do |n|
|
@@ -105,7 +105,7 @@ FactoryBot.define do
|
|
105
105
|
tos_agreement { "1" }
|
106
106
|
avatar { Decidim::Dev.test_file("avatar.jpg", "image/jpeg") }
|
107
107
|
personal_url { Faker::Internet.url }
|
108
|
-
about { Faker::Lorem.paragraph(2) }
|
108
|
+
about { "<script>alert(\"ABOUT\");</script>" + Faker::Lorem.paragraph(2) }
|
109
109
|
confirmation_sent_at { Time.current }
|
110
110
|
accepted_tos_version { organization.tos_version }
|
111
111
|
email_on_notification { true }
|
@@ -163,6 +163,7 @@ FactoryBot.define do
|
|
163
163
|
email { generate(:user_group_email) }
|
164
164
|
nickname { generate(:nickname) }
|
165
165
|
avatar { Decidim::Dev.test_file("avatar.jpg", "image/jpeg") }
|
166
|
+
about { "<script>alert(\"ABOUT\");</script>" + Faker::Lorem.paragraph(2) }
|
166
167
|
organization
|
167
168
|
|
168
169
|
transient do
|
data/lib/decidim/core/version.rb
CHANGED
@@ -11,6 +11,7 @@ module Decidim
|
|
11
11
|
include Decidim::Events::EmailEvent
|
12
12
|
include Decidim::Events::NotificationEvent
|
13
13
|
include Decidim::ComponentPathHelper
|
14
|
+
include Decidim::SanitizeHelper
|
14
15
|
|
15
16
|
class_attribute :i18n_interpolations
|
16
17
|
self.i18n_interpolations = []
|
@@ -66,7 +67,13 @@ module Decidim
|
|
66
67
|
|
67
68
|
# Public: The Hash of options to pass to the I18.t method.
|
68
69
|
def i18n_options
|
69
|
-
default_i18n_options.merge(event_interpolations)
|
70
|
+
default_i18n_options.merge(event_interpolations).transform_values do |value|
|
71
|
+
if value.is_a?(String)
|
72
|
+
decidim_html_escape(value)
|
73
|
+
else
|
74
|
+
value
|
75
|
+
end
|
76
|
+
end
|
70
77
|
end
|
71
78
|
|
72
79
|
# Caches the path for the given resource when it's a Decidim::Component.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.1
|
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: 2019-
|
13
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: active_link_to
|
@@ -732,28 +732,28 @@ dependencies:
|
|
732
732
|
requirements:
|
733
733
|
- - '='
|
734
734
|
- !ruby/object:Gem::Version
|
735
|
-
version: 0.17.
|
735
|
+
version: 0.17.1
|
736
736
|
type: :runtime
|
737
737
|
prerelease: false
|
738
738
|
version_requirements: !ruby/object:Gem::Requirement
|
739
739
|
requirements:
|
740
740
|
- - '='
|
741
741
|
- !ruby/object:Gem::Version
|
742
|
-
version: 0.17.
|
742
|
+
version: 0.17.1
|
743
743
|
- !ruby/object:Gem::Dependency
|
744
744
|
name: decidim-dev
|
745
745
|
requirement: !ruby/object:Gem::Requirement
|
746
746
|
requirements:
|
747
747
|
- - '='
|
748
748
|
- !ruby/object:Gem::Version
|
749
|
-
version: 0.17.
|
749
|
+
version: 0.17.1
|
750
750
|
type: :development
|
751
751
|
prerelease: false
|
752
752
|
version_requirements: !ruby/object:Gem::Requirement
|
753
753
|
requirements:
|
754
754
|
- - '='
|
755
755
|
- !ruby/object:Gem::Version
|
756
|
-
version: 0.17.
|
756
|
+
version: 0.17.1
|
757
757
|
description: Adds core features so other engines can hook into the framework.
|
758
758
|
email:
|
759
759
|
- josepjaume@gmail.com
|