decidim-comments 0.24.0.rc2 → 0.24.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 855f83ec312bf39a6e2e855c78d0373c0c8c8e2be60bdd5f594537c5867f3135
4
- data.tar.gz: 75dfdf24196bb9eb4d1c6f69ffd9150b7262e305481d1ce4b5c1ff938d8b6f36
3
+ metadata.gz: 24922b5c100bdad1829e1da583c3ef0e56b3bd95603bb678320e2522427ae8d1
4
+ data.tar.gz: f721220d6fc7611876046d47dcdd51045e5852a5b0d4d18c3176f845bc537e65
5
5
  SHA512:
6
- metadata.gz: 802de3f6db03bfb5f7b6560cd6e6cef993033b082cc1df9dce6b882bc1351dfcd7849f4bf2866c9184716ccaca73d985a5a5f83ada126bdfbac3ff54ea83734c
7
- data.tar.gz: ec250cd1268c3069692006e0c5ab53d81bd8efe27650b706ff3010e34bb06fd6a056b575fbeb9e929c68391797ed8d7115fc4e5c4d34f1e433c30d4099568ad9
6
+ metadata.gz: da58ece1d3cc4d9b5cd97316faef595b27f36a4b771817c5278a11c02748a3816a98b5b86ecbf1c0e35a03a6ba3baf892c61f13a83361dc76ffae9e926758a7d
7
+ data.tar.gz: 7d848566d1988040121f462636077aeccde2e095b431c02cbd7491f49145dec7fd93b9a9845dbf7431474165429f7c6cac30e5cd9d4a8716cdeea62268494de2
@@ -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: true
20
- argument :toggle_translations, GraphQL::Types::Boolean, "Whether the user asked to toggle the machine translations or not.", required: true
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: true
28
- argument :toggle_translations, GraphQL::Types::Boolean, "Whether the user asked to toggle the machine translations or not.", required: true
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:, locale:, toggle_translations:, type:)
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:, toggle_translations:)
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)
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-comments version.
5
5
  module Comments
6
6
  def self.version
7
- "0.24.0.rc2"
7
+ "0.24.0"
8
8
  end
9
9
  end
10
10
  end
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.rc2
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-10 00:00:00.000000000 Z
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.rc2
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.rc2
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.rc2
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.rc2
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.rc2
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.rc2
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: 1.3.1
294
+ version: '0'
295
295
  requirements: []
296
296
  rubygems_version: 3.1.2
297
297
  signing_key: