decidim-comments 0.24.0.rc2 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/ro-RO.yml +15 -0
- data/lib/decidim/comments/mutation_extensions.rb +6 -6
- data/lib/decidim/comments/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24922b5c100bdad1829e1da583c3ef0e56b3bd95603bb678320e2522427ae8d1
|
4
|
+
data.tar.gz: f721220d6fc7611876046d47dcdd51045e5852a5b0d4d18c3176f845bc537e65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da58ece1d3cc4d9b5cd97316faef595b27f36a4b771817c5278a11c02748a3816a98b5b86ecbf1c0e35a03a6ba3baf892c61f13a83361dc76ffae9e926758a7d
|
7
|
+
data.tar.gz: 7d848566d1988040121f462636077aeccde2e095b431c02cbd7491f49145dec7fd93b9a9845dbf7431474165429f7c6cac30e5cd9d4a8716cdeea62268494de2
|
data/config/locales/ro-RO.yml
CHANGED
@@ -18,9 +18,14 @@ ro:
|
|
18
18
|
other: Voturi
|
19
19
|
decidim:
|
20
20
|
comments:
|
21
|
+
comments:
|
22
|
+
create:
|
23
|
+
error: A apărut o problemă la crearea comentariului.
|
21
24
|
comments_count: Numărul de comentarii
|
25
|
+
comments_title: Comentarii
|
22
26
|
last_activity:
|
23
27
|
new_comment_at_html: "<span>Comentariu nou la %{link}</span>"
|
28
|
+
view: Vizualizare
|
24
29
|
votes:
|
25
30
|
create:
|
26
31
|
error: A apărut o problemă la votarea comentariului.
|
@@ -97,6 +102,16 @@ ro:
|
|
97
102
|
email_outro: Ați primit această notificare deoarece urmați ""%{resource_title}" sau autorul său. O puteți anula de la link-ul anterior.
|
98
103
|
email_subject: Există un nou comentariu de la %{author_name} în %{resource_title}
|
99
104
|
notification_title: Există un nou comentariu de la <a href="%{author_path}">%{author_name} %{author_nickname}</a> în <a href="%{resource_path}">%{resource_title}</a>
|
105
|
+
comment_downvoted:
|
106
|
+
email_intro: Comentariul tău în "%{resource_title}" a fost refuzat. Acesta are acum un total de %{upvotes} aprecieri şi %{downvotes} refuzuri.
|
107
|
+
email_outro: Ați primit această notificare deoarece sunteți autorul acestui comentariu.
|
108
|
+
email_subject: Comentariul tău în "%{resource_title}" a fost refuzat.
|
109
|
+
notification_title: Comentariul tău <a href="%{resource_path}"></a> în "%{resource_title}" a fost refuzat. Acum are un total de %{upvotes} aprecieri și %{downvotes} refuzuri.
|
110
|
+
comment_upvoted:
|
111
|
+
email_intro: Comentariul tău în "%{resource_title}" a fost apreciat. Acesta are acum un total de %{upvotes} aprecieri şi %{downvotes} refuzuri.
|
112
|
+
email_outro: Ați primit această notificare deoarece sunteți autorul acestui comentariu.
|
113
|
+
email_subject: Comentariul tău în "%{resource_title}" a fost apreciat.
|
114
|
+
notification_title: Comentariul tău <a href="%{resource_path}"></a> în "%{resource_title}" a fost apreciat. Acum are un total de %{upvotes} aprecieri și %{downvotes} refuzuri.
|
100
115
|
reply_created:
|
101
116
|
email_intro: "%{author_name} a răspuns comentariului tău în %{resource_title}. Îl poți citi în această pagină:"
|
102
117
|
email_outro: Ați primit această notificare deoarece comentariul dvs. a fost răspuns.
|
@@ -16,26 +16,26 @@ module Decidim
|
|
16
16
|
|
17
17
|
argument :id, GraphQL::Types::String, "The commentable's ID", required: true
|
18
18
|
argument :type, GraphQL::Types::String, "The commentable's class name. i.e. `Decidim::ParticipatoryProcess`", required: true
|
19
|
-
argument :locale, GraphQL::Types::String, "The locale for which to get the comments text", required:
|
20
|
-
argument :toggle_translations, GraphQL::Types::Boolean, "Whether the user asked to toggle the machine translations or not.", required:
|
19
|
+
argument :locale, GraphQL::Types::String, "The locale for which to get the comments text", required: false
|
20
|
+
argument :toggle_translations, GraphQL::Types::Boolean, "Whether the user asked to toggle the machine translations or not.", required: false
|
21
21
|
end
|
22
22
|
|
23
23
|
type.field :comment, Decidim::Comments::CommentMutationType, null: false do
|
24
24
|
description "A comment"
|
25
25
|
|
26
26
|
argument :id, GraphQL::Types::ID, "The comment's id", required: true
|
27
|
-
argument :locale, GraphQL::Types::String, "The locale for which to get the comments text", required:
|
28
|
-
argument :toggle_translations, GraphQL::Types::Boolean, "Whether the user asked to toggle the machine translations or not.", required:
|
27
|
+
argument :locale, GraphQL::Types::String, "The locale for which to get the comments text", required: false
|
28
|
+
argument :toggle_translations, GraphQL::Types::Boolean, "Whether the user asked to toggle the machine translations or not.", required: false
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
def commentable(id:,
|
32
|
+
def commentable(id:, type:, locale: Decidim.default_locale, toggle_translations: false)
|
33
33
|
I18n.locale = locale.presence
|
34
34
|
RequestStore.store[:toggle_machine_translations] = toggle_translations
|
35
35
|
type.constantize.find(id)
|
36
36
|
end
|
37
37
|
|
38
|
-
def comment(id:, locale
|
38
|
+
def comment(id:, locale: Decidim.default_locale, toggle_translations: false)
|
39
39
|
I18n.locale = locale.presence
|
40
40
|
RequestStore.store[:toggle_machine_translations] = toggle_translations
|
41
41
|
Comment.find(id)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.0
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-03-
|
13
|
+
date: 2021-03-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.24.0
|
21
|
+
version: 0.24.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.24.0
|
28
|
+
version: 0.24.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: jquery-rails
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,28 +66,28 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.24.0
|
69
|
+
version: 0.24.0
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.24.0
|
76
|
+
version: 0.24.0
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: decidim-dev
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.24.0
|
83
|
+
version: 0.24.0
|
84
84
|
type: :development
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - '='
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.24.0
|
90
|
+
version: 0.24.0
|
91
91
|
description: Pluggable comments system for some components.
|
92
92
|
email:
|
93
93
|
- josepjaume@gmail.com
|
@@ -289,9 +289,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
289
289
|
version: '2.7'
|
290
290
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
291
291
|
requirements:
|
292
|
-
- - "
|
292
|
+
- - ">="
|
293
293
|
- !ruby/object:Gem::Version
|
294
|
-
version:
|
294
|
+
version: '0'
|
295
295
|
requirements: []
|
296
296
|
rubygems_version: 3.1.2
|
297
297
|
signing_key:
|