decidim-core 0.29.1 → 0.29.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/activity_cell.rb +0 -3
  3. data/app/cells/decidim/author/show.erb +5 -4
  4. data/app/cells/decidim/author_cell.rb +26 -0
  5. data/app/cells/decidim/card_s/show.erb +5 -3
  6. data/app/cells/decidim/diff_cell.rb +4 -0
  7. data/app/cells/decidim/newsletter_templates/image_text_cta_cell.rb +1 -1
  8. data/app/cells/decidim/translation_bar/show.erb +2 -2
  9. data/app/cells/decidim/translation_bar_cell.rb +1 -1
  10. data/app/commands/decidim/destroy_account.rb +3 -0
  11. data/app/controllers/decidim/doorkeeper/credentials_controller.rb +1 -1
  12. data/app/controllers/decidim/links_controller.rb +1 -1
  13. data/app/controllers/decidim/profiles_controller.rb +4 -0
  14. data/app/helpers/concerns/decidim/user_role_checker.rb +46 -0
  15. data/app/helpers/decidim/cta_button_helper.rb +1 -1
  16. data/app/helpers/decidim/map_helper.rb +6 -1
  17. data/app/helpers/decidim/sanitize_helper.rb +11 -2
  18. data/app/models/decidim/attachment.rb +1 -1
  19. data/app/packs/src/decidim/append_redirect_url_to_modals.js +14 -6
  20. data/app/packs/src/decidim/direct_uploads/upload_field.js +21 -8
  21. data/app/packs/src/decidim/index.js +3 -0
  22. data/app/packs/src/decidim/remote_tooltips.js +38 -0
  23. data/app/packs/src/decidim/toggle.js +1 -1
  24. data/app/packs/src/decidim/tooltips.js +42 -22
  25. data/app/packs/stylesheets/decidim/_labels.scss +1 -1
  26. data/app/packs/stylesheets/decidim/_profile.scss +1 -1
  27. data/app/packs/stylesheets/decidim/_progress-bar.scss +1 -1
  28. data/app/packs/stylesheets/decidim/legacy/conference-diploma.scss +2 -1
  29. data/app/presenters/decidim/attachment_presenter.rb +1 -1
  30. data/app/services/decidim/base_diff_renderer.rb +26 -2
  31. data/app/services/decidim/email_notification_generator.rb +14 -5
  32. data/app/views/decidim/pages/_tabbed.html.erb +2 -2
  33. data/app/views/layouts/decidim/header/_menu_breadcrumb_mobile_tablet.html.erb +1 -1
  34. data/config/locales/ar.yml +16 -0
  35. data/config/locales/bn-BD.yml +1 -0
  36. data/config/locales/bs-BA.yml +98 -0
  37. data/config/locales/ca.yml +13 -9
  38. data/config/locales/cs.yml +5 -0
  39. data/config/locales/de.yml +18 -14
  40. data/config/locales/el.yml +7 -0
  41. data/config/locales/en.yml +4 -0
  42. data/config/locales/es-MX.yml +5 -1
  43. data/config/locales/es-PY.yml +5 -1
  44. data/config/locales/es.yml +11 -7
  45. data/config/locales/eu.yml +198 -181
  46. data/config/locales/fi-plain.yml +4 -0
  47. data/config/locales/fi.yml +39 -35
  48. data/config/locales/fr-CA.yml +6 -2
  49. data/config/locales/fr.yml +5 -1
  50. data/config/locales/ga-IE.yml +9 -0
  51. data/config/locales/gl.yml +8 -0
  52. data/config/locales/hu.yml +3 -3
  53. data/config/locales/id-ID.yml +8 -0
  54. data/config/locales/is-IS.yml +8 -1
  55. data/config/locales/it.yml +19 -0
  56. data/config/locales/ja.yml +15 -13
  57. data/config/locales/lb.yml +9 -0
  58. data/config/locales/lt.yml +5 -1
  59. data/config/locales/lv.yml +8 -0
  60. data/config/locales/nl.yml +10 -1
  61. data/config/locales/no.yml +9 -0
  62. data/config/locales/pl.yml +1 -1
  63. data/config/locales/pt-BR.yml +2 -1
  64. data/config/locales/pt.yml +14 -0
  65. data/config/locales/ro-RO.yml +258 -135
  66. data/config/locales/ru.yml +8 -0
  67. data/config/locales/sk.yml +9 -1
  68. data/config/locales/sv.yml +7 -7
  69. data/config/locales/tr-TR.yml +10 -1
  70. data/config/locales/uk.yml +8 -1
  71. data/config/locales/zh-CN.yml +9 -0
  72. data/config/locales/zh-TW.yml +8 -0
  73. data/config/routes.rb +1 -0
  74. data/decidim-core.gemspec +4 -1
  75. data/lib/decidim/api/functions/component_list.rb +1 -1
  76. data/lib/decidim/api/functions/participatory_space_finder_base.rb +11 -1
  77. data/lib/decidim/api/interfaces/participatory_space_interface.rb +1 -1
  78. data/lib/decidim/api/types/component_type.rb +7 -0
  79. data/lib/decidim/api/types/user_group_type.rb +4 -0
  80. data/lib/decidim/api/types/user_type.rb +4 -0
  81. data/lib/decidim/attributes/rich_text.rb +38 -0
  82. data/lib/decidim/attributes/time_with_zone.rb +11 -1
  83. data/lib/decidim/attributes.rb +2 -0
  84. data/lib/decidim/content_parsers/blob_parser.rb +93 -0
  85. data/lib/decidim/content_parsers.rb +1 -0
  86. data/lib/decidim/content_renderers/blob_renderer.rb +90 -0
  87. data/lib/decidim/content_renderers.rb +1 -0
  88. data/lib/decidim/core/engine.rb +29 -1
  89. data/lib/decidim/core/test/factories.rb +28 -0
  90. data/lib/decidim/core/test/shared_examples/authorable_interface_examples.rb +1 -1
  91. data/lib/decidim/core/test/shared_examples/comments_examples.rb +15 -2
  92. data/lib/decidim/core/version.rb +1 -1
  93. data/lib/decidim/diffy_extension.rb +18 -0
  94. data/lib/decidim/form_builder.rb +1 -1
  95. data/lib/decidim/map/autocomplete.rb +1 -0
  96. data/lib/decidim/participatory_space_user.rb +4 -0
  97. data/lib/decidim/query_extensions.rb +0 -26
  98. data/lib/decidim/settings_manifest.rb +2 -0
  99. data/lib/decidim/translatable_attributes.rb +6 -1
  100. data/lib/tasks/upgrade/decidim_fix_categorization.rake +34 -8
  101. metadata +28 -7
@@ -518,8 +518,8 @@ ja:
518
518
  html_content: HTML コンテンツ
519
519
  name: HTMLブロック
520
520
  last_activity:
521
- name: 最後のアクティビティ
522
- title: 最後のアクティビティ
521
+ name: 最近のアクティビティ
522
+ title: 最近のアクティビティ
523
523
  view_all: すべて表示
524
524
  last_activity_settings_form:
525
525
  max_last_activity_users: 最近のアクティビティを表示するユーザーアバターの最大数
@@ -644,7 +644,7 @@ ja:
644
644
  drag_and_drop_help: ドラッグ&ドロップまたは貼り付けることで画像を追加できます。
645
645
  endorsement_buttons_cell:
646
646
  already_endorsed: 取り消し
647
- endorse: いいね
647
+ endorse: オススメ
648
648
  endorsements:
649
649
  identities:
650
650
  done: 完了
@@ -744,7 +744,7 @@ ja:
744
744
  level_up:
745
745
  email_intro: おめでとうございます! <a href="%{resource_url}">%{badge_name} バッジ</a>のレベル %{current_level} に到達しました!
746
746
  email_outro: サイトでの活動によって、この通知を受け取りました。
747
- email_subject: '%{current_level} バッジのレベル %{badge_name} に達しました!'
747
+ email_subject: '%{badge_name} バッジがレベル %{current_level} に達しました!'
748
748
  notification_title: おめでとうございます! <a href="%{resource_path}">%{badge_name} バッジ</a>のレベル %{current_level} に到達しました!
749
749
  groups:
750
750
  demoted_membership:
@@ -851,7 +851,7 @@ ja:
851
851
  no_followers: フォロワーはまだいません。
852
852
  following:
853
853
  following_count:
854
- other: "{{count}} フォロワー"
854
+ other: "%{count} 人をフォロー中"
855
855
  no_followings: まだ何もフォローしていません
856
856
  non_public_followings: フォローしているリソースのいくつかは公開されていません。
857
857
  follows:
@@ -1031,8 +1031,8 @@ ja:
1031
1031
  last_activities:
1032
1032
  all: すべてのアクティビティ種別
1033
1033
  index:
1034
- last_activity: 最後のアクティビティ
1035
- name: 最後のアクティビティ
1034
+ last_activity: 最近のアクティビティ
1035
+ name: 最近のアクティビティ
1036
1036
  no_activities_warning: このアクティビティ種別に表示するエントリがありません。
1037
1037
  linked_resource_from:
1038
1038
  included_in: 含まれるリスト
@@ -1066,6 +1066,8 @@ ja:
1066
1066
  not_found: 'スコープがデータベース上に見つかりませんでした (ID: %{id})'
1067
1067
  scope_type_presenter:
1068
1068
  not_found: 'スコープ種別がデータベース上に見つかりませんでした (ID: %{id})'
1069
+ machine_translations:
1070
+ automatic: '%{locale_name} の自動翻訳'
1069
1071
  managed_users:
1070
1072
  expired_session: 参加者の現在の管理セッションの有効期限が切れています。
1071
1073
  map:
@@ -1242,10 +1244,10 @@ ja:
1242
1244
  notifications_settings:
1243
1245
  show:
1244
1246
  administrators: 管理者
1245
- allow_public_contact: 私をフォローしていないユーザーからでもダイレクトメッセージを送信できます
1246
- allow_push_notifications: プラットフォーム上にいないときに何が起きているかを知るためにプッシュ通知を受け取ります。いつでもオフにできます。
1247
+ allow_public_contact: フォローしていない人からのダイレクトメッセージを受信する
1248
+ allow_push_notifications: プラットフォーム上にいないときに何が起きているかを知るためにプッシュ通知を受け取る。いつでもオフにできます。
1247
1249
  direct_messages: ダイレクトメッセージを受信する
1248
- email_on_moderations: 私はモデレーションの報告がなされたたびに毎回メールを受け取りたいです。
1250
+ email_on_moderations: モデレーションの報告がなされたたびに毎回メールを受け取りたい
1249
1251
  everything_followed: 自分がフォローしているすべて
1250
1252
  newsletter_notifications: ニュースレターを受け取る
1251
1253
  newsletters: ニュースレター
@@ -1257,10 +1259,10 @@ ja:
1257
1259
  real_time: リアルタイム
1258
1260
  weekly: 週1回
1259
1261
  notifications_sending_frequency: 通知メールを受信する頻度は?
1260
- own_activity: 誰かが提案にコメントしたり、私に言及したりした時など、自分自身の活動
1262
+ own_activity: 誰かが私の提案にコメントしたり、私に言及したりした時など、自分自身の活動
1261
1263
  push_notifications: プッシュ通知
1262
1264
  push_notifications_reminder: プラットフォームから通知を受け取るには、まずブラウザの設定で通知を許可する必要があります。
1263
- receive_notifications_about: 通知を受け取りたい
1265
+ receive_notifications_about: 受け取りたい通知
1264
1266
  update_notifications_settings: 変更を保存
1265
1267
  update:
1266
1268
  error: 通知設定の更新中に問題が発生しました。
@@ -1586,7 +1588,7 @@ ja:
1586
1588
  show:
1587
1589
  version_index: バージョン %{index}
1588
1590
  welcome_notification:
1589
- default_body: <p>{{name}} さん、{{organization}} への参加ありがとうございます!</p><ul><li>このサイトで何ができるかを概観したい場合は、<a href="{{help_url}}">ヘルプ</a>セクションをご覧ください。</li><li>目を通していただけると、最初のバッジを手に入れることができます。こちらは{{organization}} で参加することで手に入るすべてのバッジの<a href="{{badges_url}}">リスト</a>です。</li><li>そして、他の人々と一緒に{{organization}} に参加した経験を共有しましょう。提案を行い、コメントをし、議論を行い、共通の利益に貢献する方法を考え、説得するための根拠を提供し、読んで説得され、具体的かつ直接的に自分の意見を表現し、忍耐強く決定的に応答し、自分の考えを守り、協力して他の人々のアイデアに参加するために心を開いてください。</li></ul>
1591
+ default_body: <p>こんにちは {{name}} さん, {{organization}} へご参加いただきありがとうございます。</p><ul><li>このサイトの使い方は、 <a href="{{help_url}}">ヘルプ</a> セクションをご参照ください。</li><li>目を通していただけると、最初のバッジを獲得できます。<a href="{{badges_url}}">全てのバッジの一覧</a> から、この {{organization}} への参加で獲得できるバッジを見ることができます。</li><li>他の人と一緒に参加し、この {{organization}} へ参加した経験をシェアしましょう。提案を作り、コメントし、議論を行い、共通の利益に貢献する方法を考え、議論に説得力をもたせ、主張を聞いたり読んだりしながら納得し、具体的かつ直接的な方法であなたの考えを表明し、忍耐と決断を持って対応し、自らの考えを守り、他人の考えを取り入れて協力し合いましょう。</li></ul>
1590
1592
  default_subject: '{{organization}} に参加していただきありがとうございます!'
1591
1593
  wizard_step_form:
1592
1594
  wizard_aside:
@@ -66,6 +66,8 @@ lb:
66
66
  'false': 'Nee'
67
67
  'true': 'Jo'
68
68
  date:
69
+ buttons:
70
+ select: Wiel
69
71
  formats:
70
72
  decidim_short: "%d/%m/%Y"
71
73
  decidim_short_with_month_name_short: "%d %b %Y"
@@ -372,6 +374,10 @@ lb:
372
374
  name: Organisations-Statistiken
373
375
  sub_hero:
374
376
  name: Sub hero Banner
377
+ core:
378
+ application_helper:
379
+ filter_category_values:
380
+ all: All
375
381
  devise:
376
382
  omniauth_registrations:
377
383
  new:
@@ -995,6 +1001,7 @@ lb:
995
1001
  participatory_space_filters:
996
1002
  filters:
997
1003
  areas: Beräicher
1004
+ scope: Ëmfang
998
1005
  select_an_area: Wiel e Beräich
999
1006
  public_participation:
1000
1007
  public_participation: Uweisen, dass ech ageloggt sinn
@@ -1299,6 +1306,8 @@ lb:
1299
1306
  whatsapp_web: WhatsApp
1300
1307
  xing: Xing
1301
1308
  time:
1309
+ buttons:
1310
+ select: Wiel
1302
1311
  formats:
1303
1312
  day_of_month: "%b%b"
1304
1313
  day_of_week: "%a"
@@ -85,6 +85,8 @@ lt:
85
85
  'false': 'Ne'
86
86
  'true': 'Taip'
87
87
  date:
88
+ buttons:
89
+ select: Pasirinkti
88
90
  formats:
89
91
  decidim_short: "%Y/%m/%d"
90
92
  decidim_short_dashed: "%d-%m-%Y"
@@ -588,7 +590,7 @@ lt:
588
590
  filter_area_values:
589
591
  all: Visos
590
592
  filter_category_values:
591
- all: Visos
593
+ all: Visi
592
594
  filter_scope_values:
