decidim-admin 0.32.0.rc2 → 0.32.0

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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/admin/create_newsletter.rb +1 -1
  3. data/app/commands/decidim/admin/create_taxonomy_filter.rb +16 -2
  4. data/app/commands/decidim/admin/participatory_space/create_member.rb +16 -6
  5. data/app/commands/decidim/admin/update_taxonomy_filter.rb +24 -6
  6. data/app/controllers/decidim/admin/block_user_controller.rb +2 -0
  7. data/app/controllers/decidim/admin/newsletters_controller.rb +1 -0
  8. data/app/controllers/decidim/admin/officializations_controller.rb +2 -0
  9. data/app/events/decidim/participatory_space/member_added_event.rb +37 -0
  10. data/app/forms/decidim/admin/taxonomy_filter_form.rb +11 -9
  11. data/app/packs/stylesheets/decidim/admin/application.scss +1 -1
  12. data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
  13. data/app/views/decidim/admin/components/_actions.html.erb +1 -1
  14. data/app/views/decidim/admin/moderations/_moderation-tr.html.erb +1 -1
  15. data/app/views/decidim/admin/officializations/show_email.html.erb +7 -1
  16. data/app/views/decidim/admin/shared/_attachments.html.erb +15 -0
  17. data/app/views/decidim/admin/taxonomy_filters/_table.html.erb +2 -2
  18. data/app/views/layouts/decidim/admin/_application.html.erb +1 -1
  19. data/config/locales/ar.yml +0 -5
  20. data/config/locales/bg.yml +0 -5
  21. data/config/locales/bs-BA.yml +0 -4
  22. data/config/locales/ca-IT.yml +14 -5
  23. data/config/locales/ca.yml +14 -5
  24. data/config/locales/cs.yml +11 -5
  25. data/config/locales/de.yml +4 -5
  26. data/config/locales/el.yml +0 -6
  27. data/config/locales/en.yml +14 -5
  28. data/config/locales/es-MX.yml +14 -5
  29. data/config/locales/es-PY.yml +14 -5
  30. data/config/locales/es.yml +14 -5
  31. data/config/locales/eu.yml +17 -8
  32. data/config/locales/fi-plain.yml +13 -4
  33. data/config/locales/fi.yml +13 -4
  34. data/config/locales/fr-CA.yml +78 -5
  35. data/config/locales/fr.yml +78 -5
  36. data/config/locales/gl.yml +0 -6
  37. data/config/locales/he-IL.yml +0 -1
  38. data/config/locales/hu.yml +0 -6
  39. data/config/locales/it.yml +1 -4
  40. data/config/locales/ja.yml +8 -7
  41. data/config/locales/kaa.yml +0 -4
  42. data/config/locales/ko.yml +0 -6
  43. data/config/locales/lb.yml +0 -5
  44. data/config/locales/lt.yml +0 -6
  45. data/config/locales/lv.yml +0 -4
  46. data/config/locales/nl.yml +0 -6
  47. data/config/locales/no.yml +0 -6
  48. data/config/locales/pl.yml +0 -5
  49. data/config/locales/pt-BR.yml +9 -14
  50. data/config/locales/pt.yml +0 -5
  51. data/config/locales/ro-RO.yml +0 -6
  52. data/config/locales/sk.yml +3 -6
  53. data/config/locales/sl.yml +0 -1
  54. data/config/locales/sq-AL.yml +0 -1
  55. data/config/locales/sr-CS.yml +0 -4
  56. data/config/locales/sv.yml +2 -5
  57. data/config/locales/tr-TR.yml +7 -12
  58. data/config/locales/zh-CN.yml +0 -5
  59. data/config/locales/zh-TW.yml +0 -6
  60. data/decidim-admin.gemspec +1 -1
  61. data/lib/decidim/admin/version.rb +1 -1
  62. metadata +9 -8
  63. data/app/views/decidim/admin/shared/_gallery.html.erb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a75d0c623d020ac21476b528a57744a6106f21478e499403853a12b59c8cbb9f
