decidim-blogs 0.27.4 → 0.27.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/decidim/blogs/posts/index.html.erb +5 -1
- data/config/locales/bg.yml +27 -0
- data/config/locales/ca.yml +3 -1
- data/config/locales/cs.yml +2 -0
- data/config/locales/de.yml +4 -2
- data/config/locales/en.yml +2 -0
- data/config/locales/es-MX.yml +2 -0
- data/config/locales/es-PY.yml +2 -0
- data/config/locales/es.yml +2 -0
- data/config/locales/eu.yml +17 -15
- data/config/locales/fi-plain.yml +2 -0
- data/config/locales/fi.yml +2 -0
- data/config/locales/fr-CA.yml +2 -0
- data/config/locales/fr.yml +2 -0
- data/config/locales/ga-IE.yml +3 -0
- data/config/locales/he-IL.yml +1 -0
- data/config/locales/hu.yml +5 -3
- data/config/locales/it.yml +3 -0
- data/config/locales/ja.yml +2 -0
- data/config/locales/ko.yml +38 -0
- data/config/locales/lb.yml +3 -0
- data/config/locales/lt.yml +6 -0
- data/config/locales/pl.yml +21 -0
- data/config/locales/pt-BR.yml +9 -0
- data/config/locales/pt.yml +3 -0
- data/config/locales/ru.yml +27 -0
- data/config/locales/sq-AL.yml +80 -0
- data/config/locales/sv.yml +3 -0
- data/config/locales/th-TH.yml +1 -0
- data/decidim-blogs.gemspec +36 -0
- data/lib/decidim/blogs/component.rb +1 -1
- data/lib/decidim/blogs/test/factories.rb +19 -8
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +25 -22
- data/config/environment.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3cc2dbb097744aa4899c2ab45645402c2f9920139385dbf9590a7bb9fa310bf
|
4
|
+
data.tar.gz: f5f044af656c62c7d32823a8162967c4db0adfa1721adc9a19866c1e953050ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81096f65a3b4dafbc78491e86a0357fa349d1b3e433f75a972f2c161744ea2693dd3bdea88786878b77e97319c6e1259e4d49355b611f80b6fe2d92de062c3a2
|
7
|
+
data.tar.gz: 164a42ee9046329cb24d3adb4993ff7ad241e3241c7f411fd1a8c0eb0a5492bce0fd5486c20941df7e794e4d4f3aff29646a9c93dbdbde56ee71e7a39aef8c94
|
@@ -2,7 +2,11 @@
|
|
2
2
|
|
3
3
|
<div class="row column">
|
4
4
|
<div id="blogs" class="columns medium-7 mediumlarge-8">
|
5
|
-
|
5
|
+
<% if posts.empty? %>
|
6
|
+
<%= cell("decidim/announcement", t("empty", scope: "decidim.blogs.posts.index")) %>
|
7
|
+
<% else %>
|
8
|
+
<%= render partial: "posts" %>
|
9
|
+
<% end %>
|
6
10
|
</div>
|
7
11
|
<div id="most-commented" class="columns medium-5 mediumlarge-4 large-4">
|
8
12
|
<%= render partial: "sidebar_blog", locals: { posts: posts_most_commented } %>
|
data/config/locales/bg.yml
CHANGED
@@ -12,3 +12,30 @@ bg:
|
|
12
12
|
blogs:
|
13
13
|
actions:
|
14
14
|
confirm_destroy: Сигурни ли сте, че желаете да изтриете тази публикация?
|
15
|
+
admin:
|
16
|
+
models:
|
17
|
+
post:
|
18
|
+
name: Публикация
|
19
|
+
posts:
|
20
|
+
create:
|
21
|
+
invalid: Възникна проблем при създаването на тази публикация
|
22
|
+
success: Публикацията беше създадена успешно
|
23
|
+
destroy:
|
24
|
+
success: Публикацията беше изтрита успешно
|
25
|
+
update:
|
26
|
+
success: Публикацията беше запазена успешно
|
27
|
+
last_activity:
|
28
|
+
new_post_at_html: "<span>Нова публикация на %{link}</span>"
|
29
|
+
models:
|
30
|
+
post:
|
31
|
+
fields:
|
32
|
+
created_at: Създадена на
|
33
|
+
posts:
|
34
|
+
show:
|
35
|
+
back: Назад към списъка
|
36
|
+
comments: Коментари
|
37
|
+
view: Преглед
|
38
|
+
sidebar_blog:
|
39
|
+
comments: коментари
|
40
|
+
most_commented_posts: Най-коментирани публикации
|
41
|
+
read_more: Прочетете повече
|
data/config/locales/ca.yml
CHANGED
@@ -60,6 +60,8 @@ ca:
|
|
60
60
|
official_blog_post: Post oficial
|
61
61
|
title: Títol
|
62
62
|
posts:
|
63
|
+
index:
|
64
|
+
empty: Encara no hi ha cap publicació.
|
63
65
|
show:
|
64
66
|
back: Tornar al llistat
|
65
67
|
comments: Comentaris
|
@@ -91,7 +93,7 @@ ca:
|
|
91
93
|
blogs:
|
92
94
|
post_created:
|
93
95
|
email_intro: La publicació "%{resource_title}" s'ha publicat al "%{participatory_space_title}", el qual segueixes.
|
94
|
-
email_outro: Has rebut aquesta notificació perquè estàs seguint "%{participatory_space_title}". Pots deixar de seguir-lo des de l'enllaç anterior.
|
96
|
+
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de seguir-lo des de l'enllaç anterior.
|
95
97
|
email_subject: Nova publicació publicada a %{participatory_space_title}
|
96
98
|
notification_title: La publicació <a href="%{resource_path}">%{resource_title}</a> ha estat publicada a %{participatory_space_title}
|
97
99
|
statistics:
|
data/config/locales/cs.yml
CHANGED
data/config/locales/de.yml
CHANGED
@@ -50,16 +50,18 @@ de:
|
|
50
50
|
delete: "%{user_name} hat den Blogpost %{resource_name} in %{space_name} gelöscht"
|
51
51
|
update: "%{user_name} hat den Blogpost %{resource_name} in %{space_name} aktualisiert"
|
52
52
|
last_activity:
|
53
|
-
new_post_at_html: "<span>Neuer Beitrag
|
53
|
+
new_post_at_html: "<span>Neuer Beitrag auf %{link}</span>"
|
54
54
|
models:
|
55
55
|
post:
|
56
56
|
fields:
|
57
57
|
author: Autor
|
58
58
|
body: Haupttext
|
59
|
-
created_at:
|
59
|
+
created_at: Erstellt am
|
60
60
|
official_blog_post: Offizieller Post
|
61
61
|
title: Titel
|
62
62
|
posts:
|
63
|
+
index:
|
64
|
+
empty: Es sind noch keine Beiträge vorhanden.
|
63
65
|
show:
|
64
66
|
back: Zurück zur Liste
|
65
67
|
comments: Kommentare
|
data/config/locales/en.yml
CHANGED
data/config/locales/es-MX.yml
CHANGED
data/config/locales/es-PY.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/eu.yml
CHANGED
@@ -3,12 +3,12 @@ eu:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
post:
|
6
|
-
body:
|
6
|
+
body: Gorputza
|
7
7
|
decidim_author_id: Egilea
|
8
|
-
published_at: Argitaratze
|
9
|
-
title:
|
8
|
+
published_at: Argitaratze-data
|
9
|
+
title: Izenburua
|
10
10
|
models:
|
11
|
-
decidim/blogs/create_post_event: Blogeko
|
11
|
+
decidim/blogs/create_post_event: Blogeko beste argitalpen bat
|
12
12
|
activerecord:
|
13
13
|
models:
|
14
14
|
decidim/blogs/post:
|
@@ -21,7 +21,7 @@ eu:
|
|
21
21
|
confirm_destroy: Ziur zaude post hau argitalpen ezabatu nahi duzula?
|
22
22
|
destroy: Ezabatu
|
23
23
|
edit: Editatu
|
24
|
-
new:
|
24
|
+
new: Beste argitalpen bat
|
25
25
|
title: Ekintzak
|
26
26
|
admin:
|
27
27
|
models:
|
@@ -29,10 +29,10 @@ eu:
|
|
29
29
|
name: Argitalpena
|
30
30
|
posts:
|
31
31
|
create:
|
32
|
-
invalid: Arazo bat
|
33
|
-
success: Argitalpena
|
32
|
+
invalid: Arazo bat egon da argitalpen hau sortzean
|
33
|
+
success: Argitalpena zuzen sortua
|
34
34
|
destroy:
|
35
|
-
success:
|
35
|
+
success: Argitalpena behar bezala ezabatua
|
36
36
|
edit:
|
37
37
|
save: Eguneratu
|
38
38
|
title: Editatu argitalpena
|
@@ -40,26 +40,28 @@ eu:
|
|
40
40
|
title: Argitalpenak
|
41
41
|
new:
|
42
42
|
create: Sortu
|
43
|
-
title: Sortu
|
43
|
+
title: Sortu mezua
|
44
44
|
update:
|
45
|
-
invalid:
|
46
|
-
success:
|
45
|
+
invalid: Arazo bat egon da argitalpena gordetzean.
|
46
|
+
success: Argitalpena zuzen gordea
|
47
47
|
admin_log:
|
48
48
|
post:
|
49
49
|
create: "%{user_name} k %{resource_name} blogeko argitalpena sortu du %{space_name} espazioan"
|
50
50
|
delete: "%{user_name} k %{resource_name} blogeko argitalpena ezabatu du %{space_name} espazioan"
|
51
51
|
update: "%{user_name} k %{resource_name} blogeko argitalpena eguneratu egin da %{space_name} espazioan"
|
52
52
|
last_activity:
|
53
|
-
new_post_at_html: "<span>
|
53
|
+
new_post_at_html: "<span> %{link}</span>-ean emaitza berria"
|
54
54
|
models:
|
55
55
|
post:
|
56
56
|
fields:
|
57
57
|
author: Egilea
|
58
|
-
body:
|
58
|
+
body: Gorputza
|
59
59
|
created_at: Sortze-data
|
60
|
-
official_blog_post:
|
60
|
+
official_blog_post: Argitalpen ofiziala
|
61
61
|
title: Izenburua
|
62
62
|
posts:
|
63
|
+
index:
|
64
|
+
empty: Oraindik ez dago argitalpenik.
|
63
65
|
show:
|
64
66
|
back: Itzuli zerrendara
|
65
67
|
comments: Iruzkinak
|
@@ -67,7 +69,7 @@ eu:
|
|
67
69
|
sidebar_blog:
|
68
70
|
comments: iruzkinak
|
69
71
|
most_commented_posts: Gehien iruzkinatutako mezu
|
70
|
-
read_more:
|
72
|
+
read_more: Gehiago irakurri
|
71
73
|
components:
|
72
74
|
blogs:
|
73
75
|
actions:
|
data/config/locales/fi-plain.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/fr-CA.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/ga-IE.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
he:
|
data/config/locales/hu.yml
CHANGED
@@ -60,6 +60,8 @@ hu:
|
|
60
60
|
official_blog_post: Hivatalos bejegyzés
|
61
61
|
title: Cím
|
62
62
|
posts:
|
63
|
+
index:
|
64
|
+
empty: Még nincsenek bejegyzések.
|
63
65
|
show:
|
64
66
|
back: Vissza a listához
|
65
67
|
comments: Hozzászólások
|
@@ -74,7 +76,7 @@ hu:
|
|
74
76
|
comment: Hozzászólás
|
75
77
|
create: Létrehozás
|
76
78
|
destroy: Törlés
|
77
|
-
endorse:
|
79
|
+
endorse: Jóváhagy
|
78
80
|
update: Frissítés
|
79
81
|
name: Blog
|
80
82
|
settings:
|
@@ -85,8 +87,8 @@ hu:
|
|
85
87
|
step:
|
86
88
|
announcement: Közlemény
|
87
89
|
comments_blocked: Megjegyzések letiltva
|
88
|
-
endorsements_blocked:
|
89
|
-
endorsements_enabled:
|
90
|
+
endorsements_blocked: Támogatások letiltva
|
91
|
+
endorsements_enabled: Támogatások engedélyezve
|
90
92
|
events:
|
91
93
|
blogs:
|
92
94
|
post_created:
|
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/ko.yml
CHANGED
@@ -1 +1,39 @@
|
|
1
|
+
---
|
1
2
|
ko:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
post:
|
6
|
+
decidim_author_id: 작성자
|
7
|
+
title: 제목
|
8
|
+
decidim:
|
9
|
+
blogs:
|
10
|
+
actions:
|
11
|
+
destroy: 삭제
|
12
|
+
edit: 수정
|
13
|
+
new: 새 게시물
|
14
|
+
title: 작업
|
15
|
+
admin:
|
16
|
+
posts:
|
17
|
+
edit:
|
18
|
+
save: 업데이트
|
19
|
+
models:
|
20
|
+
post:
|
21
|
+
fields:
|
22
|
+
author: 작성자
|
23
|
+
official_blog_post: 공식 게시물
|
24
|
+
title: 제목
|
25
|
+
components:
|
26
|
+
blogs:
|
27
|
+
actions:
|
28
|
+
update: 업데이트
|
29
|
+
name: 블로그
|
30
|
+
settings:
|
31
|
+
global:
|
32
|
+
announcement: 공지 사항
|
33
|
+
comments_enabled: 댓글 활성화됨
|
34
|
+
comments_max_length: 댓글 최대 길이(기본값은 0으로 남김)
|
35
|
+
step:
|
36
|
+
announcement: 공지 사항
|
37
|
+
comments_blocked: 댓글 차단됨
|
38
|
+
statistics:
|
39
|
+
posts_count: 게시물
|
data/config/locales/lb.yml
CHANGED
data/config/locales/lt.yml
CHANGED
@@ -3,7 +3,10 @@ lt:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
post:
|
6
|
+
body: Tekstas
|
7
|
+
decidim_author_id: Autorė(-ius)
|
6
8
|
published_at: Paskelbimo laikas
|
9
|
+
title: Pavadinimas
|
7
10
|
models:
|
8
11
|
decidim/blogs/create_post_event: Naujas tinklaraščio įrašas
|
9
12
|
activerecord:
|
@@ -57,6 +60,7 @@ lt:
|
|
57
60
|
body: Pagrindinė dalis
|
58
61
|
created_at: Sukurta
|
59
62
|
official_blog_post: Oficiali publikacija
|
63
|
+
title: Pavadinimas
|
60
64
|
posts:
|
61
65
|
show:
|
62
66
|
back: Grįžti į sąrašą
|
@@ -69,8 +73,10 @@ lt:
|
|
69
73
|
components:
|
70
74
|
blogs:
|
71
75
|
actions:
|
76
|
+
comment: Komentuoti
|
72
77
|
create: Sukurti
|
73
78
|
destroy: Ištrinti
|
79
|
+
endorse: Palaikyti
|
74
80
|
update: Atnaujinti
|
75
81
|
name: Tinklaraštis
|
76
82
|
settings:
|
data/config/locales/pl.yml
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
---
|
2
2
|
pl:
|
3
3
|
activemodel:
|
4
|
+
attributes:
|
5
|
+
post:
|
6
|
+
body: Treść posta
|
7
|
+
decidim_author_id: Autor
|
8
|
+
published_at: Czas publikacji posta
|
9
|
+
title: Tytuł posta
|
4
10
|
models:
|
5
11
|
decidim/blogs/create_post_event: Nowy wpis na blogu
|
6
12
|
activerecord:
|
@@ -40,6 +46,11 @@ pl:
|
|
40
46
|
update:
|
41
47
|
invalid: Podczas zapisywania wpisu wystąpiły błędy.
|
42
48
|
success: Wpis został pomyślnie zapisany
|
49
|
+
admin_log:
|
50
|
+
post:
|
51
|
+
create: "%{user_name} utworzył/a %{resource_name} post na blogu w %{space_name}"
|
52
|
+
delete: "%{user_name} usunął/usunęła %{resource_name} post na blogu z %{space_name}"
|
53
|
+
update: "%{user_name} zaktualizował/a %{resource_name} post na blogu w %{space_name}"
|
43
54
|
last_activity:
|
44
55
|
new_post_at_html: "<span>Nowy wpis na %{link}</span>"
|
45
56
|
models:
|
@@ -48,7 +59,11 @@ pl:
|
|
48
59
|
author: Autor
|
49
60
|
body: Treść
|
50
61
|
created_at: Utworzono
|
62
|
+
official_blog_post: Oficjalny post
|
63
|
+
title: Tytuł posta
|
51
64
|
posts:
|
65
|
+
index:
|
66
|
+
empty: Nie ma tu jeszcze żadnych wpisów.
|
52
67
|
show:
|
53
68
|
back: Powrót do listy
|
54
69
|
comments: Komentarze
|
@@ -59,6 +74,12 @@ pl:
|
|
59
74
|
read_more: Czytaj więcej
|
60
75
|
components:
|
61
76
|
blogs:
|
77
|
+
actions:
|
78
|
+
comment: Skomentuj
|
79
|
+
create: Utwórz
|
80
|
+
destroy: Usuń
|
81
|
+
endorse: Rekomenduj
|
82
|
+
update: Aktualizuj
|
62
83
|
name: Blog
|
63
84
|
settings:
|
64
85
|
global:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -44,6 +44,11 @@ pt-BR:
|
|
44
44
|
update:
|
45
45
|
invalid: Falha ao salvar o post.
|
46
46
|
success: Post salvo com sucesso
|
47
|
+
admin_log:
|
48
|
+
post:
|
49
|
+
create: "%{user_name} criou a publicação no blog %{resource_name} do %{space_name}"
|
50
|
+
delete: "O %{user_name} excluiu a publicação no blog %{resource_name} do %{space_name}"
|
51
|
+
update: "%{user_name} atualizou a publicação no blog %{resource_name} do %{space_name}"
|
47
52
|
last_activity:
|
48
53
|
new_post_at_html: "<span>Nova postagem em %{link}</span>"
|
49
54
|
models:
|
@@ -55,6 +60,8 @@ pt-BR:
|
|
55
60
|
official_blog_post: Publicação oficial
|
56
61
|
title: Título
|
57
62
|
posts:
|
63
|
+
index:
|
64
|
+
empty: Não existem publicações ainda.
|
58
65
|
show:
|
59
66
|
back: Voltar para a lista
|
60
67
|
comments: Comentários
|
@@ -69,6 +76,8 @@ pt-BR:
|
|
69
76
|
comment: Comentário
|
70
77
|
create: Criar
|
71
78
|
destroy: Excluir
|
79
|
+
endorse: Endossar
|
80
|
+
update: Atualizar
|
72
81
|
name: Blog
|
73
82
|
settings:
|
74
83
|
global:
|
data/config/locales/pt.yml
CHANGED
data/config/locales/ru.yml
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
---
|
2
2
|
ru:
|
3
3
|
activemodel:
|
4
|
+
attributes:
|
5
|
+
post:
|
6
|
+
body: Основной текст
|
7
|
+
decidim_author_id: Автор
|
8
|
+
published_at: Время публикации
|
9
|
+
title: Заголовок
|
4
10
|
models:
|
5
11
|
decidim/blogs/create_post_event: Создать пост в блоге
|
6
12
|
activerecord:
|
@@ -13,6 +19,7 @@ ru:
|
|
13
19
|
decidim:
|
14
20
|
blogs:
|
15
21
|
actions:
|
22
|
+
author_id: Создать пост как
|
16
23
|
confirm_destroy: Вы действительно хотите удалить этот пост?
|
17
24
|
destroy: Удалить
|
18
25
|
edit: Редактировать
|
@@ -30,6 +37,7 @@ ru:
|
|
30
37
|
success: Пост успешно удален
|
31
38
|
edit:
|
32
39
|
save: Обновить
|
40
|
+
title: Изменить пост
|
33
41
|
index:
|
34
42
|
title: Посты
|
35
43
|
new:
|
@@ -38,6 +46,11 @@ ru:
|
|
38
46
|
update:
|
39
47
|
invalid: При попытке сохранить пост произошли ошибки.
|
40
48
|
success: Пост успешно сохранен
|
49
|
+
admin_log:
|
50
|
+
post:
|
51
|
+
create: "%{user_name} создал пост %{resource_name} в %{space_name}"
|
52
|
+
delete: "%{user_name} удалил пост %{resource_name} в %{space_name}"
|
53
|
+
update: "%{user_name} обновил пост %{resource_name} в %{space_name}"
|
41
54
|
last_activity:
|
42
55
|
new_post_at_html: "<span>Новый пост по ссылке %{link}</span>"
|
43
56
|
models:
|
@@ -46,8 +59,11 @@ ru:
|
|
46
59
|
author: Автор
|
47
60
|
body: Основной текст
|
48
61
|
created_at: 'Создано:'
|
62
|
+
title: Название
|
49
63
|
posts:
|
50
64
|
show:
|
65
|
+
back: Назад к списку
|
66
|
+
comments: Комментарии
|
51
67
|
view: Посмотреть
|
52
68
|
sidebar_blog:
|
53
69
|
comments: комментарии
|
@@ -55,14 +71,23 @@ ru:
|
|
55
71
|
read_more: Читать подробнее
|
56
72
|
components:
|
57
73
|
blogs:
|
74
|
+
actions:
|
75
|
+
comment: Комментарий
|
76
|
+
create: Создать
|
77
|
+
destroy: Удалить
|
78
|
+
endorse: Поддержать
|
79
|
+
update: Обновить
|
58
80
|
name: Блог
|
59
81
|
settings:
|
60
82
|
global:
|
61
83
|
announcement: Объявление
|
62
84
|
comments_enabled: Комментарии включены
|
85
|
+
comments_max_length: Максимальная длина комментариев (оставьте 0 для значения по умолчанию)
|
63
86
|
step:
|
64
87
|
announcement: Объявление
|
65
88
|
comments_blocked: Комментарии отключены
|
89
|
+
endorsements_blocked: Возможность выразить поддержку отключена
|
90
|
+
endorsements_enabled: Возможность выразить поддержку включена
|
66
91
|
events:
|
67
92
|
blogs:
|
68
93
|
post_created:
|
@@ -70,3 +95,5 @@ ru:
|
|
70
95
|
email_outro: Вы получили это уведомление, потому что вы следите за «%{participatory_space_title}». Вы можете перестать за ним следить, перейдя по приведенной выше ссылке.
|
71
96
|
email_subject: В %{participatory_space_title} обнародован новый пост
|
72
97
|
notification_title: В %{participatory_space_title} был обнародован пост <a href="%{resource_path}">%{resource_title}</a>
|
98
|
+
statistics:
|
99
|
+
posts_count: Посты
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
sq:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
post:
|
6
|
+
body: Përmbajtja
|
7
|
+
decidim_author_id: Autor
|
8
|
+
published_at: Koha e publikimit
|
9
|
+
title: Titulli
|
10
|
+
models:
|
11
|
+
decidim/blogs/create_post_event: Postim i ri
|
12
|
+
activerecord:
|
13
|
+
models:
|
14
|
+
decidim/blogs/post:
|
15
|
+
one: Postim
|
16
|
+
other: Postimet
|
17
|
+
decidim:
|
18
|
+
blogs:
|
19
|
+
actions:
|
20
|
+
author_id: Krijo postimin si
|
21
|
+
confirm_destroy: Je i sigurt që dëshiron ta fshish këtë postim?
|
22
|
+
destroy: Fshij
|
23
|
+
edit: Përpuno
|
24
|
+
new: Postim i ri
|
25
|
+
title: Veprime
|
26
|
+
admin:
|
27
|
+
posts:
|
28
|
+
edit:
|
29
|
+
save: Përditëso
|
30
|
+
title: Përpuno postimin
|
31
|
+
index:
|
32
|
+
title: Postimet
|
33
|
+
new:
|
34
|
+
create: Krijo
|
35
|
+
title: Krijo postimin
|
36
|
+
update:
|
37
|
+
invalid: Ndodhi një problem gjatë krijimit të këtij postimi.
|
38
|
+
admin_log:
|
39
|
+
post:
|
40
|
+
create: "%{user_name} krijoi postimin %{resource_name} në %{space_name}"
|
41
|
+
delete: "%{user_name} fshiu postimin %{resource_name} nga %{space_name}"
|
42
|
+
update: "%{user_name} përditësoi postimin %{resource_name} në %{space_name}"
|
43
|
+
models:
|
44
|
+
post:
|
45
|
+
fields:
|
46
|
+
author: Autor
|
47
|
+
body: Përmbajtja
|
48
|
+
official_blog_post: Postimi zyrtar
|
49
|
+
title: Titulli
|
50
|
+
posts:
|
51
|
+
index:
|
52
|
+
empty: Nuk ka ende postime.
|
53
|
+
components:
|
54
|
+
blogs:
|
55
|
+
actions:
|
56
|
+
comment: Koment
|
57
|
+
create: Krijo
|
58
|
+
destroy: Fshij
|
59
|
+
endorse: Mirato
|
60
|
+
update: Përditëso
|
61
|
+
name: Blog
|
62
|
+
settings:
|
63
|
+
global:
|
64
|
+
announcement: Njoftim
|
65
|
+
comments_enabled: Komentet janë aktivizuar
|
66
|
+
comments_max_length: Gjatësia maksimale e komenteve (Lëre 0 për vlerën e paracaktuar)
|
67
|
+
step:
|
68
|
+
announcement: Njoftim
|
69
|
+
comments_blocked: Komentet të bllokuara
|
70
|
+
endorsements_blocked: Mbështetjet të bllokuara
|
71
|
+
endorsements_enabled: Mbështetjet të aktivizuara
|
72
|
+
events:
|
73
|
+
blogs:
|
74
|
+
post_created:
|
75
|
+
email_intro: Postimi "%{resource_title}" është publikuar në "%{participatory_space_title}" që ju po ndiqni.
|
76
|
+
email_outro: Ju e keni marrë këtë njoftim sepse po ndiqni %{participatory_space_title}. Mund t'i ndaloni njoftimet me anë të linkut të mëparshëm.
|
77
|
+
email_subject: Postimi i ri i publikuar në %{participatory_space_title}
|
78
|
+
notification_title: Postimi <a href="%{resource_path}">%{resource_title}</a> është publikuar në %{participatory_space_title}
|
79
|
+
statistics:
|
80
|
+
posts_count: Postimet
|
data/config/locales/sv.yml
CHANGED
@@ -3,6 +3,7 @@ sv:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
post:
|
6
|
+
body: Innehåll
|
6
7
|
decidim_author_id: Författare
|
7
8
|
title: Titel
|
8
9
|
models:
|
@@ -64,8 +65,10 @@ sv:
|
|
64
65
|
components:
|
65
66
|
blogs:
|
66
67
|
actions:
|
68
|
+
comment: Kommentera
|
67
69
|
create: Skapa
|
68
70
|
destroy: Radera
|
71
|
+
endorse: Instäm
|
69
72
|
update: Uppdatera
|
70
73
|
name: Blogg
|
71
74
|
settings:
|
@@ -0,0 +1 @@
|
|
1
|
+
th:
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
# Maintain your gem's version:
|
6
|
+
require "decidim/blogs/version"
|
7
|
+
|
8
|
+
# Describe your gem and declare its dependencies:
|
9
|
+
Gem::Specification.new do |s|
|
10
|
+
s.version = Decidim::Blogs.version
|
11
|
+
s.authors = ["Isaac Massot Gil"]
|
12
|
+
s.email = ["isaac.mg@coditramuntana.com"]
|
13
|
+
s.license = "AGPL-3.0"
|
14
|
+
s.homepage = "https://github.com/decidim/decidim"
|
15
|
+
s.required_ruby_version = "~> 3.0.0"
|
16
|
+
|
17
|
+
s.name = "decidim-blogs"
|
18
|
+
s.summary = "Decidim blogs module"
|
19
|
+
s.description = "A Blog component for decidim's participatory spaces."
|
20
|
+
|
21
|
+
s.files = Dir.chdir(__dir__) do
|
22
|
+
`git ls-files -z`.split("\x0").select do |f|
|
23
|
+
(File.expand_path(f) == __FILE__) ||
|
24
|
+
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
s.add_dependency "decidim-admin", Decidim::Blogs.version
|
29
|
+
s.add_dependency "decidim-comments", Decidim::Blogs.version
|
30
|
+
s.add_dependency "decidim-core", Decidim::Blogs.version
|
31
|
+
|
32
|
+
s.add_development_dependency "decidim-admin", Decidim::Blogs.version
|
33
|
+
s.add_development_dependency "decidim-assemblies", Decidim::Blogs.version
|
34
|
+
s.add_development_dependency "decidim-dev", Decidim::Blogs.version
|
35
|
+
s.add_development_dependency "decidim-participatory_processes", Decidim::Blogs.version
|
36
|
+
end
|
@@ -23,7 +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:
|
26
|
+
settings.attribute :comments_max_length, type: :integer, required: true
|
27
27
|
end
|
28
28
|
|
29
29
|
component.settings(:step) do |settings|
|
@@ -6,21 +6,32 @@ require "decidim/participatory_processes/test/factories"
|
|
6
6
|
|
7
7
|
FactoryBot.define do
|
8
8
|
factory :post_component, parent: :component do
|
9
|
-
|
9
|
+
transient do
|
10
|
+
skip_injection { false }
|
11
|
+
end
|
12
|
+
|
13
|
+
name { generate_component_name(participatory_space.organization.available_locales, :blogs, skip_injection: skip_injection) }
|
10
14
|
manifest_name { :blogs }
|
11
|
-
participatory_space { create(:participatory_process, :with_steps, organization: organization) }
|
15
|
+
participatory_space { create(:participatory_process, :with_steps, skip_injection: skip_injection, organization: organization) }
|
12
16
|
end
|
13
17
|
|
14
18
|
factory :post, class: "Decidim::Blogs::Post" do
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
+
transient do
|
20
|
+
skip_injection { false }
|
21
|
+
end
|
22
|
+
|
23
|
+
title { generate_localized_title(:blog_title, skip_injection: skip_injection) }
|
24
|
+
body { generate_localized_description(:blog_body, skip_injection: skip_injection) }
|
25
|
+
component { build(:post_component, skip_injection: skip_injection) }
|
26
|
+
author { build(:user, :confirmed, skip_injection: skip_injection, organization: component.organization) }
|
19
27
|
|
20
28
|
trait :with_endorsements do
|
21
|
-
after :create do |post|
|
29
|
+
after :create do |post, evaluator|
|
22
30
|
5.times.collect do
|
23
|
-
create(:endorsement,
|
31
|
+
create(:endorsement,
|
32
|
+
resource: post,
|
33
|
+
skip_injection: evaluator.skip_injection,
|
34
|
+
author: build(:user, skip_injection: evaluator.skip_injection, organization: post.participatory_space.organization))
|
24
35
|
end
|
25
36
|
end
|
26
37
|
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.27.
|
4
|
+
version: 0.27.6
|
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:
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,98 +16,98 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.27.
|
19
|
+
version: 0.27.6
|
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.27.
|
26
|
+
version: 0.27.6
|
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.27.
|
33
|
+
version: 0.27.6
|
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.27.
|
40
|
+
version: 0.27.6
|
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.27.
|
47
|
+
version: 0.27.6
|
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.27.
|
54
|
+
version: 0.27.6
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-admin
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.27.
|
61
|
+
version: 0.27.6
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.27.
|
68
|
+
version: 0.27.6
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: decidim-assemblies
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.27.
|
75
|
+
version: 0.27.6
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.27.
|
82
|
+
version: 0.27.6
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: decidim-dev
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.27.
|
89
|
+
version: 0.27.6
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.27.
|
96
|
+
version: 0.27.6
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: decidim-participatory_processes
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.27.
|
103
|
+
version: 0.27.6
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.27.
|
110
|
+
version: 0.27.6
|
111
111
|
description: A Blog component for decidim's participatory spaces.
|
112
112
|
email:
|
113
113
|
- isaac.mg@coditramuntana.com
|
@@ -152,7 +152,6 @@ files:
|
|
152
152
|
- app/views/decidim/blogs/posts/index.html.erb
|
153
153
|
- app/views/decidim/blogs/posts/show.html.erb
|
154
154
|
- config/assets.rb
|
155
|
-
- config/environment.rb
|
156
155
|
- config/locales/am-ET.yml
|
157
156
|
- config/locales/ar-SA.yml
|
158
157
|
- config/locales/ar.yml
|
@@ -185,6 +184,7 @@ files:
|
|
185
184
|
- config/locales/ga-IE.yml
|
186
185
|
- config/locales/gl.yml
|
187
186
|
- config/locales/gn-PY.yml
|
187
|
+
- config/locales/he-IL.yml
|
188
188
|
- config/locales/hr-HR.yml
|
189
189
|
- config/locales/hr.yml
|
190
190
|
- config/locales/hu.yml
|
@@ -219,9 +219,11 @@ files:
|
|
219
219
|
- config/locales/sk.yml
|
220
220
|
- config/locales/sl.yml
|
221
221
|
- config/locales/so-SO.yml
|
222
|
+
- config/locales/sq-AL.yml
|
222
223
|
- config/locales/sr-CS.yml
|
223
224
|
- config/locales/sv.yml
|
224
225
|
- config/locales/sw-KE.yml
|
226
|
+
- config/locales/th-TH.yml
|
225
227
|
- config/locales/ti-ER.yml
|
226
228
|
- config/locales/tr-TR.yml
|
227
229
|
- config/locales/uk.yml
|
@@ -238,6 +240,7 @@ files:
|
|
238
240
|
- db/migrate/20200320105910_index_foreign_keys_in_decidim_blogs_posts.rb
|
239
241
|
- db/migrate/20200827153709_add_commentable_counter_cache_to_posts.rb
|
240
242
|
- db/migrate/20210310120514_add_followable_counter_cache_to_blogs.rb
|
243
|
+
- decidim-blogs.gemspec
|
241
244
|
- lib/decidim/api/blogs_type.rb
|
242
245
|
- lib/decidim/api/post_input_filter.rb
|
243
246
|
- lib/decidim/api/post_input_sort.rb
|
@@ -254,15 +257,15 @@ homepage: https://github.com/decidim/decidim
|
|
254
257
|
licenses:
|
255
258
|
- AGPL-3.0
|
256
259
|
metadata: {}
|
257
|
-
post_install_message:
|
260
|
+
post_install_message:
|
258
261
|
rdoc_options: []
|
259
262
|
require_paths:
|
260
263
|
- lib
|
261
264
|
required_ruby_version: !ruby/object:Gem::Requirement
|
262
265
|
requirements:
|
263
|
-
- - "
|
266
|
+
- - "~>"
|
264
267
|
- !ruby/object:Gem::Version
|
265
|
-
version:
|
268
|
+
version: 3.0.0
|
266
269
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
270
|
requirements:
|
268
271
|
- - ">="
|
@@ -270,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
273
|
version: '0'
|
271
274
|
requirements: []
|
272
275
|
rubygems_version: 3.2.22
|
273
|
-
signing_key:
|
276
|
+
signing_key:
|
274
277
|
specification_version: 4
|
275
278
|
summary: Decidim blogs module
|
276
279
|
test_files: []
|
data/config/environment.rb
DELETED
File without changes
|