593
595
  all: Visos
594
596
  devise:
@@ -1950,6 +1952,8 @@ lt:
1950
1952
  whatsapp_web: WhatsApp
1951
1953
  xing: Xing
1952
1954
  time:
1955
+ buttons:
1956
+ select: Pasirinkti
1953
1957
  formats:
1954
1958
  day_of_month: "%b%d"
1955
1959
  day_of_week: "%a"
@@ -63,6 +63,8 @@ lv:
63
63
  'false': 'Nē'
64
64
  'true': 'Jā'
65
65
  date:
66
+ buttons:
67
+ select: Izvēlēties
66
68
  formats:
67
69
  decidim_short: "%d/%m/%G"
68
70
  decidim_short_with_month_name_short: "%d %b %G"
@@ -321,6 +323,10 @@ lv:
321
323
  name: Organizācijas statistika
322
324
  sub_hero:
323
325
  name: Kājenes apakšējais galvenais reklāmkarogs
326
+ core:
327
+ application_helper:
328
+ filter_category_values:
329
+ all: Visi
324
330
  devise:
325
331
  omniauth_registrations:
326
332
  new:
@@ -1092,6 +1098,8 @@ lv:
1092
1098
  wechat_footer: Atveriet WeChat, noklikšķiniet uz pogas Discover, pēc tam noklikšķiniet uz izvēlnes Scan QR Code.
1093
1099
  weibo: Sina Veibo
1094
1100
  time:
1101
+ buttons:
1102
+ select: Izvēlēties
1095
1103
  formats:
1096
1104
  day_of_year: "%d.%m.%g"
1097
1105
  decidim_day_of_year: "%d %B %G"
@@ -66,6 +66,8 @@ nl:
66
66
  'false': 'Nee'
67
67
  'true': 'Ja'
68
68
  date:
69
+ buttons:
70
+ select: Selecteer
69
71
  formats:
70
72
  decidim_short: "%d/%m/%Y"
71
73
  decidim_short_with_month_name_short: "%d %b %Y"
@@ -372,6 +374,10 @@ nl:
372
374
  name: Organisatie statistieken
373
375
  sub_hero:
374
376
  name: Sub hero banner
377
+ core:
378
+ application_helper:
379
+ filter_category_values:
380
+ all: Alle
375
381
  devise:
376
382
  omniauth_registrations:
377
383
  new:
@@ -942,7 +948,7 @@ nl:
942
948
  scopes:
943
949
  global: Globale scope
944
950
  picker:
945
- cancel: Annuleer
951
+ cancel: annuleren
946
952
  change: Wijzig geselecteerde scope
947
953
  choose: Selecteer
948
954
  currently_selected: Momenteel geselecteerde scope
@@ -998,6 +1004,7 @@ nl:
998
1004
  participatory_space_filters:
999
1005
  filters:
1000
1006
  areas: Onderwerpen
1007
+ scope: Bereik
1001
1008
  select_an_area: Selecteer een onderwerp
1002
1009
  public_participation:
1003
1010
  public_participation: Maak mijn aanwezigheid openbaar
@@ -1298,6 +1305,8 @@ nl:
1298
1305
  whatsapp_web: WhatsApp
1299
1306
  xing: Xing
1300
1307
  time:
1308
+ buttons:
1309
+ select: Selecteer
1301
1310
  formats:
1302
1311
  day_of_month: "%b %d"
1303
1312
  day_of_week: "%a"
@@ -66,6 +66,8 @@
66
66
  'false': 'Nei'
67
67
  'true': 'Ja'
68
68
  date:
69
+ buttons:
70
+ select: Velg
69
71
  formats:
70
72
  decidim_short: "%d.%m-%Y"
71
73
  decidim_short_with_month_name_short: "%d %b %Y"
@@ -378,6 +380,10 @@
378
380
  name: Organisasjonsstatistikk
379
381
  sub_hero:
380
382
  name: Underhelt banner
