Commit 8dac7e17d569c23708f209a75bd99ca7841484c6
0 parents
Exists in
master
and in
2 other branches
initial commit
Showing
9 changed files
with
675 additions
and
0 deletions
Show diff stats
1 | +++ a/controllers/juventude_plugin_admin_controller.rb | |
... | ... | @@ -0,0 +1,13 @@ |
1 | +class JuventudePluginAdminController < PluginAdminController | |
2 | + | |
3 | + def index | |
4 | +# @settings = Noosfero::Plugin::Settings.new(environment, ProposalsDiscussionPlugin, params[:settings]) | |
5 | +# | |
6 | +# if request.post? | |
7 | +# @settings.save! | |
8 | +# session[:notice] = _('Settings succefully saved.') | |
9 | +# redirect_to :action => 'index' | |
10 | +# end | |
11 | + end | |
12 | + | |
13 | +end | ... | ... |
1 | +++ a/lib/ext/environment.rb | |
... | ... | @@ -0,0 +1,12 @@ |
1 | +require_dependency 'environment' | |
2 | + | |
3 | +class Environment | |
4 | + | |
5 | + alias_method :orig_custom_person_fields, :custom_person_fields | |
6 | + | |
7 | + def custom_person_fields | |
8 | + orig_custom_person_fields.merge!({'orientacao_sexual' => {"active"=>"true", "required"=>"false", "signup"=>"true"}}) | |
9 | + orig_custom_person_fields.merge!({'identidade_genero' => {"active"=>"true", "required"=>"false", "signup"=>"true"}}) | |
10 | + end | |
11 | + | |
12 | +end | ... | ... |
1 | +++ a/lib/juventude_plugin.rb | |
... | ... | @@ -0,0 +1,15 @@ |
1 | +class JuventudePlugin < Noosfero::Plugin | |
2 | + | |
3 | + def self.plugin_name | |
4 | + _('Juventude custom plugin') | |
5 | + end | |
6 | + | |
7 | + def self.plugin_description | |
8 | + _("Provide a plugin to juventude environment.") | |
9 | + end | |
10 | + | |
11 | + def self.api_mount_points | |
12 | + [JuventudePlugin::API] | |
13 | + end | |
14 | + | |
15 | +end | ... | ... |
1 | +++ a/lib/juventude_plugin/api.rb | |
... | ... | @@ -0,0 +1,27 @@ |
1 | +class JuventudePlugin::API < Grape::API | |
2 | + | |
3 | + resource :juventude_plugin do | |
4 | + | |
5 | +# paginate per_page: 10, max_per_page: 20 | |
6 | + get ':id/ranking' do | |
7 | +# article = find_article(environment.articles, params[:id]) | |
8 | +# ranking = Rails.cache.fetch("#{article.cache_key}/proposals_ranking", expires_in: 10.minutes) do | |
9 | +# max_hits = article.proposals.maximum(:hits) | |
10 | +# min_hits = article.proposals.minimum(:hits) | |
11 | +# | |
12 | +# proposals = article.proposals.map do |proposal| | |
13 | +# w = [(proposal.hits - max_hits).abs, (proposal.hits - min_hits).abs, 1].max.to_f | |
14 | +# effective_support = (proposal.votes_for - proposal.votes_against)/w | |
15 | +# | |
16 | +# {:id => proposal.id, :abstract => proposal.abstract, :votes_for => proposal.votes_for, :votes_against => proposal.votes_against, :hits => proposal.hits, :effective_support => effective_support} | |
17 | +# end | |
18 | +# proposals = proposals.sort_by { |p| p[:effective_support] }.reverse | |
19 | +# {:proposals => proposals, :updated_at => DateTime.now} | |
20 | +# end | |
21 | +# ranking[:proposals] = paginate ranking[:proposals] | |
22 | +# ranking | |
23 | + end | |
24 | + | |
25 | + end | |
26 | + | |
27 | +end | ... | ... |
1 | +++ a/po/proposals_discussion.pot | |
... | ... | @@ -0,0 +1,284 @@ |
1 | +# SOME DESCRIPTIVE TITLE. | |
2 | +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
3 | +# This file is distributed under the same license as the PACKAGE package. | |
4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
5 | +# | |
6 | +#, fuzzy | |
7 | +msgid "" | |
8 | +msgstr "" | |
9 | +"Project-Id-Version: 1.1-2267-gd7d222b\n" | |
10 | +"POT-Creation-Date: 2015-06-05 09:01-0300\n" | |
11 | +"PO-Revision-Date: 2015-02-12 09:49-0300\n" | |
12 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
13 | +"Language-Team: LANGUAGE <LL@li.org>\n" | |
14 | +"Language: \n" | |
15 | +"MIME-Version: 1.0\n" | |
16 | +"Content-Type: text/plain; charset=UTF-8\n" | |
17 | +"Content-Transfer-Encoding: 8bit\n" | |
18 | +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | |
19 | + | |
20 | +#: plugins/proposals_discussion/controllers/myprofile/proposals_discussion_plugin_myprofile_controller.rb:11 | |
21 | +msgid "Please select a topic" | |
22 | +msgstr "" | |
23 | + | |
24 | +#: plugins/proposals_discussion/controllers/myprofile/proposals_discussion_plugin_myprofile_controller.rb:28 | |
25 | +msgid "Proposal published!" | |
26 | +msgstr "" | |
27 | + | |
28 | +#: plugins/proposals_discussion/controllers/myprofile/proposals_discussion_plugin_myprofile_controller.rb:30 | |
29 | +msgid "Failed to publish your proposal." | |
30 | +msgstr "" | |
31 | + | |
32 | +#: plugins/proposals_discussion/controllers/proposals_discussion_plugin_admin_controller.rb:8 | |
33 | +msgid "Settings succefully saved." | |
34 | +msgstr "" | |
35 | + | |
36 | +#: plugins/proposals_discussion/controllers/profile/proposals_discussion_plugin_profile_controller.rb:13 | |
37 | +msgid "You are not allowed to export data from this article" | |
38 | +msgstr "" | |
39 | + | |
40 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin.rb:8 | |
41 | +msgid "" | |
42 | +"Provide a structured way to promove a discussion over ideas proposed by " | |
43 | +"users." | |
44 | +msgstr "" | |
45 | + | |
46 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:57 | |
47 | +msgid "New proposal" | |
48 | +msgstr "" | |
49 | + | |
50 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:70 | |
51 | +msgid "%{requestor} wants to send the following proposal. <br/>%{abstract}" | |
52 | +msgstr "" | |
53 | + | |
54 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:82 | |
55 | +msgid "%{requestor} wants to send a proposal." | |
56 | +msgstr "" | |
57 | + | |
58 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:87 | |
59 | +msgid "" | |
60 | +"You will need login to %{system} in order to accept or reject the proposal " | |
61 | +"sent by %{requestor}" | |
62 | +msgstr "" | |
63 | + | |
64 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:167 | |
65 | +msgid "" | |
66 | +"Your request for publishing the proposal \"%{article}\" was approved. Here " | |
67 | +"is the comment left by the admin who approved your proposal:\n" | |
68 | +"\n" | |
69 | +"%{comment} " | |
70 | +msgstr "" | |
71 | + | |
72 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:169 | |
73 | +msgid "Your request for publishing the proposal \"%{article}\" was approved." | |
74 | +msgstr "" | |
75 | + | |
76 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:174 | |
77 | +msgid "Your request for publishing the proposal \"%{article}\" was rejected." | |
78 | +msgstr "" | |
79 | + | |
80 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:176 | |
81 | +msgid "" | |
82 | +"Here is the reject explanation left by the moderator who rejected your " | |
83 | +"proposal: \n" | |
84 | +"\n" | |
85 | +"%{reject_explanation}" | |
86 | +msgstr "" | |
87 | + | |
88 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/story.rb:6 | |
89 | +msgid "Story" | |
90 | +msgstr "" | |
91 | + | |
92 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/story.rb:10 | |
93 | +msgid "Discussion Story" | |
94 | +msgstr "" | |
95 | + | |
96 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal.rb:11 | |
97 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal.rb:15 | |
98 | +msgid "Proposal" | |
99 | +msgstr "" | |
100 | + | |
101 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal.rb:23 | |
102 | +msgid "Can't create a proposal at this phase." | |
103 | +msgstr "" | |
104 | + | |
105 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
106 | +msgid "Random" | |
107 | +msgstr "" | |
108 | + | |
109 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
110 | +msgid "Alphabetical" | |
111 | +msgstr "" | |
112 | + | |
113 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
114 | +msgid "Recent" | |
115 | +msgstr "" | |
116 | + | |
117 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
118 | +msgid "Most Commented" | |
119 | +msgstr "" | |
120 | + | |
121 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
122 | +msgid "Most Recently Commented" | |
123 | +msgstr "" | |
124 | + | |
125 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/topic.rb:12 | |
126 | +msgid "Discussion topic" | |
127 | +msgstr "" | |
128 | + | |
129 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/topic.rb:16 | |
130 | +msgid "Container for proposals." | |
131 | +msgstr "" | |
132 | + | |
133 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb:18 | |
134 | +msgid "Body" | |
135 | +msgstr "" | |
136 | + | |
137 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb:25 | |
138 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:8 | |
139 | +msgid "Proposals" | |
140 | +msgstr "" | |
141 | + | |
142 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb:28 | |
143 | +msgid "Discussion" | |
144 | +msgstr "" | |
145 | + | |
146 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb:32 | |
147 | +msgid "Container for topics." | |
148 | +msgstr "" | |
149 | + | |
150 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion_helper.rb:12 | |
151 | +msgid "Send your proposal!" | |
152 | +msgstr "" | |
153 | + | |
154 | +#: plugins/proposals_discussion/lib/ext/vote.rb:10 | |
155 | +msgid "Can't vote in this discussion anymore." | |
156 | +msgstr "" | |
157 | + | |
158 | +#: plugins/proposals_discussion/views/content_viewer/discussion_topics.html.erb:11 | |
159 | +msgid "New Topic" | |
160 | +msgstr "" | |
161 | + | |
162 | +#: plugins/proposals_discussion/views/content_viewer/discussion_topics.html.erb:14 | |
163 | +#: plugins/proposals_discussion/views/content_viewer/discussion.html.erb:15 | |
164 | +msgid "Export" | |
165 | +msgstr "" | |
166 | + | |
167 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:2 | |
168 | +msgid "Statistics" | |
169 | +msgstr "" | |
170 | + | |
171 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:8 | |
172 | +msgid "Comments" | |
173 | +msgstr "" | |
174 | + | |
175 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:12 | |
176 | +msgid "Number of Proposals: " | |
177 | +msgstr "" | |
178 | + | |
179 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:16 | |
180 | +msgid "Number of Participants: " | |
181 | +msgstr "" | |
182 | + | |
183 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:20 | |
184 | +msgid "Number of Comments: " | |
185 | +msgstr "" | |
186 | + | |
187 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:24 | |
188 | +msgid "Most active: " | |
189 | +msgstr "" | |
190 | + | |
191 | +#: plugins/proposals_discussion/views/content_viewer/_proposal_card.html.erb:17 | |
192 | +#: plugins/proposals_discussion/views/content_viewer/proposal.html.erb:26 | |
193 | +msgid "Publish" | |
194 | +msgstr "" | |
195 | + | |
196 | +#: plugins/proposals_discussion/views/content_viewer/_proposal_card.html.erb:34 | |
197 | +msgid "%s comment" | |
198 | +msgid_plural "%s comments" | |
199 | +msgstr[0] "" | |
200 | +msgstr[1] "" | |
201 | + | |
202 | +#: plugins/proposals_discussion/views/content_viewer/proposal.html.erb:3 | |
203 | +msgid ", by %s" | |
204 | +msgstr "" | |
205 | + | |
206 | +#: plugins/proposals_discussion/views/content_viewer/proposal.html.erb:4 | |
207 | +msgid " - %s" | |
208 | +msgstr "" | |
209 | + | |
210 | +#: plugins/proposals_discussion/views/content_viewer/_proposals_list_content.html.erb:6 | |
211 | +msgid "More" | |
212 | +msgstr "" | |
213 | + | |
214 | +#: plugins/proposals_discussion/views/content_viewer/_proposals_list.html.erb:23 | |
215 | +msgid "Loading..." | |
216 | +msgstr "" | |
217 | + | |
218 | +#: plugins/proposals_discussion/views/content_viewer/topic.html.erb:27 | |
219 | +msgid "Send your proposal" | |
220 | +msgstr "" | |
221 | + | |
222 | +#: plugins/proposals_discussion/views/tasks/proposals_discussion_plugin/_proposal_task_accept_details.html.erb:1 | |
223 | +msgid "Select the folder where the article must be published" | |
224 | +msgstr "" | |
225 | + | |
226 | +#: plugins/proposals_discussion/views/tasks/proposals_discussion_plugin/_proposal_task_accept_details.html.erb:3 | |
227 | +msgid "Comment for author" | |
228 | +msgstr "" | |
229 | + | |
230 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_myprofile/select_topic.html.erb:16 | |
231 | +msgid "Select topic" | |
232 | +msgstr "" | |
233 | + | |
234 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_myprofile/select_topic.html.erb:33 | |
235 | +msgid "Next" | |
236 | +msgstr "" | |
237 | + | |
238 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_myprofile/select_topic.html.erb:34 | |
239 | +msgid "Cancel" | |
240 | +msgstr "" | |
241 | + | |
242 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:1 | |
243 | +msgid "Proposals Discussion settings" | |
244 | +msgstr "" | |
245 | + | |
246 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:15 | |
247 | +msgid "Proposal Discussion" | |
248 | +msgstr "" | |
249 | + | |
250 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:20 | |
251 | +msgid "Host:" | |
252 | +msgstr "" | |
253 | + | |
254 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:21 | |
255 | +msgid "Private key:" | |
256 | +msgstr "" | |
257 | + | |
258 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:25 | |
259 | +msgid "New Host" | |
260 | +msgstr "" | |
261 | + | |
262 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_topic.html.erb:14 | |
263 | +msgid "Color:" | |
264 | +msgstr "" | |
265 | + | |
266 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_proposal.html.erb:15 | |
267 | +msgid "Title" | |
268 | +msgstr "" | |
269 | + | |
270 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_proposal.html.erb:19 | |
271 | +msgid "Abstract" | |
272 | +msgstr "" | |
273 | + | |
274 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_discussion.html.erb:12 | |
275 | +msgid "Current Phase" | |
276 | +msgstr "" | |
277 | + | |
278 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_discussion.html.erb:13 | |
279 | +msgid "Allow topics" | |
280 | +msgstr "" | |
281 | + | |
282 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_discussion.html.erb:14 | |
283 | +msgid "Moderate proposals" | |
284 | +msgstr "" | ... | ... |
1 | +++ a/po/pt/proposals_discussion.po | |
... | ... | @@ -0,0 +1,298 @@ |
1 | +msgid "" | |
2 | +msgstr "" | |
3 | +"Project-Id-Version: 1.1-2267-gd7d222b\n" | |
4 | +"POT-Creation-Date: 2015-06-05 09:01-0300\n" | |
5 | +"PO-Revision-Date: 2015-02-12 09:49-0300\n" | |
6 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
7 | +"Language-Team: LANGUAGE <LL@li.org>\n" | |
8 | +"Language: \n" | |
9 | +"MIME-Version: 1.0\n" | |
10 | +"Content-Type: text/plain; charset=UTF-8\n" | |
11 | +"Content-Transfer-Encoding: 8bit\n" | |
12 | +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | |
13 | + | |
14 | +#: plugins/proposals_discussion/controllers/myprofile/proposals_discussion_plugin_myprofile_controller.rb:11 | |
15 | +msgid "Please select a topic" | |
16 | +msgstr "Favor selecionar um tópico" | |
17 | + | |
18 | +#: plugins/proposals_discussion/controllers/myprofile/proposals_discussion_plugin_myprofile_controller.rb:28 | |
19 | +msgid "Proposal published!" | |
20 | +msgstr "Proposta publicada!" | |
21 | + | |
22 | +#: plugins/proposals_discussion/controllers/myprofile/proposals_discussion_plugin_myprofile_controller.rb:30 | |
23 | +msgid "Failed to publish your proposal." | |
24 | +msgstr "Falha na publicação da proposta." | |
25 | + | |
26 | +#: plugins/proposals_discussion/controllers/proposals_discussion_plugin_admin_controller.rb:8 | |
27 | +msgid "Settings succefully saved." | |
28 | +msgstr "Configurações salvas com sucesso." | |
29 | + | |
30 | +#: plugins/proposals_discussion/controllers/profile/proposals_discussion_plugin_profile_controller.rb:13 | |
31 | +msgid "You are not allowed to export data from this article" | |
32 | +msgstr "Você não tem permissão para exportar dados deste artigo" | |
33 | + | |
34 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin.rb:8 | |
35 | +msgid "" | |
36 | +"Provide a structured way to promove a discussion over ideas proposed by " | |
37 | +"users." | |
38 | +msgstr "" | |
39 | +"Proporcinar uma forma estruturada de promover discussões sobre ideias " | |
40 | +"propostas por usuários." | |
41 | + | |
42 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:57 | |
43 | +msgid "New proposal" | |
44 | +msgstr "Nova Proposta" | |
45 | + | |
46 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:70 | |
47 | +msgid "%{requestor} wants to send the following proposal. <br/>%{abstract}" | |
48 | +msgstr "%{requestor} quer enviar a seguinte proposta. <br/>%{abstract}" | |
49 | + | |
50 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:82 | |
51 | +msgid "%{requestor} wants to send a proposal." | |
52 | +msgstr "%{requestor} quer enviar a proposta" | |
53 | + | |
54 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:87 | |
55 | +msgid "" | |
56 | +"You will need login to %{system} in order to accept or reject the proposal " | |
57 | +"sent by %{requestor}" | |
58 | +msgstr "" | |
59 | +"Você precisará logar em %{system} a fim de aceitar ou rejeitar a proposta " | |
60 | +"enviada por %{requestor}" | |
61 | + | |
62 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:167 | |
63 | +msgid "" | |
64 | +"Your request for publishing the proposal \"%{article}\" was approved. Here " | |
65 | +"is the comment left by the admin who approved your proposal:\n" | |
66 | +"\n" | |
67 | +"%{comment} " | |
68 | +msgstr "" | |
69 | +"Sua requisição para publicar a proposta \"%{article}\" foi aprovada. Aqui " | |
70 | +"está o comentário deixado pelo administrador que aprovou sua proposta:\n" | |
71 | +"\n" | |
72 | +"%{comment} " | |
73 | + | |
74 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:169 | |
75 | +msgid "Your request for publishing the proposal \"%{article}\" was approved." | |
76 | +msgstr "Sua requisição para publicar a proposta \"%{article}\" foi aprovada." | |
77 | + | |
78 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:174 | |
79 | +msgid "Your request for publishing the proposal \"%{article}\" was rejected." | |
80 | +msgstr "Sua requisição para publicar a proposta \"%{article}\" foi rejeitada." | |
81 | + | |
82 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal_task.rb:176 | |
83 | +msgid "" | |
84 | +"Here is the reject explanation left by the moderator who rejected your " | |
85 | +"proposal: \n" | |
86 | +"\n" | |
87 | +"%{reject_explanation}" | |
88 | +msgstr "" | |
89 | +"Aqui está a explicação deixada pelo moderador que rejeitou sua proposta: \n" | |
90 | +"\n" | |
91 | +"%{reject_explanation}" | |
92 | + | |
93 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/story.rb:6 | |
94 | +msgid "Story" | |
95 | +msgstr "Experiência" | |
96 | + | |
97 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/story.rb:10 | |
98 | +msgid "Discussion Story" | |
99 | +msgstr "Discussão da Experiência" | |
100 | + | |
101 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal.rb:11 | |
102 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal.rb:15 | |
103 | +msgid "Proposal" | |
104 | +msgstr "Proposta" | |
105 | + | |
106 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposal.rb:23 | |
107 | +msgid "Can't create a proposal at this phase." | |
108 | +msgstr "Não pode criar a proposta nesta fase" | |
109 | + | |
110 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
111 | +msgid "Random" | |
112 | +msgstr "Aleatória" | |
113 | + | |
114 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
115 | +msgid "Alphabetical" | |
116 | +msgstr "Alfabética" | |
117 | + | |
118 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
119 | +msgid "Recent" | |
120 | +msgstr "Recentes" | |
121 | + | |
122 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
123 | +msgid "Most Commented" | |
124 | +msgstr "Mais comentadas" | |
125 | + | |
126 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/proposals_list_helper.rb:4 | |
127 | +msgid "Most Recently Commented" | |
128 | +msgstr "Mais comentadas recentemente" | |
129 | + | |
130 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/topic.rb:12 | |
131 | +msgid "Discussion topic" | |
132 | +msgstr "Tópico de discussão" | |
133 | + | |
134 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/topic.rb:16 | |
135 | +msgid "Container for proposals." | |
136 | +msgstr "Container para propostas" | |
137 | + | |
138 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb:18 | |
139 | +msgid "Body" | |
140 | +msgstr "Corpo" | |
141 | + | |
142 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb:25 | |
143 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:8 | |
144 | +msgid "Proposals" | |
145 | +msgstr "Propostas" | |
146 | + | |
147 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb:28 | |
148 | +msgid "Discussion" | |
149 | +msgstr "Discussão" | |
150 | + | |
151 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion.rb:32 | |
152 | +msgid "Container for topics." | |
153 | +msgstr "Container para tópicos." | |
154 | + | |
155 | +#: plugins/proposals_discussion/lib/proposals_discussion_plugin/discussion_helper.rb:12 | |
156 | +msgid "Send your proposal!" | |
157 | +msgstr "Envie sua proposta!" | |
158 | + | |
159 | +#: plugins/proposals_discussion/lib/ext/vote.rb:10 | |
160 | +msgid "Can't vote in this discussion anymore." | |
161 | +msgstr "Não pode votar mais nesta discussão" | |
162 | + | |
163 | +#: plugins/proposals_discussion/views/content_viewer/discussion_topics.html.erb:11 | |
164 | +msgid "New Topic" | |
165 | +msgstr "Novo Tópico" | |
166 | + | |
167 | +#: plugins/proposals_discussion/views/content_viewer/discussion_topics.html.erb:14 | |
168 | +#: plugins/proposals_discussion/views/content_viewer/discussion.html.erb:15 | |
169 | +msgid "Export" | |
170 | +msgstr "Exportar" | |
171 | + | |
172 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:2 | |
173 | +msgid "Statistics" | |
174 | +msgstr "Estatísticas" | |
175 | + | |
176 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:8 | |
177 | +msgid "Comments" | |
178 | +msgstr "Comentários" | |
179 | + | |
180 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:12 | |
181 | +msgid "Number of Proposals: " | |
182 | +msgstr "Quantidade de Propostas: " | |
183 | + | |
184 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:16 | |
185 | +msgid "Number of Participants: " | |
186 | +msgstr "Quantidade de Participantes: " | |
187 | + | |
188 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:20 | |
189 | +msgid "Number of Comments: " | |
190 | +msgstr "Quantidade de Comentários: " | |
191 | + | |
192 | +#: plugins/proposals_discussion/views/content_viewer/_statistics.html.erb:24 | |
193 | +msgid "Most active: " | |
194 | +msgstr "Mais ativos: " | |
195 | + | |
196 | +#: plugins/proposals_discussion/views/content_viewer/_proposal_card.html.erb:17 | |
197 | +#: plugins/proposals_discussion/views/content_viewer/proposal.html.erb:26 | |
198 | +msgid "Publish" | |
199 | +msgstr "Publicar" | |
200 | + | |
201 | +#: plugins/proposals_discussion/views/content_viewer/_proposal_card.html.erb:34 | |
202 | +msgid "%s comment" | |
203 | +msgid_plural "%s comments" | |
204 | +msgstr[0] "%s comentário" | |
205 | +msgstr[1] "%s comentários" | |
206 | + | |
207 | +#: plugins/proposals_discussion/views/content_viewer/proposal.html.erb:3 | |
208 | +msgid ", by %s" | |
209 | +msgstr ", por %s" | |
210 | + | |
211 | +#: plugins/proposals_discussion/views/content_viewer/proposal.html.erb:4 | |
212 | +msgid " - %s" | |
213 | +msgstr "- %s" | |
214 | + | |
215 | +#: plugins/proposals_discussion/views/content_viewer/_proposals_list_content.html.erb:6 | |
216 | +msgid "More" | |
217 | +msgstr "Mais" | |
218 | + | |
219 | +#: plugins/proposals_discussion/views/content_viewer/_proposals_list.html.erb:23 | |
220 | +msgid "Loading..." | |
221 | +msgstr "Carregando..." | |
222 | + | |
223 | +#: plugins/proposals_discussion/views/content_viewer/topic.html.erb:27 | |
224 | +msgid "Send your proposal" | |
225 | +msgstr "Envie sua proposta" | |
226 | + | |
227 | +#: plugins/proposals_discussion/views/tasks/proposals_discussion_plugin/_proposal_task_accept_details.html.erb:1 | |
228 | +msgid "Select the folder where the article must be published" | |
229 | +msgstr "Selecione a pasta onde o artigo será publicado" | |
230 | + | |
231 | +#: plugins/proposals_discussion/views/tasks/proposals_discussion_plugin/_proposal_task_accept_details.html.erb:3 | |
232 | +msgid "Comment for author" | |
233 | +msgstr "Comentário para o autor" | |
234 | + | |
235 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_myprofile/select_topic.html.erb:16 | |
236 | +msgid "Select topic" | |
237 | +msgstr "Selecione um tópico" | |
238 | + | |
239 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_myprofile/select_topic.html.erb:33 | |
240 | +msgid "Next" | |
241 | +msgstr "Próximo" | |
242 | + | |
243 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_myprofile/select_topic.html.erb:34 | |
244 | +msgid "Cancel" | |
245 | +msgstr "Cancelar" | |
246 | + | |
247 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:1 | |
248 | +msgid "Proposals Discussion settings" | |
249 | +msgstr "Configurações da Discussão de Propostas" | |
250 | + | |
251 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:15 | |
252 | +msgid "Proposal Discussion" | |
253 | +msgstr "Discussão de Proposta" | |
254 | + | |
255 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:20 | |
256 | +msgid "Host:" | |
257 | +msgstr "Endereço:" | |
258 | + | |
259 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:21 | |
260 | +msgid "Private key:" | |
261 | +msgstr "Chave Privada" | |
262 | + | |
263 | +#: plugins/proposals_discussion/views/proposals_discussion_plugin_admin/index.html.erb:25 | |
264 | +msgid "New Host" | |
265 | +msgstr "Novo Endereço" | |
266 | + | |
267 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_topic.html.erb:14 | |
268 | +msgid "Color:" | |
269 | +msgstr "Cor:" | |
270 | + | |
271 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_proposal.html.erb:15 | |
272 | +msgid "Title" | |
273 | +msgstr "Título" | |
274 | + | |
275 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_proposal.html.erb:19 | |
276 | +msgid "Abstract" | |
277 | +msgstr "Resumo" | |
278 | + | |
279 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_discussion.html.erb:12 | |
280 | +msgid "Current Phase" | |
281 | +msgstr "Fase Corrente" | |
282 | + | |
283 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_discussion.html.erb:13 | |
284 | +msgid "Allow topics" | |
285 | +msgstr "Permitir tópicos" | |
286 | + | |
287 | +#: plugins/proposals_discussion/views/cms/proposals_discussion_plugin/_discussion.html.erb:14 | |
288 | +msgid "Moderate proposals" | |
289 | +msgstr "Moderar propostas" | |
290 | + | |
291 | +#~ msgid "Description:" | |
292 | +#~ msgstr "Descrição:" | |
293 | + | |
294 | +#~ msgid "Image:" | |
295 | +#~ msgstr "Imagem:" | |
296 | + | |
297 | +#~ msgid "Max size: %s (.jpg, .gif, .png)" | |
298 | +#~ msgstr "Tamanho máximo: %s (.jpg, .gif, .png)" | ... | ... |
1 | +++ a/test/unit/api_test.rb | |
... | ... | @@ -0,0 +1,13 @@ |
1 | +require_relative '../test_helper' | |
2 | +require_relative '../../../../test/unit/api/test_helper' | |
3 | + | |
4 | +class APITest < ActiveSupport::TestCase | |
5 | + | |
6 | + def setup | |
7 | + login_api | |
8 | + end | |
9 | + | |
10 | + should 'return something' do | |
11 | + end | |
12 | + | |
13 | +end | ... | ... |
1 | +++ a/views/juventude_plugin_admin/index.html.erb | |
... | ... | @@ -0,0 +1,12 @@ |
1 | +<h1><%= _('Juventude settings')%></h1> | |
2 | + | |
3 | + | |
4 | +<%= form_for(:settings) do |f| %> | |
5 | + | |
6 | + | |
7 | + <% button_bar do %> | |
8 | + <%= submit_button(:save, c_('Save'), :cancel => {:controller => 'plugins', :action => 'index'}) %> | |
9 | + <% end %> | |
10 | + | |
11 | +<% end %> | |
12 | + | ... | ... |