decidim-blogs 0.22.0 → 0.23.3

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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/decidim/blogs/posts_controller.rb +2 -0
  3. data/app/models/decidim/blogs/post.rb +7 -0
  4. data/app/views/decidim/blogs/posts/_sidebar_blog.html.erb +1 -1
  5. data/app/views/decidim/blogs/posts/show.html.erb +8 -6
  6. data/config/locales/am-ET.yml +1 -0
  7. data/config/locales/bg.yml +13 -0
  8. data/config/locales/ca.yml +1 -0
  9. data/config/locales/cs.yml +1 -0
  10. data/config/locales/da.yml +1 -0
  11. data/config/locales/de.yml +4 -3
  12. data/config/locales/el.yml +1 -0
  13. data/config/locales/en.yml +1 -0
  14. data/config/locales/eo.yml +1 -0
  15. data/config/locales/es-MX.yml +1 -0
  16. data/config/locales/es-PY.yml +1 -0
  17. data/config/locales/es.yml +1 -0
  18. data/config/locales/et.yml +1 -0
  19. data/config/locales/fi-plain.yml +1 -0
  20. data/config/locales/fi.yml +1 -0
  21. data/config/locales/fr-CA.yml +1 -0
  22. data/config/locales/fr.yml +1 -0
  23. data/config/locales/gl.yml +16 -11
  24. data/config/locales/hr.yml +1 -0
  25. data/config/locales/is.yml +56 -0
  26. data/config/locales/it.yml +1 -0
  27. data/config/locales/ja-JP.yml +1 -0
  28. data/config/locales/ja.yml +83 -0
  29. data/config/locales/ko-KR.yml +1 -0
  30. data/config/locales/ko.yml +1 -0
  31. data/config/locales/lt.yml +1 -0
  32. data/config/locales/{lv-LV.yml → lv.yml} +0 -0
  33. data/config/locales/mt.yml +1 -0
  34. data/config/locales/nl.yml +2 -1
  35. data/config/locales/no.yml +1 -0
  36. data/config/locales/om-ET.yml +1 -0
  37. data/config/locales/pl.yml +4 -3
  38. data/config/locales/pt.yml +1 -0
  39. data/config/locales/ro-RO.yml +1 -0
  40. data/config/locales/si-LK.yml +1 -0
  41. data/config/locales/so-SO.yml +1 -0
  42. data/config/locales/sv.yml +1 -0
  43. data/config/locales/sw-KE.yml +1 -0
  44. data/config/locales/ti-ER.yml +1 -0
  45. data/config/locales/tr-TR.yml +5 -0
  46. data/config/locales/vi-VN.yml +1 -0
  47. data/config/locales/vi.yml +1 -0
  48. data/config/locales/zh-CN.yml +83 -0
  49. data/config/locales/zh-TW.yml +1 -0
  50. data/db/migrate/20200827153709_add_commentable_counter_cache_to_posts.rb +9 -0
  51. data/lib/decidim/blogs/component.rb +1 -0
  52. data/lib/decidim/blogs/version.rb +1 -1
  53. metadata +44 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cb8f64bfea127fa2fde23cbf25c4729458115557822aaede26bc61a823b1d65
4
- data.tar.gz: '0878193e5097a3bd752acf469c757d524b8cb36406188c95a9fcac65847d03d7'
3
+ metadata.gz: 829cd62a2189bf63ff5d5c1e3ddd1afce4c2e9e6fefbc25733a6056fb8bb690d
4
+ data.tar.gz: 4f7b27a43e3d771b2d0b5ffb098068d4e726d7809fe4894764700810c22643cf
5
5
  SHA512:
6
- metadata.gz: ba1c230788c9de43e8a24fd3c0c43c2eba1184ea759cdb6753174f96400e21056228203f97814b5dcf78649151d0477b478fc4eeae333ca961257273db78aba7
7
- data.tar.gz: 500d550159483b842488c88d1766496c653ce2e04caaab0263af3856ec70c68a71e5d9ce4c3c6bc7b5dd485ea1b09f8f27bda512907c2c7065cead0f8c7e6cfb
6
+ metadata.gz: 7442afc80066aa1bd6a0d5529552f46c6468abcbdbed6a791d016c633ef1114c093adae60d179930290b8df1e30e3c6f1d8f0d5b79f97066ea2a8348c78b5dfb
7
+ data.tar.gz: e87863789fea2fc959e59eb3e000e9b92c366cd404b077d84b9b35fdc5b4f7f37ad6c44fad9ae09ddc9313242c998a4919b520bad06ef4533a11fdc495f51b29
@@ -4,6 +4,8 @@ module Decidim
4
4
  module Blogs
5
5
  # Exposes the blog resource so users can view them
6
6
  class PostsController < Decidim::Blogs::ApplicationController
7
+ include Flaggable
8
+
7
9
  helper_method :posts, :post, :paginate_posts, :posts_most_commented
