decidim-blogs 0.20.1 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/blogs/icon.svg +1 -3
  3. data/app/cells/decidim/blogs/post_m/footer.erb +1 -1
  4. data/app/cells/decidim/blogs/post_m_cell.rb +6 -0
  5. data/app/controllers/decidim/blogs/posts_controller.rb +2 -0
  6. data/app/helpers/decidim/blogs/application_helper.rb +2 -0
  7. data/app/models/decidim/blogs/post.rb +13 -0
  8. data/app/types/decidim/blogs/blogs_type.rb +30 -0
  9. data/app/types/decidim/blogs/post_input_filter.rb +29 -0
  10. data/app/types/decidim/blogs/post_input_sort.rb +15 -0
  11. data/app/types/decidim/blogs/post_type.rb +24 -0
  12. data/app/views/decidim/blogs/posts/_posts.html.erb +4 -4
  13. data/app/views/decidim/blogs/posts/_sidebar_blog.html.erb +2 -2
  14. data/app/views/decidim/blogs/posts/show.html.erb +34 -9
  15. data/config/locales/am-ET.yml +1 -0
  16. data/config/locales/bg-BG.yml +13 -0
  17. data/config/locales/bg.yml +13 -0
  18. data/config/locales/ca.yml +5 -0
  19. data/config/locales/cs.yml +17 -12
  20. data/config/locales/da-DK.yml +1 -0
  21. data/config/locales/da.yml +1 -0
  22. data/config/locales/de.yml +5 -0
  23. data/config/locales/el.yml +84 -0
  24. data/config/locales/en.yml +5 -0
  25. data/config/locales/eo.yml +1 -0
  26. data/config/locales/es-MX.yml +5 -0
  27. data/config/locales/es-PY.yml +5 -0
  28. data/config/locales/es.yml +5 -0
  29. data/config/locales/et-EE.yml +1 -0
  30. data/config/locales/et.yml +1 -0
  31. data/config/locales/fi-plain.yml +5 -0
  32. data/config/locales/fi.yml +9 -4
  33. data/config/locales/fr-CA.yml +84 -0
  34. data/config/locales/fr.yml +5 -0
  35. data/config/locales/ga-IE.yml +1 -0
  36. data/config/locales/hr-HR.yml +1 -0
  37. data/config/locales/hr.yml +1 -0
  38. data/config/locales/hu.yml +4 -0
  39. data/config/locales/is.yml +56 -0
  40. data/config/locales/it.yml +5 -0
  41. data/config/locales/ja-JP.yml +83 -0
  42. data/config/locales/ja.yml +83 -0
  43. data/config/locales/ko-KR.yml +1 -0
  44. data/config/locales/ko.yml +1 -0
  45. data/config/locales/lt-LT.yml +1 -0
  46. data/config/locales/lt.yml +1 -0
  47. data/config/locales/lv.yml +84 -0
  48. data/config/locales/mt-MT.yml +1 -0
  49. data/config/locales/mt.yml +1 -0
  50. data/config/locales/nl.yml +5 -0
  51. data/config/locales/no.yml +5 -0
  52. data/config/locales/om-ET.yml +1 -0
  53. data/config/locales/pl.yml +34 -29
  54. data/config/locales/pt-BR.yml +1 -1
  55. data/config/locales/pt.yml +29 -24
  56. data/config/locales/ro-RO.yml +85 -0
  57. data/config/locales/sk-SK.yml +85 -0
  58. data/config/locales/sk.yml +85 -0
  59. data/config/locales/sl.yml +5 -0
  60. data/config/locales/so-SO.yml +1 -0
  61. data/config/locales/sr-CS.yml +13 -0
  62. data/config/locales/sv.yml +5 -0
  63. data/config/locales/ti-ER.yml +1 -0
  64. data/config/locales/vi-VN.yml +1 -0
  65. data/config/locales/vi.yml +1 -0
  66. data/config/locales/zh-CN.yml +83 -0
  67. data/config/locales/zh-TW.yml +1 -0
  68. data/db/migrate/20191212162606_add_user_group_author_to_blogs.rb +7 -0
  69. data/db/migrate/20200128094730_add_endorsements_counter_cache_to_blogs.rb +7 -0
  70. data/db/migrate/20200320105910_index_foreign_keys_in_decidim_blogs_posts.rb +7 -0
  71. data/db/migrate/20200827153709_add_commentable_counter_cache_to_posts.rb +9 -0
  72. data/lib/decidim/blogs/component.rb +8 -0
  73. data/lib/decidim/blogs/test/factories.rb +8 -0
  74. data/lib/decidim/blogs/version.rb +1 -1
  75. metadata +69 -20