4
- data.tar.gz: adef3ee649c65291bddc953e0b70bcc9f324de5ad9f7ff072f90b29310fee801
3
+ metadata.gz: 0edf4a1f5bea11f3269f83afda9636efc949d0bf92ea1dd301ada1443f78ae28
4
+ data.tar.gz: acbcaad5419abf1e0a2e0d74a96242beae1d03e6d088ea4d6a70f7a33bd161cd
5
5
  SHA512:
6
- metadata.gz: cce84813fd08f88437e713512d5645cabbf152449a57c6a022a7a3fbeed4255921300868fc70011507668ced560291c6d48af651040527592e44c872201401a4
7
- data.tar.gz: 2e98a204d53481e6d1e2c20583456432cb2336f741e5faa5ade313344d238f8ad024873956205e2c3561872bd065c77fc758bf0dd7e148ade586481e1355ce80
6
+ metadata.gz: ab698739e7fa9e181afe331baeea9de94ebd2c199ef0b1b98d2e57bcdcfa495809e7fd844137ef78be8ed8e2b7a9b7a7d4d417002c97bcd30a3ee40dced84d61
7
+ data.tar.gz: 832fd99eba8a6819214f0c88fd73d49ac2f98d3015abfa9c6665c3464cfc1f368d4bf0c2c0ce2211aeec4d11aa775451450b8a0573975a9eeb2fc7ee992874a3
@@ -31,7 +31,7 @@ module Decidim
31
31
  @content_block = content_block
32
32
  end
33
33
  on(:invalid) do
34
- raise "There was a problem persisting the changes to the content block"
34
+ raise Decidim::Commands::HookError, "There was a problem persisting the changes to the content block"
35
35
  end
36
36
  end
37
37
  end
@@ -5,20 +5,34 @@ module Decidim
5
5
  # A command with all the business logic to create a new taxonomy filter in the
6
6
  # system.
7
7
  class CreateTaxonomyFilter < Decidim::Commands::CreateResource
8
- fetch_form_attributes :root_taxonomy_id, :filter_items, :internal_name, :name, :participatory_space_manifests
8
+ fetch_form_attributes :root_taxonomy_id, :internal_name, :name, :participatory_space_manifests
9
9
 
10
10
  protected
11
11
 
12
12
  def resource_class = Decidim::TaxonomyFilter
13
13
 
14
+ def run_after_hooks
15
+ create_filter_items!
16
+ end
17
+
14
18
  def extra_params
15
19
  {
16
20
  extra: {
17
21
  taxonomy_name: form.root_taxonomy.name,
18
- filter_items_count: form.filter_items.count
22
+ filter_items_count: selected_taxonomy_item_ids.size
19
23
  }
20
24
  }
21
25
  end
26
+
27
+ private
28
+
29
+ def create_filter_items!
30
+ selected_taxonomy_item_ids.each { |taxonomy_item_id| resource.filter_items.create!(taxonomy_item_id:) }
31
+ end
32
+
33
+ def selected_taxonomy_item_ids
34
+ form.taxonomy_items.map(&:to_i).uniq
35
+ end
22
36
  end
23
37
  end
24
38
  end
@@ -29,6 +29,7 @@ module Decidim
29
29
 
30
30
  ActiveRecord::Base.transaction do
31
31
  @user ||= existing_user || new_user
32
+ send_notification_for_existing_user if @existing_user
32
33
  create_member
33
34
  end
34
35
 
@@ -61,16 +62,25 @@ module Decidim
61
62
  end
62
63
 
63
64
  def existing_user
64
- return @existing_user if defined?(@existing_user)
65
-
66
- @existing_user = User.find_by(
65
+ @existing_user ||= User.find_by(
67
66
  email: form.email.downcase,
68
67
  organization: member_to.organization
69
68
  )
69
+ end
70
70
 
71
- InviteUserAgain.call(@existing_user, invitation_instructions) if @existing_user&.invitation_pending?
72
-
73
- @existing_user
71
+ def send_notification_for_existing_user
72
+ if @existing_user.invitation_pending?
73
+ InviteUserAgain.call(@existing_user, invitation_instructions)
74
+ else
75
+ Decidim::EventsManager.publish(
76
+ event: "decidim.events.participatory_space.member_added",
77
+ event_class: "#{member_to.class.name}MemberAddedEvent".constantize,
78
+ resource: member_to,
79
+ affected_users: [@existing_user],
80
+ force_send: true,
81
+ extra: { force_email: true }
82
+ )
83
+ end
74
84
  end
75
85
 
76
86
  def new_user
@@ -2,27 +2,45 @@
2
2
 
3
3
  module Decidim
4
4
  module Admin
5
- # A command with all the business logic to create a new taxonomy filter in the
6
- # system.
5
+ # A command with all the business logic to update an existing taxonomy filter
6
+ # in the system.
7
7
  class UpdateTaxonomyFilter < Decidim::Commands::UpdateResource
8
- fetch_form_attributes :filter_items, :internal_name, :name, :participatory_space_manifests
8
+ fetch_form_attributes :internal_name, :name, :participatory_space_manifests
9
9
 
10
10
  protected
11
11
 
12
12
  def resource_class = Decidim::TaxonomyFilter
13
13
 
14
- def run_before_hooks
15
- resource.filter_items.destroy_all
14
+ def run_after_hooks
15
+ sync_filter_items!
16
16
  end
17
17
 
18
18
  def extra_params
19
19
  {
20
20
  extra: {
21
21
  taxonomy_name: resource.root_taxonomy.name,
22
- filter_items_count: form.filter_items.count
22
+ filter_items_count: selected_taxonomy_item_ids.size
23
23
  }
24
24
  }
25
25
  end
26
+
27
+ private
28
+
29
+ def sync_filter_items!
30
+ removed_ids = current_taxonomy_item_ids - selected_taxonomy_item_ids
31
+ added_ids = selected_taxonomy_item_ids - current_taxonomy_item_ids
32
+
33
+ resource.filter_items.where(taxonomy_item_id: removed_ids).destroy_all if removed_ids.any?
34
+ added_ids.each { |taxonomy_item_id| resource.filter_items.create!(taxonomy_item_id:) }
35
+ end
36
+
37
+ def current_taxonomy_item_ids
38
+ resource.filter_items.pluck(:taxonomy_item_id)
39
+ end
40
+
41
+ def selected_taxonomy_item_ids
42
+ form.taxonomy_items.map(&:to_i).uniq
43
+ end
26
44
  end
27
45
  end
28
46
  end
@@ -10,6 +10,8 @@ module Decidim
10
10
  def new
11
11
  enforce_permission_to :block, :admin_user
12
12
 
13
+ return redirect_to(officializations_path, alert: I18n.t("officializations.block.no_user", scope: "decidim.admin")) unless user
14
+
13
15
  @form = form(BlockUserForm).from_model(user)
14
16
  @form.hide = params[:hide] || false
15
17
  end
@@ -56,6 +56,7 @@ module Decidim
56
56
 
57
57
  on(:invalid) do |newsletter|
58
58
  @newsletter = newsletter
59
+ @form.images = content_block.images_container
59
60
  flash.now[:error] = I18n.t("newsletters.create.error", scope: "decidim.admin")
60
61
  render action: :new, status: :unprocessable_content
61
62
  end
@@ -22,6 +22,8 @@ module Decidim
22
22
  def new
23
23
  enforce_permission_to :create, :officialization
24
24
 
25
+ return redirect_to(officializations_path, alert: I18n.t("officializations.create.no_user_found", scope: "decidim.admin")) unless user
26
+
25
27
  @form = form(OfficializationForm).from_model(user)
26
28
  end
27
29
 
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module ParticipatorySpace
5
+ # i18n-tasks-use t('decidim.events.participatory_space.member_added.published.email_intro')
6
+ # i18n-tasks-use t('decidim.events.participatory_space.member_added.published.email_outro')
7
+ # i18n-tasks-use t('decidim.events.participatory_space.member_added.published.email_subject')
8
+ # i18n-tasks-use t('decidim.events.participatory_space.member_added.published.notification_title')
9
+ # i18n-tasks-use t('decidim.events.participatory_space.member_added.unpublished.email_intro')
10
+ # i18n-tasks-use t('decidim.events.participatory_space.member_added.unpublished.email_outro')
11
+ # i18n-tasks-use t('decidim.events.participatory_space.member_added.unpublished.email_subject')
12
+ # i18n-tasks-use t('decidim.events.participatory_space.member_added.unpublished.notification_title')
13
+ class MemberAddedEvent < Decidim::Events::SimpleEvent
14
+ include Rails.application.routes.mounted_helpers
15
+
16
+ def i18n_scope
17
+ return "#{super}.published" if membership&.published?
18
+
19
+ "#{super}.unpublished"
20
+ end
21
+
22
+ def default_i18n_options
23
+ super.merge(members_page:)
24
+ end
25
+
26
+ private
27
+
28
+ def membership
29
+ @membership ||= Decidim::ParticipatorySpace::Member.where(participatory_space:, user:).first
30
+ end
31
+
32
+ def members_page
33
+ raise "#{__method__} needs to be implemented in the event class"
34
+ end
35
+ end
36
+ end
37
+ end
@@ -44,7 +44,7 @@ module Decidim
44
44
  def items_collection
45
45
  return [] unless root_taxonomy
46
46
 
47
- @items_collection ||= map_items_collection(root_taxonomy)
47
+ @items_collection ||= build_items_collection
48
48
  end
49
49
 
50
50
  def root_taxonomy
@@ -62,22 +62,24 @@ module Decidim
62
62
 
63
63
  private
64
64
 
65
- def map_items_collection(taxonomy)
66
- taxonomy.children.map do |item|
65
+ def build_items_collection
66
+ children_by_parent_id = root_taxonomy.all_children.group_by(&:parent_id)
67
+ build_subtree(root_taxonomy.id, children_by_parent_id)
68
+ end
69
+
70
+ def build_subtree(parent_id, children_by_parent_id)
71
+ Array(children_by_parent_id[parent_id]).map do |item|
67
72
  Item.new(
68
73
  name: translated_attribute(item.name),
69
74
  value: item.id,
70
- children: map_items_collection(item)
75
+ children: build_subtree(item.id, children_by_parent_id)
71
76
  )
72
77
  end
73
78
  end
74
79
 
75
80
  def valid_taxonomy_items
76
- return if taxonomy_items.all? do |item|
77
- next unless root_taxonomy
78
-
79
- root_taxonomy.all_children.map(&:id).include?(item.to_i)
80
- end
81
+ valid_ids = root_taxonomy ? root_taxonomy.all_children.pluck(:id).to_set : Set.new
82
+ return if taxonomy_items.all? { |item| valid_ids.include?(item.to_i) }
81
83
 
82
84
  errors.add(:taxonomy_items, :invalid)
83
85
  end
@@ -24,7 +24,7 @@
24
24
  @use "stylesheets/decidim/admin/datepicker";
25
25
  @use "stylesheets/decidim/admin/minimap";
26
26
  @use "stylesheets/decidim/admin/proposal_status";
27
- @use "stylesheets/decidim/tribute";
27
+ @use "stylesheets/decidim/editor_suggestions";
28
28
 
29
29
  :root {
30
30
  --primary: #e02d2d;
@@ -51,7 +51,7 @@
51
51
  <% end %>
52
52
  <% else %>
53
53
  <div class="dropdown__button-disabled">
54
- <%= with_tooltip t("tooltips.deleted_attachment_collections_info", scope: "decidim.admin") do %>
54
+ <%= with_tooltip t("tooltips.deleted_attachment_collections_info", scope: "decidim.admin"), class: :left do %>
55
55
  <%= icon "delete-bin-line", class: "text-gray" %>
56
56
  <span>
57
57
  <%= t("actions.destroy", scope: "decidim.admin") %>
@@ -98,7 +98,7 @@
98
98
  <hr>
99
99
  <li class="dropdown__item">
100
100
  <div class="dropdown__button-disabled">
101
- <%= with_tooltip t("tooltips.deleted_component_info", scope: "decidim.admin") do %>
101
+ <%= with_tooltip t("tooltips.deleted_component_info", scope: "decidim.admin"), class: :left do %>
102
102
  <%= icon "delete-bin-line", class: "text-gray" %>
103
103
  <span>
104
104
  <%= t("actions.soft_delete", scope: "decidim.admin") %>
@@ -85,7 +85,7 @@
85
85
  <li class="dropdown__item">
86
86
  <% if moderation.reportable.respond_to?(:commentable) && moderation.reportable.commentable.try(:hidden?) %>
87
87
  <div class="dropdown__button-disabled">
88
- <%= with_tooltip(t("actions.parent_hidden", scope: "decidim.moderations"), title: t("actions.parent_hidden", scope: "decidim.moderations")) do %>
88
+ <%= with_tooltip(t("actions.parent_hidden", scope: "decidim.moderations"), title: t("actions.parent_hidden", scope: "decidim.moderations"), class: :left) do %>
89
89
  <%= icon "eye-line", class: "text-gray" %>
90
90
  <span><%= t("actions.unhide", scope: "decidim.moderations") %></span>
91
91
  <% end %>
@@ -1,3 +1,9 @@
1
1
  <% add_decidim_page_title(t(".title")) %>
2
2
 
3
- <%= link_to user.email, "mailto:#{user.email}" %>
3
+ <% if user.present? %>
4
+ <%= link_to user.email, "mailto:#{user.email}" %>
5
+ <% else %>
6
+ <div class="flash alert my-0">
7
+ <%= t(".no_user") %>
8
+ </div>
9
+ <% end %>
@@ -0,0 +1,15 @@
1
+ <div class="row column mt-4">
2
+ <fieldset>
3
+ <legend><%= t(".attachment_legend") %></legend>
4
+
5
+ <div>
6
+ <%= form.attachment :attachments,
7
+ multiple: true,
8
+ label: t(".add_attachments"),
9
+ button_label: t(".add_attachments"),
10
+ button_edit_label: t(".edit_attachments"),
11
+ button_class: "button button__sm button__transparent-secondary",
12
+ help_i18n_scope: "decidim.forms.file_help.attachment" %>
13
+ </div>
14
+ </fieldset>
15
+ </div>
@@ -36,7 +36,7 @@
36
36
  </li>
37
37
  <% else %>
38
38
  <div class="dropdown__button-disabled">
39
- <%= with_tooltip t("tooltips.cannot_edit_taxonomy_filter", scope: "decidim.admin") do %>
39
+ <%= with_tooltip t("tooltips.cannot_edit_taxonomy_filter", scope: "decidim.admin"), class: :left do %>
40
40
  <%= icon "pencil-line", class: "text-gray" %>
41
41
  <%= t(".edit") %>
42
42
  <% end %>
@@ -54,7 +54,7 @@
54
54
  </li>
55
55
  <% else %>
56
56
  <div class="dropdown__button-disabled">
57
- <%= with_tooltip t("tooltips.cannot_destroy_taxonomy_filter", scope: "decidim.admin") do %>
57
+ <%= with_tooltip t("tooltips.cannot_destroy_taxonomy_filter", scope: "decidim.admin"), class: :left do %>
58
58
  <%= icon "delete-bin-line", class: "text-gray" %>
59
59
  <%= t(".destroy") %>
60
60
  <% end %>
@@ -11,7 +11,7 @@
11
11
  </head>
12
12
  <body>
13
13
 
14
- <main class="main">
14
+ <main class="main" role="main">
15
15
  <div class="layout-wrapper">
16
16
  <div class="block md:hidden col-start-1 col-end-2">
17
17
  <%= render partial: "layouts/decidim/admin/title_bar_responsive" %>
@@ -44,7 +44,6 @@ ar:
44
44
  alert_color: تنبيه
45
45
  available_authorizations: التراخيص المتاحة
46
46
  badges_enabled: تمكين الشارات
47
- comments_max_length: الحد الأقصى لطول التعليقات (اترك 0 لاستعمال القيمة الافتراضية)
48
47
  customize_welcome_notification: تخصيص إشعار الترحيب
49
48
  default_locale: اللغة الافتراضية
50
49
  description: الوصف
@@ -678,10 +677,6 @@ ar:
678
677
  'true': 'نعم'
679
678
  new:
680
679
  create: إنشاء
681
- shared:
682
- gallery:
683
- add_images: إضافة صور
684
- edit_images: تعديل الصورة
685
680
  static_page_topics:
686
681
  create:
687
682
  error: كانت هناك مشكلة في إنشاء موضوع جديد.
@@ -44,7 +44,6 @@ bg:
44
44
  alert_color: Аларма
45
45
  available_authorizations: Активни оторизации
46
46
  badges_enabled: Включи значките
47
- comments_max_length: Максимална дължина на коментарите (Оставете 0 за стойност по подразбиране)
48
47
  customize_welcome_notification: Персонализирайте приветствието
49
48
  default_locale: Език по подразбиране
50
49
  description: Описание
@@ -808,10 +807,6 @@ bg:
808
807
  next_title: Следващ елемент
809
808
  previous: Предишен
810
809
  previous_title: Предишен елемент
811
- gallery:
812
- add_images: Добави изображения
813
- edit_images: Редактиране на изображения
814
- gallery_legend: Добавяне на галерия с изображения (незадължително)
815
810
  static_page_topics:
816
811
  create:
817
812
  error: Възникна проблем при създаването на нова тема.
@@ -434,10 +434,6 @@ bs:
434
434
  update:
435
435
  error: Pojavio se problem pri ažuriranju ove organizacije.
436
436
  success: Organizacija je uspešno ažurirana.
437
- shared:
438
- gallery:
439
- add_images: Dodaj slike
440
- gallery_legend: Dodaj galeriju slika (opciono)
441
437
  users_statistics:
442
438
  users_count:
443
439
  last_day: Poslednji dan
@@ -12,6 +12,7 @@ ca-IT:
12
12
  plural: Plural
13
13
  attachment:
14
14
  attachment_collection_id: Carpeta
15
+ attachments: Fitxers adjunts
15
16
  description: Descripció
16
17
  file: Arxiu
17
18
  title: Nom de l'adjunt o imatge
@@ -50,7 +51,7 @@ ca-IT:
50
51
  alert_color: Alerta
51
52
  available_authorizations: Autoritzacions disponibles
52
53
  badges_enabled: Habilitar les ensenyes
53
- comments_max_length: Longitud màxima dels comentaris (deixa 0 si vols mantenir la configuració per defecte)
54
+ comments_max_length: Caràcters màxims per comentari (deixar a 0 el valor predeterminat)
54
55
  customize_welcome_notification: Personalitza la notificació de benvinguda
55
56
  default_locale: Idioma per defecte
56
57
  description: Descripció
@@ -900,6 +901,7 @@ ca-IT:
900
901
  officializations:
901
902
  block:
902
903
  error: Hi ha hagut un problema en bloquejar a la participant.
904
+ no_user: No s'ha trobat cap usuària
903
905
  success: Participant bloquejada correctament.
904
906
  bulk_action:
905
907
  block:
@@ -909,6 +911,7 @@ ca-IT:
909
911
  invalid: Hi ha hagut un problema en desbloquejar a les participants.
910
912
  success: Participants desbloquejades correctament.
911
913
  create:
914
+ no_user_found: No s'ha trobat aquesta participant.
912
915
  success: Participant oficialitzada correctament.
913
916
  destroy:
914
917
  success: S'ha retirat correctament l'oficialització de la participant.
@@ -935,6 +938,7 @@ ca-IT:
935
938
  officialize: Oficialitza
936
939
  title: Oficialitza la participant "%{name}"
937
940
  show_email:
941
+ no_user: No s'ha trobat cap usuària
938
942
  title: Mostra el correu electrònic
939
943
  show_email_modal:
940
944
  description: Si necessites contactar a una participant directament pots clicar al botó Mostra per veure la seva adreça de correu electrònic. Aquesta acció es registrarà.
@@ -1094,10 +1098,10 @@ ca-IT:
1094
1098
  next_title: Següent element
1095
1099
  previous: Anterior
1096
1100
  previous_title: Element anterior
1097
- gallery:
1098
- add_images: Afegir imatges
1099
- edit_images: Editar imatges
1100
- gallery_legend: Afegir una galeria d'imatges (opcional)
1101
+ attachments:
1102
+ add_attachments: Afegir fitxer(s) adjunt(s)
1103
+ attachment_legend: Afegir una galeria de fitxers adjunts (opcional)
1104
+ edit_attachments: Edita els fitxers adjunts
1101
1105
  static_page_topics:
1102
1106
  create:
1103
1107
  error: S'ha produït un error en crear un tema nou.
@@ -1313,6 +1317,11 @@ ca-IT:
1313
1317
  errors:
1314
1318
  impersonate_user:
1315
1319
  reason: Has d'indicar un motiu per a la gestió d'una participant no gestionada.
1320
+ file_help:
1321
+ attachment:
1322
+ explanation: 'Instruccions per al fitxer:'
1323
+ message_1: S'admeten fitxers CSV, JSON y Excel (.xlsx)
1324
+ message_2: Pels arxius CSV, el separador entre columnes ha de ser un punt i coma (";")
1316
1325
  moderations:
1317
1326
  actions:
1318
1327
  expand: Expandir
@@ -12,6 +12,7 @@ ca:
12
12
  plural: Plural
13
13
  attachment:
14
14
  attachment_collection_id: Carpeta
15
+ attachments: Fitxers adjunts
15
16
  description: Descripció
16
17
  file: Arxiu
17
18
  title: Nom de l'adjunt o imatge
@@ -50,7 +51,7 @@ ca:
50
51
  alert_color: Alerta
51
52
  available_authorizations: Autoritzacions disponibles
52
53
  badges_enabled: Habilitar les ensenyes
53
- comments_max_length: Longitud màxima dels comentaris (deixa 0 si vols mantenir la configuració per defecte)
54
+ comments_max_length: Caràcters màxims per comentari (deixar a 0 el valor predeterminat)
54
55
  customize_welcome_notification: Personalitza la notificació de benvinguda
55
56
  default_locale: Idioma per defecte
56
57
  description: Descripció
@@ -900,6 +901,7 @@ ca:
900
901
  officializations:
901
902
  block:
902
903
  error: Hi ha hagut un problema en bloquejar a la participant.
904
+ no_user: No s'ha trobat cap usuària
903
905
  success: Participant bloquejada correctament.
904
906
  bulk_action:
905
907
  block:
@@ -909,6 +911,7 @@ ca:
909
911
  invalid: Hi ha hagut un problema en desbloquejar a les participants.
910
912
  success: Participants desbloquejades correctament.
911
913
  create:
914
+ no_user_found: No s'ha trobat aquesta participant.
912
915
  success: Participant oficialitzada correctament.
913
916
  destroy:
914
917
  success: S'ha retirat correctament l'oficialització de la participant.
@@ -935,6 +938,7 @@ ca:
935
938
  officialize: Oficialitza
936
939
  title: Oficialitza la participant "%{name}"
937
940
  show_email:
941
+ no_user: No s'ha trobat cap usuària
938
942
  title: Mostra el correu electrònic
939
943
  show_email_modal:
940
944
  description: Si necessites contactar a una participant directament pots clicar al botó Mostra per veure la seva adreça de correu electrònic. Aquesta acció es registrarà.
@@ -1094,10 +1098,10 @@ ca:
1094
1098
  next_title: Següent element
1095
1099
  previous: Anterior
1096
1100
  previous_title: Element anterior
1097
- gallery:
1098
- add_images: Afegir imatges
1099
- edit_images: Editar imatges
1100
- gallery_legend: Afegir una galeria d'imatges (opcional)
1101
+ attachments:
1102
+ add_attachments: Afegir fitxer(s) adjunt(s)
1103
+ attachment_legend: Afegir una galeria de fitxers adjunts (opcional)
1104
+ edit_attachments: Edita els fitxers adjunts
1101
1105
  static_page_topics:
1102
1106
  create:
1103
1107
  error: S'ha produït un error en crear un tema nou.
@@ -1313,6 +1317,11 @@ ca:
1313
1317
  errors:
1314
1318
  impersonate_user:
1315
1319
  reason: Has d'indicar un motiu per a la gestió d'una participant no gestionada.
1320
+ file_help:
1321
+ attachment:
1322
+ explanation: 'Instruccions per al fitxer:'
1323
+ message_1: S'admeten fitxers CSV, JSON y Excel (.xlsx)
1324
+ message_2: Pels arxius CSV, el separador entre columnes ha de ser un punt i coma (";")
1316
1325
  moderations:
1317
1326
  actions:
1318
1327
  expand: Expandir
@@ -12,6 +12,7 @@ cs:
12
12
  plural: Množné číslo
13
13
  attachment:
14
14
  attachment_collection_id: Složka
15
+ attachments: Přílohy
15
16
  description: Popis
16
17
  file: Soubor
17
18
  title: Název přílohy nebo obrázku
@@ -50,7 +51,7 @@ cs:
50
51
  alert_color: Upozornění
51
52
  available_authorizations: Dostupná oprávnění
52
53
  badges_enabled: Povolit odznaky
53
- comments_max_length: Maximální délka komentáře (ponechte 0 pro výchozí hodnotu)
54
+ comments_max_length: Maximální počet znaků na komentář (ponechte 0 pro výchozí hodnotu)
54
55
  customize_welcome_notification: Přizpůsobit uvítací oznámení
55
56
  default_locale: Výchozí jazyk
56
57
  description: Popis
@@ -906,6 +907,7 @@ cs:
906
907
  officializations:
907
908
  block:
908
909
  error: Při blokování účastníka došlo k chybě.
910
+ no_user: Nebyl nalezen žádný uživatel
909
911
  success: Účastník byl úspěšně zablokován.
910
912
  bulk_action:
911
913
  block:
@@ -941,6 +943,7 @@ cs:
941
943
  officialize: Ověřit
942
944
  title: Oficializovat účastníka "%{name}"
943
945
  show_email:
946
+ no_user: Nebyl nalezen žádný uživatel
944
947
  title: Zobrazit e-mail
945
948
  show_email_modal:
946
949
  description: Pokud potřebujete kontaktovat účastníka, můžete kliknout na tlačítko Zobrazit pro zobrazení e-mailové adresy. Tato akce bude zaznamenána.
@@ -1102,10 +1105,9 @@ cs:
1102
1105
  next_title: Další položka
1103
1106
  previous: Předchozí
1104
1107
  previous_title: Předchozí položka
1105
- gallery:
1106
- add_images: Přidat obrázky
1107
- edit_images: Upravit obrázky
1108
- gallery_legend: Přidat galerii obrázků (volitelné)
1108
+ attachments:
1109
+ add_attachments: Přidat přílohy
1110
+ edit_attachments: Upravit přílohy
1109
1111
  static_page_topics:
1110
1112
  create:
1111
1113
  error: Při vytváření nového tématu došlo k chybě.
@@ -1323,6 +1325,10 @@ cs:
1323
1325
  errors:
1324
1326
  impersonate_user:
1325
1327
  reason: Musíte uvést důvod pro správu neřízeného účastníka.
1328
+ file_help:
1329
+ attachment:
1330
+ explanation: 'Pokyny pro soubor:'
1331
+ message_1: CSV, JSON a Excel (.xlsx) jsou podporovány
1326
1332
  moderations:
1327
1333
  actions:
1328
1334
  expand: Rozbalit
@@ -50,7 +50,6 @@ de:
50
50
  alert_color: Benachrichtigung
51
51
  available_authorizations: Verfügbare Autorisierungen
52
52
  badges_enabled: Abzeichen aktivieren
53
- comments_max_length: Maximale Länge der Kommentare (0 für Standardwert)
54
53
  customize_welcome_notification: Willkommens-Benachrichtigung anpassen
55
54
  default_locale: Standardgebietsschema
56
55
  description: Beschreibung
@@ -266,6 +265,8 @@ de:
266
265
  edit:
267
266
  title: Ordner bearbeiten
268
267
  update: Aktualisieren
268
+ index:
269
+ title: Ordner für Anhänge
269
270
  new:
270
271
  create: Erstellen
271
272
  title: Neuer Ordner
@@ -281,6 +282,8 @@ de:
281
282
  edit:
282
283
  title: Anhang bearbeiten
283
284
  update: Aktualisieren
285
+ index:
286
+ title: Anhänge
284
287
  new:
285
288
  create: Anhang erstellen
286
289
  title: Neuer Anhang
@@ -1076,10 +1079,6 @@ de:
1076
1079
  next_title: Nächstes Element
1077
1080
  previous: Zurück
1078
1081
  previous_title: Vorheriges Element
1079
- gallery:
1080
- add_images: Bilder hinzufügen
1081
- edit_images: Bilder bearbeiten
1082
- gallery_legend: Bildergalerie hinzufügen (Optional)
1083
1082
  static_page_topics:
1084
1083
  create:
1085
1084
  error: Beim Erstellen eines neuen Themas ist ein Fehler aufgetreten.