8
10
 
9
11
  def index; end
@@ -14,11 +14,14 @@ module Decidim
14
14
  include Decidim::Searchable
15
15
  include Decidim::Endorsable
16
16
  include Decidim::Followable
17
+ include Decidim::TranslatableResource
17
18
  include Traceable
18
19
  include Loggable
19
20
 
20
21
  component_manifest_name "blogs"
21
22
 
23
+ translatable_fields :title, :body
24
+
22
25
  validates :title, presence: true
23
26
 
24
27
  scope :created_at_desc, -> { order(arel_table[:created_at].desc) }
@@ -62,6 +65,10 @@ module Decidim
62
65
  def users_to_notify_on_comment_created
63
66
  followers
64
67
  end
68
+
69
+ def attachment_context
70
+ :admin
71
+ end
65
72
  end
66
73
  end
67
74
  end
@@ -10,7 +10,7 @@
10
10
  <%= render partial: "datetime", locals: { post: post } %>&nbsp;&nbsp;·&nbsp;&nbsp;
11
11
  <%= link_to "#{post_path(post)}#comments", title: t(".comments") do %>
12
12
  <%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %>
13
- <%= post.comments.count %>
13
+ <%= post.comments_count %>
14
14
  <%= t(".comments") %>
15
15
  <% end %>
16
16
  <a href="#comments" title="<%= t(".comments") %>"></a>
@@ -16,10 +16,12 @@
16
16
  %>
17
17
 
18
18
  <div class="row column view-header">
19
- <%= link_to :posts, class: "small hollow" do %>
20
- <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
21
- <%= t(".back") %>
22
- <% end %>
19
+ <div class="m-bottom">
20
+ <%= link_to :posts, class: "small hollow" do %>
21
+ <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
22
+ <%= t(".back") %>
23
+ <% end %>
24
+ </div>
23
25
  <h2 class="heading2"><%= translated_attribute post.title %></h2>
24
26
  <%= cell "decidim/author", present(post.author), from: post %>
25
27
  </div>
@@ -36,7 +38,7 @@
36
38
  <% end %>
37
39
  <div class="column collapse <%= endorsements_enabled? ? "small-3" : "" %>">
38
40
  <%= link_to "#comments", class: "button small compact hollow button--nomargin expanded" do %>
39
- <%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %> <%= post.comments.count %>
41
+ <%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %> <%= post.comments_count %>
40
42
  <% end %>
41
43
  </div>
42
44
  </div>
@@ -46,7 +48,7 @@
46
48
  </div>
47
49
  </div>
48
50
  <% end %>
49
- <div class="columns mediumlarge-8 mediumlarge-pull-4">
51
+ <div class="columns mediumlarge-8 <%= "mediumlarge-pull-4" if show_endorsements_card? %>">
50
52
  <div class="section">
51
53
  <%= decidim_sanitize translated_attribute post.body %>
52
54
  </div>
@@ -0,0 +1 @@
1
+ am:
@@ -0,0 +1,13 @@
1
+ bg:
2
+ activemodel:
3
+ models:
4
+ decidim/blogs/create_post_event: Нова блог публикация
5
+ activerecord:
6
+ models:
7
+ decidim/blogs/post:
8
+ one: Публикация
9
+ other: Публикации
10
+ decidim:
11
+ blogs:
12
+ actions:
13
+ confirm_destroy: Сигурни ли сте, че желаете да изтриете тази публикация?
@@ -62,6 +62,7 @@ ca:
62
62
  global:
63
63
  announcement: Avís
64
64
  comments_enabled: Comentaris habilitats
65
+ comments_max_length: Longitud màxima dels comentaris (deixa 0 si vols mantenir la configuració per defecte)
65
66
  step:
66
67
  announcement: Avís
67
68
  comments_blocked: Comentaris bloquejats
@@ -64,6 +64,7 @@ cs:
64
64
  global:
65
65
  announcement: Oznámení
66
66
  comments_enabled: Komentáře povoleny
67
+ comments_max_length: Maximální délka komentáře (ponechte 0 pro výchozí hodnotu)
67
68
  step:
68
69
  announcement: Oznámení
69
70
  comments_blocked: Komentáře byly blokovány
@@ -0,0 +1 @@
1
+ da:
@@ -50,7 +50,7 @@ de:
50
50
  show:
51
51
  back: Zurück zur Liste
52
52
  comments: Kommentare
53
- view: Aussicht
53
+ view: Anzeigen
54
54
  sidebar_blog:
55
55
  comments: Bemerkungen
56
56
  most_commented_posts: Meist kommentierte Posts
@@ -62,6 +62,7 @@ de:
62
62
  global:
63
63
  announcement: Ankündigung
64
64
  comments_enabled: Kommentare aktiviert
65
+ comments_max_length: Maximale Länge der Kommentare (0 für Standardwert)
65
66
  step:
66
67
  announcement: Ankündigung
67
68
  comments_blocked: Kommentare blockiert
@@ -71,9 +72,9 @@ de:
71
72
  blogs:
72
73
  post_created:
73
74
  email_intro: Der Beitrag "%{resource_title}" wurde in "%{participatory_space_title}" veröffentlicht, dem Sie folgen.
74
- email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie "%{participatory_space_title}" folgen. Sie können es aus dem vorherigen Link aufheben.
75
+ email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie "%{participatory_space_title}" folgen. Falls Sie keine solchen Benachrichtigungen mehr erhalten möchten, besuchen Sie den obigen Link.
75
76
  email_subject: Neuer Beitrag in %{participatory_space_title}
76
- notification_title: Der Beitrag <a href="%{resource_path}">%{resource_title}</a> wurde in %{participatory_space_title}
77
+ notification_title: Der Beitrag <a href="%{resource_path}">%{resource_title}</a> wurde in %{participatory_space_title} veröffentlicht
77
78
  pages:
78
79
  home:
79
80
  statistics:
@@ -62,6 +62,7 @@ el:
62
62
  global:
63
63
  announcement: Ανακοίνωση
64
64
  comments_enabled: Τα σχόλια ενεργοποιήθηκαν
65
+ comments_max_length: Μέγιστο μέγεθος σχολίων (Αφήστε το 0 για το προκαθορισμένο μέγεθος)
65
66
  step:
66
67
  announcement: Ανακοίνωση
67
68
  comments_blocked: Τα σχόλια αποκλείστηκαν
@@ -63,6 +63,7 @@ en:
63
63
  global:
64
64
  announcement: Announcement
65
65
  comments_enabled: Comments enabled
66
+ comments_max_length: Comments max length (Leave 0 for default value)
66
67
  step:
67
68
  announcement: Announcement
68
69
  comments_blocked: Comments blocked
@@ -0,0 +1 @@
1
+ eo:
@@ -62,6 +62,7 @@ es-MX:
62
62
  global:
63
63
  announcement: Anuncio
64
64
  comments_enabled: Comentarios habilitados
65
+ comments_max_length: Longitud máxima de los comentarios (deja 0 si quieres mantener la configuración por defecto)
65
66
  step:
66
67
  announcement: Anuncio
67
68
  comments_blocked: Comentarios bloqueados
@@ -62,6 +62,7 @@ es-PY:
62
62
  global:
63
63
  announcement: Anuncio
64
64
  comments_enabled: Comentarios habilitados
65
+ comments_max_length: Longitud máxima de los comentarios (deja 0 si quieres mantener la configuración por defecto)
65
66
  step:
66
67
  announcement: Anuncio
67
68
  comments_blocked: Comentarios bloqueados
@@ -62,6 +62,7 @@ es:
62
62
  global:
63
63
  announcement: Aviso
64
64
  comments_enabled: Comentarios habilitados
65
+ comments_max_length: Longitud máxima de los comentarios (deja 0 si quieres mantener la configuración por defecto)
65
66
  step:
66
67
  announcement: Aviso
67
68
  comments_blocked: Comentarios bloqueados
@@ -0,0 +1 @@
1
+ et:
@@ -62,6 +62,7 @@ fi-pl:
62
62
  global:
63
63
  announcement: Ilmoitus
64
64
  comments_enabled: Kommentointi käytössä
65
+ comments_max_length: Kommenttien maksimipituus (jätä arvoksi 0 käyttääksesi oletusarvoa)
65
66
  step:
66
67
  announcement: Ilmoitus
67
68
  comments_blocked: Kommentointi estetty
@@ -62,6 +62,7 @@ fi:
62
62
  global:
63
63
  announcement: Ilmoitus
64
64
  comments_enabled: Kommentointi käytössä
65
+ comments_max_length: Kommenttien maksimipituus (jätä arvoksi 0 käyttääksesi oletusarvoa)
65
66
  step:
66
67
  announcement: Ilmoitus
67
68
  comments_blocked: Kommentointi estetty
@@ -62,6 +62,7 @@ fr-CA:
62
62
  global:
63
63
  announcement: Annonce
64
64
  comments_enabled: Activer le module de commentaire
65
+ comments_max_length: Longueur max des commentaires (laisser 0 pour la valeur par défaut)
65
66
  step:
66
67
  announcement: Annonce
67
68
  comments_blocked: Commentaires désactivés
@@ -62,6 +62,7 @@ fr:
62
62
  global:
63
63
  announcement: Annonce
64
64
  comments_enabled: Activer le module de commentaire
65
+ comments_max_length: Longueur max des commentaires (laisser 0 pour la valeur par défaut)
65
66
  step:
66
67
  announcement: Annonce
67
68
  comments_blocked: Commentaires désactivés
@@ -5,12 +5,12 @@ gl:
5
5
  activerecord:
6
6
  models:
7
7
  decidim/blogs/post:
8
- one: Publicar
8
+ one: Publicación
9
9
  other: Publicacións
10
10
  decidim:
11
11
  blogs:
12
12
  actions:
13
- confirm_destroy: Estás seguro de que queres eliminar esta publicación?
13
+ confirm_destroy: Tes a certeza de querer eliminar esta publicación?
14
14
  destroy: Eliminar
15
15
  edit: Editar
16
16
  new: Nova publicación
@@ -20,15 +20,15 @@ gl:
20
20
  components:
21
21
  body: Corpo
22
22
  post:
23
- name: Publicar
23
+ name: Publicación
24
24
  posts:
25
25
  create:
26
26
  invalid: Produciuse un problema ao crear esta publicación
27
- success: Publicouse a publicación correctamente
27
+ success: Publicación creada con éxito
28
28
  destroy:
29
- success: Publicouse correctamente a eliminación
29
+ success: Publicación eliminada con éxito
30
30
  edit:
31
- save: Actualización
31
+ save: Actualizar
32
32
  index:
33
33
  title: Publicacións
34
34
  new:
@@ -36,7 +36,7 @@ gl:
36
36
  title: Crear unha publicación
37
37
  update:
38
38
  invalid: Produciuse un erro ao gardar a publicación.
39
- success: Publicouse o envío con éxito
39
+ success: Publicación gardada con éxito
40
40
  last_activity:
41
41
  new_post_at_html: "<span>Nova publicación en %{link}</span>"
42
42
  models:
@@ -44,15 +44,17 @@ gl:
44
44
  fields:
45
45
  author: Autor
46
46
  body: Corpo
47
- created_at: Creado en
47
+ created_at: Creado o
48
48
  title: título
49
49
  posts:
50
50
  show:
51
+ back: Volver á listaxe
52
+ comments: Comentarios
51
53
  view: Ver
52
54
  sidebar_blog:
53
55
  comments: comentarios
54
- most_commented_posts: A maioría das publicacións comentadas
55
- read_more: Le máis
56
+ most_commented_posts: As publicacións máis comentadas
57
+ read_more: Ler máis
56
58
  components:
57
59
  blogs:
58
60
  name: Blog
@@ -60,14 +62,17 @@ gl:
60
62
  global:
61
63
  announcement: Anuncio
62
64
  comments_enabled: Comentarios habilitados
65
+ comments_max_length: Lonxitude máxima dos comentarios (0 para valor predefinido)
63
66
  step:
64
67
  announcement: Anuncio
65
68
  comments_blocked: Comentarios bloqueados
69
+ endorsements_blocked: Adhesións bloqueadas
70
+ endorsements_enabled: Adhesións habilitadas
66
71
  events:
67
72
  blogs:
68
73
  post_created:
69
74
  email_intro: A publicación "%{resource_title}" publicouse en "%{participatory_space_title}" que estás seguindo.
70
- email_outro: Recibiches esta notificación porque estás seguindo "%{participatory_space_title}". Podes deixar de seguir desde a ligazón anterior.
75
+ email_outro: Recibiches esta notificación porque estás seguindo "%{participatory_space_title}". Podes deixar de seguir dende a ligazón anterior.
71
76
  email_subject: Nova publicación publicada en %{participatory_space_title}
72
77
  notification_title: A publicación <a href="%{resource_path}">%{resource_title}</a> publicouse en %{participatory_space_title}
73
78
  pages:
@@ -0,0 +1 @@
1
+ hr:
@@ -0,0 +1,56 @@
1
+ is:
2
+ decidim:
3
+ blogs:
4
+ actions:
5
+ confirm_destroy: Ertu viss um að þú viljir eyða þessu færslu?
6
+ destroy: Eyða
7
+ edit: Breyta
8
+ title: Aðgerðir
9
+ admin:
10
+ models:
11
+ components:
12
+ body: Líkami
13
+ post:
14
+ name: Post
15
+ posts:
16
+ create:
17
+ success: Post var búin til
18
+ destroy:
19
+ success: Post var eytt
20
+ edit:
21
+ save: Uppfæra
22
+ index:
23
+ title: Innlegg
24
+ new:
25
+ create: Búa til
26
+ title: Búa til færslu
27
+ models:
28
+ post:
29
+ fields:
30
+ author: Höfundur
31
+ body: Líkami
32
+ created_at: Búið til á
33
+ title: titill
34
+ posts:
35
+ sidebar_blog:
36
+ comments: athugasemdir
37
+ most_commented_posts: Flestar ummæli innleggar
38
+ read_more: Lestu meira
39
+ components:
40
+ blogs:
41
+ name: Blogg
42
+ settings:
43
+ global:
44
+ announcement: Tilkynning
45
+ step:
46
+ announcement: Tilkynning
47
+ events:
48
+ blogs:
49
+ post_created:
50
+ email_intro: Staða "%{resource_title}" hefur verið birt í "%{participatory_space_title}" sem þú fylgist með.
51
+ email_outro: Þú hefur fengið þessa tilkynningu vegna þess að þú fylgist með "%{participatory_space_title}". Þú getur sleppt því frá fyrri tengilinn.
52
+ email_subject: Ný staða birt í %{participatory_space_title}
53
+ notification_title: Staða <a href="%{resource_path}">%{resource_title}</a> hefur verið birt í %{participatory_space_title}
54
+ participatory_processes:
55
+ statistics:
56
+ posts_count: Innlegg
@@ -62,6 +62,7 @@ it:
62
62
  global:
63
63
  announcement: Annuncio
64
64
  comments_enabled: Commenti abilitati
65
+ comments_max_length: Lunghezza massima dei commenti (Lasciare 0 per il valore predefinito)
65
66
  step:
66
67
  announcement: Annuncio
67
68
  comments_blocked: Commenti bloccati
@@ -61,6 +61,7 @@ ja:
61
61
  global:
62
62
  announcement: お知らせ
63
63
  comments_enabled: コメントは有効です
64
+ comments_max_length: コメント最大長 (デフォルト値は 0 のまま)
64
65
  step:
65
66
  announcement: お知らせ
66
67
  comments_blocked: コメントがブロックされました
@@ -0,0 +1,83 @@
1
+ ja:
2
+ activemodel:
3
+ models:
4
+ decidim/blogs/create_post_event: 新しいブログ投稿
5
+ activerecord:
6
+ models:
7
+ decidim/blogs/post:
8
+ other: 投稿
9
+ decidim:
10
+ blogs:
11
+ actions:
12
+ confirm_destroy: この投稿を削除してもよろしいですか?
13
+ destroy: 削除
14
+ edit: 編集
15
+ new: 新規投稿
16
+ title: アクション
17
+ admin:
18
+ models:
19
+ components:
20
+ body: 本文
21
+ post:
22
+ name: 投稿
23
+ posts:
24
+ create:
25
+ invalid: この投稿を作成する際に問題が発生しました
26
+ success: 投稿を作成しました
27
+ destroy:
28
+ success: 投稿を削除しました
29
+ edit:
30
+ save: 更新
31
+ index:
32
+ title: 投稿
33
+ new:
34
+ create: 作成
35
+ title: 投稿を作成
36
+ update:
37
+ invalid: 投稿の保存中に問題が発生しました。
38
+ success: 投稿を保存しました
39
+ last_activity:
40
+ new_post_at_html: "<span> %{link}に新しい投稿</span>"
41
+ models:
42
+ post:
43
+ fields:
44
+ author: 作成者
45
+ body: 本文
46
+ created_at: 作成日時
47
+ title: タイトル
48
+ posts:
49
+ show:
50
+ back: リストに戻る
51
+ comments: コメント
52
+ view: 表示
53
+ sidebar_blog:
54
+ comments: コメント
55
+ most_commented_posts: 最もコメントされた投稿
56
+ read_more: もっと読む
57
+ components:
58
+ blogs:
59
+ name: ブログ
60
+ settings:
61
+ global:
62
+ announcement: お知らせ
63
+ comments_enabled: コメントを有効にする
64
+ comments_max_length: コメント最大長 (デフォルト値は 0 のまま)
65
+ step:
66
+ announcement: お知らせ
67
+ comments_blocked: コメントをブロック
68
+ endorsements_blocked: 支持をブロック
69
+ endorsements_enabled: 支持が有効
70
+ events:
71
+ blogs:
72
+ post_created:
73
+ email_intro: The post "%{resource_title}" has been published in "%{participatory_space_title}" that you are following.
74
+ email_outro: '「%{participatory_space_title}」をフォローしているため、この通知を受け取りました。前のリンクからこの通知をアンフォローすることができます。'
75
+ email_subject: '%{participatory_space_title} に新しい投稿が公開されました'
76
+ notification_title: The post <a href="%{resource_path}">%{resource_title}</a> has been published in %{participatory_space_title}
77
+ pages:
78
+ home:
79
+ statistics:
80
+ posts_count: 投稿
81
+ participatory_processes:
82
+ statistics:
83
+ posts_count: 投稿
@@ -0,0 +1 @@
1
+ ko:
@@ -0,0 +1 @@
1
+ ko:
@@ -0,0 +1 @@
1
+ lt:
File without changes
@@ -0,0 +1 @@
1
+ mt:
@@ -49,7 +49,7 @@ nl:
49
49
  posts:
50
50
  show:
51
51
  back: Terug naar het overzicht
52
- comments: Opmerkingen
52
+ comments: Reacties
53
53
  view: Bekijk
54
54
  sidebar_blog:
55
55
  comments: reacties
@@ -62,6 +62,7 @@ nl:
62
62
  global:
63
63
  announcement: Aankondiging