383
+ core:
384
+ application_helper:
385
+ filter_category_values:
386
+ all: Alle
381
387
  devise:
382
388
  omniauth_registrations:
383
389
  new:
@@ -1018,6 +1024,7 @@
1018
1024
  participatory_space_filters:
1019
1025
  filters:
1020
1026
  areas: Områder
1027
+ scope: Tema
1021
1028
  select_an_area: Velg et område
1022
1029
  public_participation:
1023
1030
  public_participation: Vis min deltagelse offentlig
@@ -1323,6 +1330,8 @@
1323
1330
  whatsapp_web: WhatsApp
1324
1331
  xing: Xing
1325
1332
  time:
1333
+ buttons:
1334
+ select: Velg
1326
1335
  formats:
1327
1336
  day_of_month: "%b %d"
1328
1337
  day_of_week: "%a"
@@ -1499,7 +1499,7 @@ pl:
1499
1499
  filters:
1500
1500
  area: Obszar
1501
1501
  areas: Kategorie
1502
- scope: Zakres
1502
+ scope: Niniejsze rozporządzenie stosuje się od dnia 1 stycznia 2018 r.
1503
1503
  select_an_area: Wybierz kategorię
1504
1504
  progress: Postęp
1505
1505
  public_participation:
@@ -1426,7 +1426,7 @@ pt-BR:
1426
1426
  filters:
1427
1427
  area: Área
1428
1428
  areas: Áreas
1429
- scope:
1429
+ scope: Escopo
1430
1430
  select_an_area: Selecione uma área
1431
1431
  progress: Progresso
1432
1432
  public_participation:
@@ -1895,6 +1895,7 @@ pt-BR:
1895
1895
  buttons:
1896
1896
  close: Fechar
1897
1897
  reset: Resetar
1898
+ select: Selecionar
1898
1899
  formats:
1899
1900
  day_of_month: "%b %d"
1900
1901
  day_of_week: "%a"
@@ -66,6 +66,8 @@ pt:
66
66
  'false': 'Não'
67
67
  'true': 'Sim'
68
68
  date:
69
+ buttons:
70
+ select: Selecionar
69
71
  formats:
70
72
  decidim_short: "%d/%m/%Y"
71
73
  decidim_short_with_month_name_short: "%d %b %Y"
@@ -371,6 +373,10 @@ pt:
371
373
  name: Estatísticas da organização
372
374
  sub_hero:
373
375
  name: Faixa de sub hero
376
+ core:
377
+ application_helper:
378
+ filter_category_values:
379
+ all: Todos
374
380
  devise:
375
381
  omniauth_registrations:
376
382
  new:
@@ -998,6 +1004,7 @@ pt:
998
1004
  participatory_space_filters:
999
1005
  filters:
1000
1006
  areas: Áreas
1007
+ scope: Âmbito
1001
1008
  select_an_area: Selecione uma área
1002
1009
  public_participation:
1003
1010
  public_participation: Mostrar publicamente a minha participação
@@ -1218,10 +1225,15 @@ pt:
1218
1225
  details:
1219
1226
  columns:
1220
1227
  type: Tipo
1228
+ modal:
1229
+ title: Definições de “cookies”
1230
+ warning:
1231
+ change_settings: Alterar configurações de “cookies”
1221
1232
  edit_link:
1222
1233
  edit: Editar
1223
1234
  footer:
1224
1235
  cc_by_license: Licença Creative Commons
1236
+ data_consent_settings: Definições de “cookies”
1225
1237
  decidim_logo: Logótipo do Decidim
1226
1238
  download_open_data: Transferir ficheiros Open Data
1227
1239
  log_in: Entrar
@@ -1302,6 +1314,8 @@ pt:
1302
1314
  whatsapp_web: WhatsApp
1303
1315
  xing: Xing
1304
1316
  time:
1317
+ buttons:
1318
+ select: Selecionar
1305
1319
  formats:
1306
1320
  day_of_month: "%b %d"
1307
1321
  day_of_week: "%a"