decidim-blogs 0.26.2 → 0.27.0.rc2
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.
- checksums.yaml +4 -4
- data/app/commands/decidim/blogs/admin/create_post.rb +1 -1
- data/app/commands/decidim/blogs/admin/update_post.rb +6 -3
- data/app/controllers/decidim/blogs/admin/posts_controller.rb +6 -2
- data/app/forms/decidim/blogs/admin/post_form.rb +27 -7
- data/app/helpers/decidim/blogs/admin/posts_helper.rb +15 -0
- data/app/models/decidim/blogs/post.rb +9 -1
- data/app/presenters/decidim/blogs/admin_log/post_presenter.rb +36 -0
- data/app/presenters/decidim/blogs/official_author_presenter.rb +14 -0
- data/app/presenters/decidim/blogs/post_presenter.rb +7 -1
- data/app/views/decidim/blogs/admin/posts/_form.html.erb +3 -3
- data/app/views/decidim/blogs/posts/_posts.html.erb +2 -1
- data/app/views/decidim/blogs/posts/show.html.erb +3 -1
- data/config/locales/ar.yml +2 -1
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +8 -1
- data/config/locales/cs.yml +8 -1
- data/config/locales/de.yml +8 -1
- data/config/locales/el.yml +2 -1
- data/config/locales/en.yml +7 -1
- data/config/locales/es-MX.yml +8 -1
- data/config/locales/es-PY.yml +8 -1
- data/config/locales/es.yml +8 -1
- data/config/locales/eu.yml +2 -1
- data/config/locales/fi-plain.yml +8 -1
- data/config/locales/fi.yml +8 -1
- data/config/locales/fr-CA.yml +8 -1
- data/config/locales/fr.yml +8 -1
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +2 -1
- data/config/locales/hu.yml +16 -0
- data/config/locales/id-ID.yml +1 -0
- data/config/locales/is-IS.yml +2 -1
- data/config/locales/it.yml +2 -1
- data/config/locales/ja.yml +8 -1
- data/config/locales/lb.yml +2 -1
- data/config/locales/lt.yml +93 -0
- data/config/locales/lv.yml +1 -0
- data/config/locales/nl.yml +12 -5
- data/config/locales/no.yml +2 -1
- data/config/locales/pl.yml +2 -1
- data/config/locales/pt-BR.yml +2 -1
- data/config/locales/pt.yml +2 -1
- data/config/locales/ro-RO.yml +2 -1
- data/config/locales/ru.yml +1 -0
- data/config/locales/sk.yml +1 -0
- data/config/locales/sl.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +3 -1
- data/config/locales/tr-TR.yml +1 -0
- data/config/locales/uk.yml +1 -0
- data/config/locales/zh-CN.yml +1 -0
- data/lib/decidim/blogs/component.rb +8 -2
- data/lib/decidim/blogs/version.rb +1 -1
- metadata +22 -20
data/config/locales/fi.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
fi:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ fi:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Luo artikkeli käyttäjänä
|
13
15
|
confirm_destroy: Haluatko varmasti poistaa tämän artikkelin?
|
14
16
|
destroy: Poista
|
15
17
|
edit: Muokkaa
|
16
18
|
new: Uusi artikkeli
|
17
19
|
title: Toiminnot
|
18
|
-
user_group_id: Luo artikkeli käyttäjänä
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
@@ -39,6 +40,11 @@ fi:
|
|
39
40
|
update:
|
40
41
|
invalid: Artikkelin tallennus epäonnistui.
|
41
42
|
success: Artikkeli tallennus onnistui
|
43
|
+
admin_log:
|
44
|
+
post:
|
45
|
+
create: "%{user_name} loi blogikirjoituksen %{resource_name} tilassa %{space_name}"
|
46
|
+
delete: "%{user_name} poisti blogikirjoituksen %{resource_name} tilasta %{space_name}"
|
47
|
+
update: "%{user_name} päivitti blogikirjoitusta %{resource_name} tilassa %{space_name}"
|
42
48
|
last_activity:
|
43
49
|
new_post_at_html: "<span>Uusi artikkeli osoitteessa %{link}</span>"
|
44
50
|
models:
|
@@ -47,6 +53,7 @@ fi:
|
|
47
53
|
author: Laatija
|
48
54
|
body: Leipäteksti
|
49
55
|
created_at: Luotu
|
56
|
+
official_blog_post: Virallinen artikkeli
|
50
57
|
title: otsikko
|
51
58
|
posts:
|
52
59
|
show:
|
data/config/locales/fr-CA.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
fr-CA:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ fr-CA:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Créer un article comme
|
13
15
|
confirm_destroy: Êtes-vous certain de vouloir supprimer cet article ?
|
14
16
|
destroy: Supprimer
|
15
17
|
edit: Modifier
|
16
18
|
new: Nouvel article
|
17
19
|
title: Actions
|
18
|
-
user_group_id: Créer un article comme
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
@@ -39,6 +40,11 @@ fr-CA:
|
|
39
40
|
update:
|
40
41
|
invalid: Il y a eu des erreurs lors de l'enregistrement de l'article.
|
41
42
|
success: Article enregistré avec succès
|
43
|
+
admin_log:
|
44
|
+
post:
|
45
|
+
create: "%{user_name} a créé l'article de blog %{resource_name} dans %{space_name}"
|
46
|
+
delete: "%{user_name} a supprimé l'article de blog %{resource_name} dans %{space_name}"
|
47
|
+
update: "%{user_name} a mis à jour l'article de blog %{resource_name} dans %{space_name}"
|
42
48
|
last_activity:
|
43
49
|
new_post_at_html: "<span>Nouvel article à %{link}</span>"
|
44
50
|
models:
|
@@ -47,6 +53,7 @@ fr-CA:
|
|
47
53
|
author: Auteur
|
48
54
|
body: Corps du texte
|
49
55
|
created_at: Créé à
|
56
|
+
official_blog_post: Article officiel
|
50
57
|
title: titre
|
51
58
|
posts:
|
52
59
|
show:
|
data/config/locales/fr.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
fr:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ fr:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Créer un article en tant que
|
13
15
|
confirm_destroy: Êtes-vous certain de vouloir supprimer cet article ?
|
14
16
|
destroy: Supprimer
|
15
17
|
edit: Modifier
|
16
18
|
new: Nouvel article
|
17
19
|
title: Actions
|
18
|
-
user_group_id: Créer un article en tant que
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
@@ -39,6 +40,11 @@ fr:
|
|
39
40
|
update:
|
40
41
|
invalid: Il y a eu des erreurs lors de l'enregistrement de l'article.
|
41
42
|
success: Article enregistré avec succès
|
43
|
+
admin_log:
|
44
|
+
post:
|
45
|
+
create: "%{user_name} a créé l'article de blog %{resource_name} dans %{space_name}"
|
46
|
+
delete: "%{user_name} a supprimé l'article de blog %{resource_name} dans %{space_name}"
|
47
|
+
update: "%{user_name} a mis à jour l'article de blog %{resource_name} dans %{space_name}"
|
42
48
|
last_activity:
|
43
49
|
new_post_at_html: "<span>Nouvel article à %{link}</span>"
|
44
50
|
models:
|
@@ -47,6 +53,7 @@ fr:
|
|
47
53
|
author: Auteur
|
48
54
|
body: Corps du texte
|
49
55
|
created_at: Créé à
|
56
|
+
official_blog_post: Article officiel
|
50
57
|
title: titre
|
51
58
|
posts:
|
52
59
|
show:
|
data/config/locales/ga-IE.yml
CHANGED
data/config/locales/gl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
gl:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ gl:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Crear publicación como
|
13
15
|
confirm_destroy: Tes a certeza de querer eliminar esta publicación?
|
14
16
|
destroy: Eliminar
|
15
17
|
edit: Editar
|
16
18
|
new: Nova publicación
|
17
19
|
title: Accións
|
18
|
-
user_group_id: Crear publicación como
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/hu.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
hu:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,6 +11,7 @@ hu:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Bejegyzés létrehozása
|
13
15
|
confirm_destroy: Biztos, hogy törlöd ezt a bejegyzést?
|
14
16
|
destroy: Törlés
|
15
17
|
edit: Szerkesztés
|
@@ -29,6 +31,7 @@ hu:
|
|
29
31
|
success: Bejegyzés törlése sikeres
|
30
32
|
edit:
|
31
33
|
save: Frissítés
|
34
|
+
title: Bejegyzés szerkesztése
|
32
35
|
index:
|
33
36
|
title: Bejegyzések
|
34
37
|
new:
|
@@ -37,6 +40,11 @@ hu:
|
|
37
40
|
update:
|
38
41
|
invalid: Hiba történt a bejegyzés mentése során.
|
39
42
|
success: Bejegyzés mentése sikeres
|
43
|
+
admin_log:
|
44
|
+
post:
|
45
|
+
create: "%{user_name} létrehozta a(z) %{resource_name} blogposztot itt: %{space_name}"
|
46
|
+
delete: "%{user_name} törölte a(z) %{resource_name} blogposztot itt: %{space_name}"
|
47
|
+
update: "%{user_name} frissítette a(z) %{resource_name} blogposztot itt: %{space_name}"
|
40
48
|
last_activity:
|
41
49
|
new_post_at_html: "<span>Új hozzászólás %{link}</span>kor"
|
42
50
|
models:
|
@@ -45,6 +53,7 @@ hu:
|
|
45
53
|
author: Szerző
|
46
54
|
body: Szöveg
|
47
55
|
created_at: 'Létrehozva:'
|
56
|
+
official_blog_post: Hivatalos bejegyzés
|
48
57
|
title: cím
|
49
58
|
posts:
|
50
59
|
show:
|
@@ -57,11 +66,16 @@ hu:
|
|
57
66
|
read_more: Bővebben
|
58
67
|
components:
|
59
68
|
blogs:
|
69
|
+
actions:
|
70
|
+
create: Létrehozás
|
71
|
+
destroy: Törlés
|
72
|
+
update: Frissítés
|
60
73
|
name: Blog
|
61
74
|
settings:
|
62
75
|
global:
|
63
76
|
announcement: Közlemény
|
64
77
|
comments_enabled: Megjegyzések engedélyezve
|
78
|
+
comments_max_length: Kommentek maximális hossza (Hagyjon 0 -t az alapértékhez)
|
65
79
|
step:
|
66
80
|
announcement: Közlemény
|
67
81
|
comments_blocked: Megjegyzések letiltva
|
@@ -74,3 +88,5 @@ hu:
|
|
74
88
|
email_outro: 'Ezt az értesítést azért kaptad, mert ezt követed: "%{participatory_space_title}". Leiratkozás az előző link segítségével.'
|
75
89
|
email_subject: 'Új bejegyzés ehhez: %{participatory_space_title}'
|
76
90
|
notification_title: 'A(z) <a href="%{resource_path}">%{resource_title}</a> bejegyzés közzétéve itt: %{participatory_space_title}'
|
91
|
+
statistics:
|
92
|
+
posts_count: Bejegyzések
|
data/config/locales/id-ID.yml
CHANGED
data/config/locales/is-IS.yml
CHANGED
data/config/locales/it.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
it:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ it:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Crea post come
|
13
15
|
confirm_destroy: Sei sicuro di voler eliminare questo post?
|
14
16
|
destroy: Elimina
|
15
17
|
edit: Modifica
|
16
18
|
new: Nuovo post
|
17
19
|
title: Azioni
|
18
|
-
user_group_id: Crea post come
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/ja.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ja:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -9,12 +10,12 @@ ja:
|
|
9
10
|
decidim:
|
10
11
|
blogs:
|
11
12
|
actions:
|
13
|
+
author_id: 次のように投稿を作成
|
12
14
|
confirm_destroy: この投稿を削除してもよろしいですか?
|
13
15
|
destroy: 削除
|
14
16
|
edit: 編集
|
15
17
|
new: 新規投稿
|
16
18
|
title: アクション
|
17
|
-
user_group_id: 次のように投稿を作成
|
18
19
|
admin:
|
19
20
|
models:
|
20
21
|
components:
|
@@ -38,6 +39,11 @@ ja:
|
|
38
39
|
update:
|
39
40
|
invalid: 投稿の保存中に問題が発生しました。
|
40
41
|
success: 投稿を保存しました
|
42
|
+
admin_log:
|
43
|
+
post:
|
44
|
+
create: "%{user_name} が %{space_name} でブログ投稿 %{resource_name} を作成しました"
|
45
|
+
delete: "%{user_name} がブログ投稿 %{resource_name} を %{space_name} から削除しました"
|
46
|
+
update: "%{user_name} が %{space_name} のブログ投稿 %{resource_name} を更新しました"
|
41
47
|
last_activity:
|
42
48
|
new_post_at_html: "<span> %{link}に新しい投稿</span>"
|
43
49
|
models:
|
@@ -46,6 +52,7 @@ ja:
|
|
46
52
|
author: 作成者
|
47
53
|
body: 本文
|
48
54
|
created_at: 作成日時
|
55
|
+
official_blog_post: 公式ポスト
|
49
56
|
title: タイトル
|
50
57
|
posts:
|
51
58
|
show:
|
data/config/locales/lb.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
lb:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ lb:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Beitrag erstellen als
|
13
15
|
confirm_destroy: Möchten Sie diesen Beitrag wirklich löschen?
|
14
16
|
destroy: Löschen
|
15
17
|
edit: Bearbeiten
|
16
18
|
new: Neuer Beitrag
|
17
19
|
title: Aktionen
|
18
|
-
user_group_id: Beitrag erstellen als
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/lt.yml
CHANGED
@@ -1 +1,94 @@
|
|
1
|
+
---
|
1
2
|
lt:
|
3
|
+
activemodel:
|
4
|
+
models:
|
5
|
+
decidim/blogs/create_post_event: Naujas tinklaraščio įrašas
|
6
|
+
activerecord:
|
7
|
+
models:
|
8
|
+
decidim/blogs/post:
|
9
|
+
one: Publikacija
|
10
|
+
few: Publikacijos
|
11
|
+
many: Publikacijos
|
12
|
+
other: Publikacijos
|
13
|
+
decidim:
|
14
|
+
blogs:
|
15
|
+
actions:
|
16
|
+
author_id: Sukurti įrašą kaip
|
17
|
+
confirm_destroy: Ar tikrai norite ištrinti šį įrašą?
|
18
|
+
destroy: Ištrinti
|
19
|
+
edit: Redaguoti
|
20
|
+
new: Naujas įrašas
|
21
|
+
title: Veiksmai
|
22
|
+
admin:
|
23
|
+
models:
|
24
|
+
components:
|
25
|
+
body: Pagrindinė dalis
|
26
|
+
post:
|
27
|
+
name: Publikacija
|
28
|
+
posts:
|
29
|
+
create:
|
30
|
+
invalid: Kuriant šį įrašą iškilo problema
|
31
|
+
success: Įrašas sukurtas sėkmingai
|
32
|
+
destroy:
|
33
|
+
success: Įrašas pašalintas
|
34
|
+
edit:
|
35
|
+
save: Atnaujinimas
|
36
|
+
title: Redaguoti publikaciją
|
37
|
+
index:
|
38
|
+
title: Publikacijos
|
39
|
+
new:
|
40
|
+
create: Sukurti
|
41
|
+
title: Sukurti publikaciją
|
42
|
+
update:
|
43
|
+
invalid: Išsaugant šį įrašą iškilo problema.
|
44
|
+
success: Įrašas išsaugotas
|
45
|
+
admin_log:
|
46
|
+
post:
|
47
|
+
create: "%{user_name} sukūrė %{resource_name} tinklaraščio įrašą %{space_name}"
|
48
|
+
delete: "%{user_name} ištrynė %{resource_name} tinklaraščio įrašą iš %{space_name}"
|
49
|
+
update: "%{user_name} atnaujino %{resource_name} tinklaraščio įrašą %{space_name}"
|
50
|
+
last_activity:
|
51
|
+
new_post_at_html: "<span> Naujas įrašas %{link}</span>"
|
52
|
+
models:
|
53
|
+
post:
|
54
|
+
fields:
|
55
|
+
author: Autorė(-ius)
|
56
|
+
body: Pagrindinė dalis
|
57
|
+
created_at: Sukurta
|
58
|
+
official_blog_post: Oficiali publikacija
|
59
|
+
title: pavadinimas
|
60
|
+
posts:
|
61
|
+
show:
|
62
|
+
back: Grįžti į sąrašą
|
63
|
+
comments: Komentarai
|
64
|
+
view: Peržiūrėti
|
65
|
+
sidebar_blog:
|
66
|
+
comments: komentarai
|
67
|
+
most_commented_posts: Labiausiai komentuojamos publikacijos
|
68
|
+
read_more: Skaityti daugiau
|
69
|
+
components:
|
70
|
+
blogs:
|
71
|
+
actions:
|
72
|
+
create: Sukurti
|
73
|
+
destroy: Ištrinti
|
74
|
+
update: Atnaujinti
|
75
|
+
name: Tinklaraštis
|
76
|
+
settings:
|
77
|
+
global:
|
78
|
+
announcement: Pranešimas
|
79
|
+
comments_enabled: Komentarai įjungti
|
80
|
+
comments_max_length: Maksimalus komentaro ilgis (įrašyti 0 įprastam ilgiui)
|
81
|
+
step:
|
82
|
+
announcement: Pranešimas
|
83
|
+
comments_blocked: Komentarai užblokuoti
|
84
|
+
endorsements_blocked: Pritarimai užblokuoti
|
85
|
+
endorsements_enabled: Pritarimai aktyvuoti
|
86
|
+
events:
|
87
|
+
blogs:
|
88
|
+
post_created:
|
89
|
+
email_intro: Publikacija%{resource_title} buvo publikuota %{participatory_space_title} kurią sekate.
|
90
|
+
email_outro: Gavote šį pranešimą nes sekate %{participatory_space_title}. Galite nebesekti dėka praėjusios nuorodos.
|
91
|
+
email_subject: Nauja publikacija paskelbta %{participatory_space_title}
|
92
|
+
notification_title: Publikacija <a href="%{resource_path}">%{resource_title}</a> buvo publikuota %{participatory_space_title}
|
93
|
+
statistics:
|
94
|
+
posts_count: Publikacijos
|
data/config/locales/lv.yml
CHANGED
data/config/locales/nl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
nl:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -6,16 +7,16 @@ nl:
|
|
6
7
|
models:
|
7
8
|
decidim/blogs/post:
|
8
9
|
one: Post
|
9
|
-
other:
|
10
|
+
other: Posts
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Bericht aanmaken als
|
13
15
|
confirm_destroy: Weet je zeker dat je dit bericht wilt verwijderen?
|
14
16
|
destroy: Verwijder
|
15
17
|
edit: Bewerk
|
16
|
-
new:
|
18
|
+
new: Nieuwe blogpost
|
17
19
|
title: acties
|
18
|
-
user_group_id: Bericht aanmaken als
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
@@ -37,8 +38,13 @@ nl:
|
|
37
38
|
create: creëren
|
38
39
|
title: Maak bericht
|
39
40
|
update:
|
40
|
-
invalid: Er zijn fouten opgetreden bij het opslaan van
|
41
|
-
success:
|
41
|
+
invalid: Er zijn fouten opgetreden bij het opslaan van deze blogpost.
|
42
|
+
success: Post succesvol opgeslagen
|
43
|
+
admin_log:
|
44
|
+
post:
|
45
|
+
create: "%{user_name} heeft de %{resource_name} blog gemaakt in %{space_name}"
|
46
|
+
delete: "%{user_name} heeft de %{resource_name} blog verwijderd in %{space_name}"
|
47
|
+
update: "%{user_name} heeft de %{resource_name} blog bijgewerkt in %{space_name}"
|
42
48
|
last_activity:
|
43
49
|
new_post_at_html: "<span>Nieuw bericht op %{link}</span>"
|
44
50
|
models:
|
@@ -47,6 +53,7 @@ nl:
|
|
47
53
|
author: Auteur
|
48
54
|
body: Tekstgedeelte
|
49
55
|
created_at: Aangemaakt op
|
56
|
+
official_blog_post: Officiële blogpost
|
50
57
|
title: titel
|
51
58
|
posts:
|
52
59
|
show:
|
data/config/locales/no.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
"no":
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Opprett innlegg som
|
13
15
|
confirm_destroy: Er du sikker på at du vil slette dette innlegget?
|
14
16
|
destroy: Slett
|
15
17
|
edit: Editar
|
16
18
|
new: Nytt innlegg
|
17
19
|
title: Handlinger
|
18
|
-
user_group_id: Opprett innlegg som
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/pl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pl:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -12,12 +13,12 @@ pl:
|
|
12
13
|
decidim:
|
13
14
|
blogs:
|
14
15
|
actions:
|
16
|
+
author_id: Utwórz wpis jako
|
15
17
|
confirm_destroy: Czy na pewno chcesz usunąć ten wpis?
|
16
18
|
destroy: Usuń
|
17
19
|
edit: Edytuj
|
18
20
|
new: Nowy wpis
|
19
21
|
title: Działania
|
20
|
-
user_group_id: Utwórz wpis jako
|
21
22
|
admin:
|
22
23
|
models:
|
23
24
|
components:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pt-BR:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ pt-BR:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Criar publicação como
|
13
15
|
confirm_destroy: Deseja mesmo excluir este post?
|
14
16
|
destroy: Excluir
|
15
17
|
edit: Editar
|
16
18
|
new: Nova postagem
|
17
19
|
title: Ações
|
18
|
-
user_group_id: Criar publicação como
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/pt.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pt:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ pt:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Criar publicação como
|
13
15
|
confirm_destroy: Tem a certeza de que deseja eliminar esta publicação?
|
14
16
|
destroy: Eliminar
|
15
17
|
edit: Editar
|
16
18
|
new: Nova publicação
|
17
19
|
title: Ações
|
18
|
-
user_group_id: Criar publicação como
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
data/config/locales/ro-RO.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ro:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -11,12 +12,12 @@ ro:
|
|
11
12
|
decidim:
|
12
13
|
blogs:
|
13
14
|
actions:
|
15
|
+
author_id: Creează postare ca
|
14
16
|
confirm_destroy: Sigur dorești să ştergi această postare?
|
15
17
|
destroy: Șterge
|
16
18
|
edit: Editează
|
17
19
|
new: Postare nouă
|
18
20
|
title: Acțiuni
|
19
|
-
user_group_id: Creează postare ca
|
20
21
|
admin:
|
21
22
|
models:
|
22
23
|
components:
|
data/config/locales/ru.yml
CHANGED
data/config/locales/sk.yml
CHANGED
data/config/locales/sl.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sv:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -10,12 +11,12 @@ sv:
|
|
10
11
|
decidim:
|
11
12
|
blogs:
|
12
13
|
actions:
|
14
|
+
author_id: Skapa inlägg som
|
13
15
|
confirm_destroy: Vill du radera inlägget?
|
14
16
|
destroy: Radera
|
15
17
|
edit: Redigera
|
16
18
|
new: Nytt inlägg
|
17
19
|
title: Åtgärder
|
18
|
-
user_group_id: Skapa inlägg som
|
19
20
|
admin:
|
20
21
|
models:
|
21
22
|
components:
|
@@ -47,6 +48,7 @@ sv:
|
|
47
48
|
author: Författare
|
48
49
|
body: Innehåll
|
49
50
|
created_at: Skapad
|
51
|
+
official_blog_post: Officiellt inlägg
|
50
52
|
title: titel
|
51
53
|
posts:
|
52
54
|
show:
|
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/uk.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
@@ -72,8 +72,14 @@ Decidim.register_component(:blogs) do |component|
|
|
72
72
|
Decidim::Component.create!(params)
|
73
73
|
end
|
74
74
|
|
75
|
-
|
76
|
-
author =
|
75
|
+
6.times do |n|
|
76
|
+
author = if n >= 3
|
77
|
+
Decidim::User.where(organization: component.organization).order(Arel.sql("RANDOM()")).first
|
78
|
+
elsif n <= 1
|
79
|
+
Decidim::UserGroup.where(organization: component.organization).order(Arel.sql("RANDOM()")).first
|
80
|
+
else
|
81
|
+
component.organization
|
82
|
+
end
|
77
83
|
|
78
84
|
params = {
|
79
85
|
component: component,
|