64
64
  comments_enabled: Reacties ingeschakeld
65
+ comments_max_length: Commentaar maximale lengte (laat 0 voor standaard waarde)
65
66
  step:
66
67
  announcement: Aankondiging
67
68
  comments_blocked: Reacties geblokkeerd
@@ -62,6 +62,7 @@
62
62
  global:
63
63
  announcement: Kunngjøring
64
64
  comments_enabled: Kommentarer aktivert
65
+ comments_max_length: Maks lengde på kommentarer (Sett 0 for standardverdi)
65
66
  step:
66
67
  announcement: Kunngjøring
67
68
  comments_blocked: Kommentarer blokkert
@@ -0,0 +1 @@
1
+ om:
@@ -52,7 +52,7 @@ pl:
52
52
  show:
53
53
  back: Powrót do listy
54
54
  comments: Komentarze
55
- view: Widok
55
+ view: Zobacz
56
56
  sidebar_blog:
57
57
  comments: komentarze
58
58
  most_commented_posts: Najczęściej komentowane wpisy
@@ -64,11 +64,12 @@ pl:
64
64
  global:
65
65
  announcement: Ogłoszenie
66
66
  comments_enabled: Komentarze włączone
67
+ comments_max_length: Maksymalna długość komentarzy (Pozostaw 0 dla wartości domyślnej)
67
68
  step:
68
69
  announcement: Ogłoszenie
69
70
  comments_blocked: Komentarze zablokowane
70
- endorsements_blocked: Możliwość poparcia zablokowana
71
- endorsements_enabled: Popieranie włączone
71
+ endorsements_blocked: Możliwość rekomendowania zablokowana
72
+ endorsements_enabled: Rekomendowanie włączone
72
73
  events:
73
74
  blogs:
74
75
  post_created:
@@ -62,6 +62,7 @@ pt:
62
62
  global:
63
63
  announcement: Anúncio
64
64
  comments_enabled: Comentários ativados
65
+ comments_max_length: Comprimento máximo dos comentários (Deixar 0 para o valor predefinido)
65
66
  step:
66
67
  announcement: Anúncio
67
68
  comments_blocked: Comentários bloqueados
@@ -63,6 +63,7 @@ ro:
63
63
  global:
64
64
  announcement: Anunţ
65
65
  comments_enabled: Comentarii activate
66
+ comments_max_length: Lungimea maximă a comentariilor (Leave 0 pentru valoarea implicită)
66
67
  step:
67
68
  announcement: Anunţ
68
69
  comments_blocked: Comentarii blocate
@@ -0,0 +1 @@
1
+ si:
@@ -0,0 +1 @@
1
+ so:
@@ -62,6 +62,7 @@ sv:
62
62
  global:
63
63
  announcement: Meddelande
64
64
  comments_enabled: Kommentarer aktiverade
65
+ comments_max_length: Maximal längd för kommentarer (Lämna 0 för standardvärde)
65
66
  step:
66
67
  announcement: Meddelande
67
68
  comments_blocked: Kommentarer blockerade
@@ -0,0 +1 @@
1
+ sw:
@@ -0,0 +1 @@
1
+ ti:
@@ -48,6 +48,8 @@ tr:
48
48
  title: Başlık
49
49
  posts:
50
50
  show:
51
+ back: Listeye geri dön
52
+ comments: Yorumlar
51
53
  view: Görünüm
52
54
  sidebar_blog:
53
55
  comments: yorumlar
@@ -60,9 +62,12 @@ tr:
60
62
  global:
61
63
  announcement: duyuru
62
64
  comments_enabled: Yorumlar etkin
65
+ comments_max_length: Maksimum yorum uzunluğu (Varsayılan değer için 0 bırakın)
63
66
  step:
64
67
  announcement: duyuru
65
68
  comments_blocked: Yorumlar engellendi
69
+ endorsements_blocked: Yorumlar engellendi
70
+ endorsements_enabled: Yorumlar etkin
66
71
  events:
67
72
  blogs:
68
73
  post_created:
@@ -0,0 +1 @@
1
+ vi:
@@ -0,0 +1 @@
1
+ vi:
@@ -0,0 +1,83 @@
1
+ zh-CN:
2
+ activemodel:
3
+ models:
4
+ decidim/blogs/create_post_event: 新博客文章
5
+ activerecord:
6
+ models:
7
+ decidim/blogs/post:
8
+ other: 员额
9
+ decidim:
10
+ blogs:
11
+ actions:
12
+ confirm_destroy: 您确定要删除此帖子?
13
+ destroy: 删除
14
+ edit: 编辑
15
+ new: 新建帖子
16
+ title: 行动
17
+ admin:
18
+ models:
19
+ components:
20
+ body: 正文内容
21
+ post:
22
+ name: 帖子
23
+ posts:
24
+ create:
25
+ invalid: 创建这个帖子时出错
26
+ success: 帖子创建成功
27
+ destroy:
28
+ success: 帖子已成功删除
29
+ edit:
30
+ save: 更新
31
+ index:
32
+ title: 员额
33
+ new:
34
+ create: 创建
35
+ title: 创建帖子
36
+ update:
37
+ invalid: 保存帖子时出错。
38
+ success: 帖子保存成功
39
+ last_activity:
40
+ new_post_at_html: "<span>在 %{link}的新帖</span>"
41
+ models:
42
+ post:
43
+ fields:
44
+ author: 作者
45
+ body: 正文内容
46
+ created_at: 创建于
47
+ title: 标题
48
+ posts:
49
+ show:
50
+ back: 返回列表
51
+ comments: 评论
52
+ view: 查看
53
+ sidebar_blog:
54
+ comments: 评论
55
+ most_commented_posts: 评论最多的帖子
56
+ read_more: 阅读更多
57
+ components:
58
+ blogs:
59
+ name: 博客
60
+ settings:
61
+ global:
62
+ announcement: 通 知
63
+ comments_enabled: 评论已启用
64
+ comments_max_length: 评论最大长度 (默认值留0)
65
+ step:
66
+ announcement: 通 知
67
+ comments_blocked: 评论已阻止
68
+ endorsements_blocked: 已阻止授权
69
+ endorsements_enabled: 授权已启用
70
+ events:
71
+ blogs:
72
+ post_created:
73
+ email_intro: 帖子"%{resource_title}" 已经发布在"%{participatory_space_title}",您关注的是这个帖子。
74
+ email_outro: 您收到此通知是因为您正在关注 "%{participatory_space_title}"。您可以从上一个链接取消关注它。
75
+ email_subject: 新帖子发布于 %{participatory_space_title}
76
+ notification_title: 帖子 <a href="%{resource_path}">%{resource_title}</a> 已经在 %{participatory_space_title} 中发布
77
+ pages:
78
+ home:
79
+ statistics:
80
+ posts_count: 员额
81
+ participatory_processes:
82
+ statistics:
83
+ posts_count: 员额
@@ -0,0 +1 @@
1
+ zh-TW:
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddCommentableCounterCacheToPosts < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_column :decidim_blogs_posts, :comments_count, :integer, null: false, default: 0, index: true
6
+ Decidim::Blogs::Post.reset_column_information
7
+ Decidim::Blogs::Post.find_each(&:update_comments_count)
8
+ end
9
+ end
@@ -23,6 +23,7 @@ Decidim.register_component(:blogs) do |component|
23
23
  component.settings(:global) do |settings|
24
24
  settings.attribute :announcement, type: :text, translated: true, editor: true
25
25
  settings.attribute :comments_enabled, type: :boolean, default: true
26
+ settings.attribute :comments_max_length, type: :integer, required: false
26
27
  end
27
28
 
28
29
  component.settings(:step) do |settings|
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-pages version.
5
5
  module Blogs
6
6
  def self.version
7
- "0.22.0"
7
+ "0.23.3"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-blogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.23.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Massot Gil
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.22.0
19
+ version: 0.23.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.22.0
26
+ version: 0.23.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.22.0
33
+ version: 0.23.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.22.0
40
+ version: 0.23.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.22.0
47
+ version: 0.23.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.22.0
54
+ version: 0.23.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: httparty
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -106,56 +106,56 @@ dependencies:
106
106
  requirements:
107
107
  - - '='
108
108
  - !ruby/object:Gem::Version
109
- version: 0.22.0
109
+ version: 0.23.3
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - '='
115
115
  - !ruby/object:Gem::Version
116
- version: 0.22.0
116
+ version: 0.23.3
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: decidim-assemblies
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - '='
122
122
  - !ruby/object:Gem::Version
123
- version: 0.22.0
123
+ version: 0.23.3
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - '='
129
129
  - !ruby/object:Gem::Version
130
- version: 0.22.0
130
+ version: 0.23.3
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: decidim-dev
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - '='
136
136
  - !ruby/object:Gem::Version
137
- version: 0.22.0
137
+ version: 0.23.3
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - '='
143
143
  - !ruby/object:Gem::Version
144
- version: 0.22.0
144
+ version: 0.23.3
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: decidim-participatory_processes
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - '='
150
150
  - !ruby/object:Gem::Version
151
- version: 0.22.0
151
+ version: 0.23.3
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - '='
157
157
  - !ruby/object:Gem::Version
158
- version: 0.22.0
158
+ version: 0.23.3
159
159
  description: A Blog component for decidim's participatory spaces.
160
160
  email:
161
161
  - isaac.mg@coditramuntana.com
@@ -200,22 +200,27 @@ files:
200
200
  - app/views/decidim/blogs/posts/_sidebar_blog.html.erb
201
201
  - app/views/decidim/blogs/posts/index.html.erb