@@ -49,6 +49,8 @@ en:
49
49
  title: title
50
50
  posts:
51
51
  show:
52
+ back: Back to list
53
+ comments: Comments
52
54
  view: View
53
55
  sidebar_blog:
54
56
  comments: comments
@@ -61,9 +63,12 @@ en:
61
63
  global:
62
64
  announcement: Announcement
63
65
  comments_enabled: Comments enabled
66
+ comments_max_length: Comments max length (Leave 0 for default value)
64
67
  step:
65
68
  announcement: Announcement
66
69
  comments_blocked: Comments blocked
70
+ endorsements_blocked: Endorsements blocked
71
+ endorsements_enabled: Endorsements enabled
67
72
  events:
68
73
  blogs:
69
74
  post_created:
@@ -0,0 +1 @@
1
+ eo:
@@ -48,6 +48,8 @@ es-MX:
48
48
  title: título
49
49
  posts:
50
50
  show:
51
+ back: Volver al listado
52
+ comments: Comentarios
51
53
  view: Ver
52
54
  sidebar_blog:
53
55
  comments: comentarios
@@ -60,9 +62,12 @@ es-MX:
60
62
  global:
61
63
  announcement: Anuncio
62
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)
63
66
  step:
64
67
  announcement: Anuncio
65
68
  comments_blocked: Comentarios bloqueados
69
+ endorsements_blocked: Adhesiones bloqueadas
70
+ endorsements_enabled: Adhesiones habilitadas
66
71
  events:
67
72
  blogs:
68
73
  post_created:
@@ -48,6 +48,8 @@ es-PY:
48
48
  title: título
49
49
  posts:
50
50
  show:
51
+ back: Volver al listado
52
+ comments: Comentarios
51
53
  view: Ver
52
54
  sidebar_blog:
53
55
  comments: comentarios
@@ -60,9 +62,12 @@ es-PY:
60
62
  global:
61
63
  announcement: Anuncio
62
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)
63
66
  step:
64
67
  announcement: Anuncio
65
68
  comments_blocked: Comentarios bloqueados
69
+ endorsements_blocked: Adhesiones bloqueadas
70
+ endorsements_enabled: Adhesiones habilitadas
66
71
  events:
67
72
  blogs:
68
73
  post_created:
@@ -48,6 +48,8 @@ es:
48
48
  title: título
49
49
  posts:
50
50
  show:
51
+ back: Volver al listado
52
+ comments: Comentarios
51
53
  view: Ver
52
54
  sidebar_blog:
53
55
  comments: comentarios
@@ -60,9 +62,12 @@ es:
60
62
  global:
61
63
  announcement: Aviso
62
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)
63
66
  step:
64
67
  announcement: Aviso
65
68
  comments_blocked: Comentarios bloqueados
69
+ endorsements_blocked: Adhesiones bloqueadas
70
+ endorsements_enabled: Adhesiones habilitadas
66
71
  events:
67
72
  blogs:
68
73
  post_created:
@@ -0,0 +1 @@
1
+ et:
@@ -0,0 +1 @@
1
+ et:
@@ -48,6 +48,8 @@ fi-pl:
48
48
  title: otsikko
49
49
  posts:
50
50
  show:
51
+ back: Takaisin listaan
52
+ comments: Kommentit
51
53
  view: Näytä
52
54
  sidebar_blog:
53
55
  comments: kommentit
@@ -60,9 +62,12 @@ fi-pl:
60
62
  global:
61
63
  announcement: Ilmoitus
62
64
  comments_enabled: Kommentointi käytössä
65
+ comments_max_length: Kommenttien maksimipituus (jätä arvoksi 0 käyttääksesi oletusarvoa)
63
66
  step:
64
67
  announcement: Ilmoitus
65
68
  comments_blocked: Kommentointi estetty
69
+ endorsements_blocked: Suositukset estetty
70
+ endorsements_enabled: Suositukset käytössä
66
71
  events:
67
72
  blogs:
68
73
  post_created:
@@ -24,9 +24,9 @@ fi:
24
24
  posts:
25
25
  create:
26
26
  invalid: Tämän artikkelin luonti epäonnistui
27
- success: Artikkeli luotu onnistuneesti
27
+ success: Artikkelin luonti onnistui
28
28
  destroy:
29
- success: Artikkeli poistettu onnistuneesti
29
+ success: Artikkelin poisto onnistui
30
30
  edit:
31
31
  save: Päivitä
32
32
  index:
@@ -42,12 +42,14 @@ fi:
42
42
  models:
43
43
  post:
44
44
  fields:
45
- author: Kirjoittaja
45
+ author: Laatija
46
46
  body: Leipäteksti
47
47
  created_at: Luotu
48
48
  title: otsikko
49
49
  posts:
50
50
  show:
51
+ back: Takaisin listaan
52
+ comments: Kommentit
51
53
  view: Näytä
52
54
  sidebar_blog:
53
55
  comments: kommentit
@@ -60,15 +62,18 @@ fi:
60
62
  global:
61
63
  announcement: Ilmoitus
62
64
  comments_enabled: Kommentointi käytössä
65
+ comments_max_length: Kommenttien maksimipituus (jätä arvoksi 0 käyttääksesi oletusarvoa)
63
66
  step:
64
67
  announcement: Ilmoitus
65
68
  comments_blocked: Kommentointi estetty
69
+ endorsements_blocked: Suositukset estetty
70
+ endorsements_enabled: Suositukset käytössä
66
71
  events:
67
72
  blogs:
68
73
  post_created:
69
74
  email_intro: Seuraamassasi kohteessa "%{participatory_space_title}" on julkaistu artikkeli "%{resource_title}".
70
75
  email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat kohdetta "%{participatory_space_title}". Voit lopettaa seuraamisen edellä esitetyn linkin kautta.
71
- email_subject: Uusi artikkeli julkaistiin tilassa %{participatory_space_title}
76
+ email_subject: Uusi artikkeli julkaistiin osallistumistilassa %{participatory_space_title}
72
77
  notification_title: Kohteessa %{participatory_space_title} on julkaistu artikkeli <a href="%{resource_path}">%{resource_title}</a>
73
78
  pages:
74
79
  home:
@@ -0,0 +1,84 @@
1
+ fr-CA:
2
+ activemodel:
3
+ models:
4
+ decidim/blogs/create_post_event: Nouvel article
5
+ activerecord:
6
+ models:
7
+ decidim/blogs/post:
8
+ one: Article
9
+ other: Articles
10
+ decidim:
11
+ blogs:
12
+ actions:
13
+ confirm_destroy: Êtes-vous certain de vouloir supprimer cet article ?
14
+ destroy: Supprimer
15
+ edit: Modifier
16
+ new: Nouvel article
17
+ title: Actions
18
+ admin:
19
+ models:
20
+ components:
21
+ body: Corps du texte
22
+ post:
23
+ name: Publier
24
+ posts:
25
+ create:
26
+ invalid: Un problème est survenu lors de la création de cet article
27
+ success: Article créé avec succès
28
+ destroy:
29
+ success: Article supprimé avec succès
30
+ edit:
31
+ save: Mettre à jour
32
+ index:
33
+ title: Articles
34
+ new:
35
+ create: Créer
36
+ title: Créer un article
37
+ update:
38
+ invalid: Il y a eu des erreurs lors de l'enregistrement de l'article.
39
+ success: Article enregistré avec succès
40
+ last_activity:
41
+ new_post_at_html: "<span>Nouvel article à %{link}</span>"
42
+ models:
43
+ post:
44
+ fields:
45
+ author: Auteur
46
+ body: Corps du texte
47
+ created_at: Créé à
48
+ title: titre
49
+ posts:
50
+ show:
51
+ back: Retour à la liste
52
+ comments: Commentaires
53
+ view: Voir
54
+ sidebar_blog:
55
+ comments: commentaires
56
+ most_commented_posts: Articles les plus commentés
57
+ read_more: Voir la suite
58
+ components:
59
+ blogs:
60
+ name: Actualités
61
+ settings:
62
+ global:
63
+ announcement: Annonce
64
+ comments_enabled: Activer le module de commentaire
65
+ comments_max_length: Longueur max des commentaires (laisser 0 pour la valeur par défaut)
66
+ step:
67
+ announcement: Annonce
68
+ comments_blocked: Commentaires désactivés
69
+ endorsements_blocked: Soutiens bloqués
70
+ endorsements_enabled: Soutiens activés
71
+ events:
72
+ blogs:
73
+ post_created:
74
+ email_intro: L'article "%{resource_title}" a été publié dans "%{participatory_space_title}" que vous suivez.
75
+ email_outro: Vous avez reçu cette notification parce que vous suivez "%{participatory_space_title}". Vous pouvez le retirer du lien précédent.
76
+ email_subject: Nouvel article publié dans %{participatory_space_title}
77
+ notification_title: L'article <a href="%{resource_path}">%{resource_title}</a> a été publié dans %{participatory_space_title}
78
+ pages:
79
+ home:
80
+ statistics:
81
+ posts_count: Articles
82
+ participatory_processes:
83
+ statistics:
84
+ posts_count: Articles
@@ -48,6 +48,8 @@ fr:
48
48
  title: titre
49
49
  posts:
50
50
  show:
51
+ back: Retour à la liste
52
+ comments: Commentaires
51
53
  view: Voir
52
54
  sidebar_blog:
53
55
  comments: commentaires
@@ -60,9 +62,12 @@ fr:
60
62
  global:
61
63
  announcement: Annonce
62
64
  comments_enabled: Activer le module de commentaire
65
+ comments_max_length: Longueur max des commentaires (laisser 0 pour la valeur par défaut)
63
66
  step:
64
67
  announcement: Annonce
65
68
  comments_blocked: Commentaires désactivés
69
+ endorsements_blocked: Soutiens bloqués
70
+ endorsements_enabled: Soutiens activés
66
71
  events:
67
72
  blogs:
68
73
  post_created:
@@ -0,0 +1 @@
1
+ ga:
@@ -0,0 +1 @@
1
+ hr:
@@ -0,0 +1 @@
1
+ hr:
@@ -48,6 +48,8 @@ hu:
48
48
  title: cím
49
49
  posts:
50
50
  show:
51
+ back: Vissza a listához
52
+ comments: Hozzászólások
51
53
  view: Nézet
52
54
  sidebar_blog:
53
55
  comments: hozzászólások
@@ -63,6 +65,8 @@ hu:
63
65
  step:
64
66
  announcement: Közlemény
65
67
  comments_blocked: Megjegyzések letiltva
68
+ endorsements_blocked: Jóváhagyások letiltva
69
+ endorsements_enabled: Jóváhagyások engedélyezve
66
70
  events:
67
71
  blogs:
68
72
  post_created:
@@ -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
@@ -48,6 +48,8 @@ it:
48
48
  title: titolo
49
49
  posts:
50
50
  show:
51
+ back: Torna alla lista
52
+ comments: Commenti
51
53
  view: vista
52
54
  sidebar_blog:
53
55
  comments: Commenti
@@ -60,9 +62,12 @@ it:
60
62
  global:
61
63
  announcement: Annuncio
62
64
  comments_enabled: Commenti abilitati
65
+ comments_max_length: Lunghezza massima dei commenti (Lasciare 0 per il valore predefinito)
63
66
  step:
64
67
  announcement: Annuncio
65
68
  comments_blocked: Commenti bloccati
69
+ endorsements_blocked: Appoggi bloccati
70
+ endorsements_enabled: Appoggi abilitati
66
71
  events:
67
72
  blogs:
68
73
  post_created:
@@ -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: 投稿