202
202
  - app/views/decidim/blogs/posts/show.html.erb
203
+ - config/locales/am-ET.yml
203
204
  - config/locales/ar-SA.yml
204
205
  - config/locales/ar.yml
205
206
  - config/locales/bg-BG.yml
207
+ - config/locales/bg.yml
206
208
  - config/locales/ca.yml
207
209
  - config/locales/cs-CZ.yml
208
210
  - config/locales/cs.yml
209
211
  - config/locales/da-DK.yml
212
+ - config/locales/da.yml
210
213
  - config/locales/de.yml
211
214
  - config/locales/el-GR.yml
212
215
  - config/locales/el.yml
213
216
  - config/locales/en.yml
214
217
  - config/locales/eo-UY.yml
218
+ - config/locales/eo.yml
215
219
  - config/locales/es-MX.yml
216
220
  - config/locales/es-PY.yml
217
221
  - config/locales/es.yml
218
222
  - config/locales/et-EE.yml
223
+ - config/locales/et.yml
219
224
  - config/locales/eu.yml
220
225
  - config/locales/fi-pl.yml
221
226
  - config/locales/fi-plain.yml
@@ -225,34 +230,51 @@ files:
225
230
  - config/locales/ga-IE.yml
226
231
  - config/locales/gl.yml
227
232
  - config/locales/hr-HR.yml
233
+ - config/locales/hr.yml
228
234
  - config/locales/hu.yml
229
235
  - config/locales/id-ID.yml
230
236
  - config/locales/is-IS.yml
237
+ - config/locales/is.yml
231
238
  - config/locales/it.yml
232
239
  - config/locales/ja-JP.yml
240
+ - config/locales/ja.yml
241
+ - config/locales/ko-KR.yml
242
+ - config/locales/ko.yml
233
243
  - config/locales/lt-LT.yml
234
- - config/locales/lv-LV.yml
244
+ - config/locales/lt.yml
245
+ - config/locales/lv.yml
235
246
  - config/locales/mt-MT.yml
247
+ - config/locales/mt.yml
236
248
  - config/locales/nl.yml
237
249
  - config/locales/no.yml
250
+ - config/locales/om-ET.yml
238
251
  - config/locales/pl.yml
239
252
  - config/locales/pt-BR.yml
240
253
  - config/locales/pt.yml
241
254
  - config/locales/ro-RO.yml
242
255
  - config/locales/ru.yml
256
+ - config/locales/si-LK.yml
243
257
  - config/locales/sk-SK.yml
244
258
  - config/locales/sk.yml
245
259
  - config/locales/sl.yml
260
+ - config/locales/so-SO.yml
246
261
  - config/locales/sr-CS.yml
247
262
  - config/locales/sv.yml
263
+ - config/locales/sw-KE.yml
264
+ - config/locales/ti-ER.yml
248
265
  - config/locales/tr-TR.yml
249
266
  - config/locales/uk.yml
267
+ - config/locales/vi-VN.yml
268
+ - config/locales/vi.yml
269
+ - config/locales/zh-CN.yml
270
+ - config/locales/zh-TW.yml
250
271
  - db/migrate/20171129131353_create_decidim_blogs_posts.rb
251
272
  - db/migrate/20171211084630_add_author_to_decidim_blogs_posts.rb
252
273
  - db/migrate/20181017084519_make_blogposts_authors_polymorphics.rb
253
274
  - db/migrate/20191212162606_add_user_group_author_to_blogs.rb
254
275
  - db/migrate/20200128094730_add_endorsements_counter_cache_to_blogs.rb
255
276
  - db/migrate/20200320105910_index_foreign_keys_in_decidim_blogs_posts.rb
277
+ - db/migrate/20200827153709_add_commentable_counter_cache_to_posts.rb
256
278
  - lib/decidim/blogs.rb
257
279
  - lib/decidim/blogs/admin.rb
258
280
  - lib/decidim/blogs/admin_engine.rb
@@ -264,7 +286,7 @@ homepage: https://github.com/decidim/decidim
264
286
  licenses:
265
287
  - AGPL-3.0
266
288
  metadata: {}
267
- post_install_message:
289
+ post_install_message:
268
290
  rdoc_options: []
269
291
  require_paths:
270
292
  - lib
@@ -272,15 +294,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
294
  requirements:
273
295
  - - ">="
274
296
  - !ruby/object:Gem::Version
275
- version: '2.5'
297
+ version: '2.6'
276
298
  required_rubygems_version: !ruby/object:Gem::Requirement
277
299
  requirements:
278
300
  - - ">="
279
301
  - !ruby/object:Gem::Version
280
302
  version: '0'
281
303
  requirements: []
282
- rubygems_version: 3.1.2
283
- signing_key:
304
+ rubygems_version: 3.0.3
305
+ signing_key:
284
306
  specification_version: 4
285
307
  summary: Decidim blogs module
286
308
  test_files: []