Commit 53342611c530be421f3a16808efae02b2e507437

Authored by Luciano Prestes
Committed by Thiago Ribeiro
1 parent 70f92430

Fix time translation in organization_ratings

Signed-off-by: Fabio Teixeira  <fabio1079@gmail.com>
Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com>
plugins/organization_ratings/po/organization_ratings.pot
... ... @@ -6,8 +6,8 @@
6 6 #, fuzzy
7 7 msgid ""
8 8 msgstr ""
9   -"Project-Id-Version: 1.2-478-gee4ad04\n"
10   -"POT-Creation-Date: 2015-09-11 18:11-0300\n"
  9 +"Project-Id-Version: 1.2.1+spb4-129-g9247619\n"
  10 +"POT-Creation-Date: 2015-10-07 19:59+0200\n"
11 11 "PO-Revision-Date: 2015-09-11 18:56-0000\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -17,6 +17,26 @@ msgstr &quot;&quot;
17 17 "Content-Transfer-Encoding: 8bit\n"
18 18 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19 19  
  20 +#: plugins/organization_ratings/lib/organization_ratings_block.rb:5
  21 +msgid "Organization Ratings"
  22 +msgstr ""
  23 +
  24 +#: plugins/organization_ratings/lib/organization_ratings_block.rb:9
  25 +msgid "This block displays the organization ratings."
  26 +msgstr ""
  27 +
  28 +#: plugins/organization_ratings/lib/organization_ratings_config.rb:8
  29 +msgid "More Recent"
  30 +msgstr ""
  31 +
  32 +#: plugins/organization_ratings/lib/organization_ratings_config.rb:8
  33 +msgid "Best Ratings"
  34 +msgstr ""
  35 +
  36 +#: plugins/organization_ratings/lib/organization_ratings_plugin.rb:9
  37 +msgid "A plugin that allows you to rate a organization and comment about it."
  38 +msgstr ""
  39 +
20 40 #: plugins/organization_ratings/lib/create_organization_rating_comment.rb:31
21 41 msgid "Comment waiting for approval"
22 42 msgstr ""
... ... @@ -77,20 +97,8 @@ msgid &quot;&quot;
77 97 " You can access %{url} to see your comment."
78 98 msgstr ""
79 99  
80   -#: plugins/organization_ratings/lib/organization_ratings_config.rb:8
81   -msgid "More Recent"
82   -msgstr ""
83   -
84   -#: plugins/organization_ratings/lib/organization_ratings_config.rb:8
85   -msgid "Best Ratings"
86   -msgstr ""
87   -
88   -#: plugins/organization_ratings/lib/organization_ratings_block.rb:5
89   -msgid "Organization Ratings"
90   -msgstr ""
91   -
92   -#: plugins/organization_ratings/lib/organization_ratings_block.rb:9
93   -msgid "This block displays the organization ratings."
  100 +#: plugins/organization_ratings/lib/average_rating_block.rb:5
  101 +msgid "Organization Average Rating"
94 102 msgstr ""
95 103  
96 104 #: plugins/organization_ratings/lib/average_rating_block.rb:5
... ... @@ -105,6 +113,10 @@ msgstr &quot;&quot;
105 113 msgid "A plugin that allows you to rate a organization and comment about it."
106 114 msgstr ""
107 115  
  116 +#: plugins/organization_ratings/lib/average_rating_block.rb:9
  117 +msgid "This block displays the organization average rating."
  118 +msgstr ""
  119 +
108 120 #: plugins/organization_ratings/lib/organization_rating.rb:10
109 121 msgid "must be between 1 and 5"
110 122 msgstr ""
... ... @@ -173,26 +185,46 @@ msgstr &quot;&quot;
173 185 msgid "Time in hours between evaluations from the same user."
174 186 msgstr ""
175 187  
176   -#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:27
177   -msgid "To disable cooldown use zero (0) value."
  188 +#: plugins/organization_ratings/controllers/organization_ratings_plugin_admin_controller.rb:14
  189 +msgid "Configuration could not be saved."
178 190 msgstr ""
179 191  
180   -#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:35
181   -msgid "Order ratings by"
  192 +#: plugins/organization_ratings/controllers/organization_ratings_plugin_profile_controller.rb:15
  193 +msgid "You can not vote on this %s"
182 194 msgstr ""
183 195  
184   -#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:41
185   -msgid "Ratings amount per page"
  196 +#: plugins/organization_ratings/controllers/organization_ratings_plugin_profile_controller.rb:47
  197 +msgid "%s successfully rated!"
186 198 msgstr ""
187 199  
188   -#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:50
189   -msgid "Back"
  200 +#: plugins/organization_ratings/controllers/organization_ratings_plugin_profile_controller.rb:49
  201 +msgid "Sorry, there were problems rating this profile."
190 202 msgstr ""
191 203  
192 204 #: plugins/organization_ratings/views/tasks/_create_organization_rating_comment_accept_details.html.erb:2
193 205 msgid "Comment:"
194 206 msgstr ""
195 207  
  208 +#: plugins/organization_ratings/views/shared/_rating_button.html.erb:3
  209 +msgid "Rate %s "
  210 +msgstr ""
  211 +
  212 +#: plugins/organization_ratings/views/shared/_rating_button.html.erb:7
  213 +msgid "Log in"
  214 +msgstr ""
  215 +
  216 +#: plugins/organization_ratings/views/shared/_make_report_block.html.erb:11
  217 +msgid "User not logged"
  218 +msgstr ""
  219 +
  220 +#: plugins/organization_ratings/views/shared/_make_report_block.html.erb:17
  221 +msgid "Report your experiences."
  222 +msgstr ""
  223 +
  224 +#: plugins/organization_ratings/views/shared/_make_report_block.html.erb:24
  225 +msgid "* You must be logged in to submit a report."
  226 +msgstr ""
  227 +
196 228 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:39
197 229 msgid "Rated as"
198 230 msgstr ""
... ... @@ -226,13 +258,57 @@ msgid &quot;Hi, %s! The administrators set the minimum time of&quot;
226 258 msgstr ""
227 259  
228 260 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:71
229   -msgid "%s hour(s)"
  261 +msgid "%d hour(s)"
230 262 msgstr ""
231 263  
232 264 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:72
233 265 msgid "between each evaluation."
234 266 msgstr ""
235 267  
  268 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:3
  269 +msgid "Organization Rating Settings"
  270 +msgstr ""
  271 +
  272 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:10
  273 +msgid "Value"
  274 +msgstr ""
  275 +
  276 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:13
  277 +msgid "Default amount of stars marked on evaluations"
  278 +msgstr ""
  279 +
  280 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:17
  281 +msgid "Users can rate an organization only once"
  282 +msgstr ""
  283 +
  284 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:21
  285 +msgid "The comments are moderated"
  286 +msgstr ""
  287 +
  288 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:26
  289 +msgid "Time in hours between evaluations from the same user."
  290 +msgstr ""
  291 +
  292 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:27
  293 +msgid "To disable cooldown use zero (0) value."
  294 +msgstr ""
  295 +
  296 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:35
  297 +msgid "Order ratings by"
  298 +msgstr ""
  299 +
  300 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:41
  301 +msgid "Ratings amount per page"
  302 +msgstr ""
  303 +
  304 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:50
  305 +msgid "Back"
  306 +msgstr ""
  307 +
  308 +#: plugins/organization_ratings/views/blocks/organization_ratings_block.html.erb:17
  309 +msgid "See more"
  310 +msgstr ""
  311 +
236 312 #: plugins/organization_ratings/views/blocks/display_organization_average_rating.html.erb:4
237 313 msgid "Rating: "
238 314 msgstr ""
... ... @@ -245,6 +321,6 @@ msgstr &quot;&quot;
245 321 msgid "Rate this %s"
246 322 msgstr ""
247 323  
248   -#: plugins/organization_ratings/views/blocks/organization_ratings_block.html.erb:17
249   -msgid "See more"
  324 +#: plugins/organization_ratings/views/tasks/_create_organization_rating_comment_accept_details.html.erb:2
  325 +msgid "Comment:"
250 326 msgstr ""
... ...
plugins/organization_ratings/po/pt/organization_ratings.po
... ... @@ -6,8 +6,8 @@
6 6 #, fuzzy
7 7 msgid ""
8 8 msgstr ""
9   -"Project-Id-Version: 1.2.1+spb4-1-g4767db4\n"
10   -"POT-Creation-Date: 2015-09-14 14:09-0300\n"
  9 +"Project-Id-Version: 1.2.1+spb4-129-g9247619\n"
  10 +"POT-Creation-Date: 2015-10-07 19:59+0200\n"
11 11 "PO-Revision-Date: 2015-09-11 18:56-0000\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -17,6 +17,27 @@ msgstr &quot;&quot;
17 17 "Content-Transfer-Encoding: 8bit\n"
18 18 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19 19  
  20 +#: plugins/organization_ratings/lib/organization_ratings_block.rb:5
  21 +msgid "Organization Ratings"
  22 +msgstr "Avaliações da Organização"
  23 +
  24 +#: plugins/organization_ratings/lib/organization_ratings_block.rb:9
  25 +msgid "This block displays the organization ratings."
  26 +msgstr "Este bloco mostra as avaliações da organização."
  27 +
  28 +#: plugins/organization_ratings/lib/organization_ratings_config.rb:8
  29 +msgid "More Recent"
  30 +msgstr "Mais Recentes"
  31 +
  32 +#: plugins/organization_ratings/lib/organization_ratings_config.rb:8
  33 +msgid "Best Ratings"
  34 +msgstr "Melhores Avaliações"
  35 +
  36 +#: plugins/organization_ratings/lib/organization_ratings_plugin.rb:9
  37 +msgid "A plugin that allows you to rate a organization and comment about it."
  38 +msgstr ""
  39 +"Um plugin que permite que você avalie uma organização e comente sobre ela."
  40 +
20 41 #: plugins/organization_ratings/lib/create_organization_rating_comment.rb:31
21 42 msgid "Comment waiting for approval"
22 43 msgstr "Comentario aguardando aprovação"
... ... @@ -97,21 +118,9 @@ msgstr &quot;&quot;
97 118 "Seu pedido para comentar em %{target} foi aprovado.\n"
98 119 "\tVocê pode acessar %{url} para ver seu comentário."
99 120  
100   -#: plugins/organization_ratings/lib/organization_ratings_config.rb:8
101   -msgid "More Recent"
102   -msgstr "Mais Recentes"
103   -
104   -#: plugins/organization_ratings/lib/organization_ratings_config.rb:8
105   -msgid "Best Ratings"
106   -msgstr "Melhores Avaliações"
107   -
108   -#: plugins/organization_ratings/lib/organization_ratings_block.rb:5
109   -msgid "Organization Ratings"
110   -msgstr "Avaliações da Organização"
111   -
112   -#: plugins/organization_ratings/lib/organization_ratings_block.rb:9
113   -msgid "This block displays the organization ratings."
114   -msgstr "Este bloco mostra as avaliações da organização."
  121 +#: plugins/organization_ratings/lib/average_rating_block.rb:5
  122 +msgid "Organization Average Rating"
  123 +msgstr "Média de Avaliações da Organização"
115 124  
116 125 #: plugins/organization_ratings/lib/average_rating_block.rb:5
117 126 msgid "Organization Average Rating"
... ... @@ -126,6 +135,10 @@ msgid &quot;A plugin that allows you to rate a organization and comment about it.&quot;
126 135 msgstr ""
127 136 "Um plugin que permite que você avalie uma organização e comente sobre ela."
128 137  
  138 +#: plugins/organization_ratings/lib/average_rating_block.rb:9
  139 +msgid "This block displays the organization average rating."
  140 +msgstr "Este bloco mostra a média de avaliações da organização."
  141 +
129 142 #: plugins/organization_ratings/lib/organization_rating.rb:10
130 143 msgid "must be between 1 and 5"
131 144 msgstr "deve ser entre 1 e 5"
... ... @@ -194,26 +207,46 @@ msgstr &quot;Os comentários são moderados&quot;
194 207 msgid "Time in hours between evaluations from the same user."
195 208 msgstr "Tempo em horas entre avaliações do mesmo usuário."
196 209  
197   -#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:27
198   -msgid "To disable cooldown use zero (0) value."
199   -msgstr "Para desabilitar o tempo de espera utilize o valor zero (0)."
  210 +#: plugins/organization_ratings/controllers/organization_ratings_plugin_admin_controller.rb:14
  211 +msgid "Configuration could not be saved."
  212 +msgstr "Configurações não puderam ser salvas."
200 213  
201   -#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:35
202   -msgid "Order ratings by"
203   -msgstr "Ordenar avaliações por"
  214 +#: plugins/organization_ratings/controllers/organization_ratings_plugin_profile_controller.rb:15
  215 +msgid "You can not vote on this %s"
  216 +msgstr "Você não pode votar nesta %s"
204 217  
205   -#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:41
206   -msgid "Ratings amount per page"
207   -msgstr "Quantidade de avaliações por página"
  218 +#: plugins/organization_ratings/controllers/organization_ratings_plugin_profile_controller.rb:47
  219 +msgid "%s successfully rated!"
  220 +msgstr "%s avaliada com sucesso!"
208 221  
209   -#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:50
210   -msgid "Back"
211   -msgstr "Voltar"
  222 +#: plugins/organization_ratings/controllers/organization_ratings_plugin_profile_controller.rb:49
  223 +msgid "Sorry, there were problems rating this profile."
  224 +msgstr "Desculpe, ocorreram problemas na avaliação deste perfil."
212 225  
213 226 #: plugins/organization_ratings/views/tasks/_create_organization_rating_comment_accept_details.html.erb:2
214 227 msgid "Comment:"
215 228 msgstr "Comentário:"
216 229  
  230 +#: plugins/organization_ratings/views/shared/_rating_button.html.erb:3
  231 +msgid "Rate %s "
  232 +msgstr "Avaliar %s "
  233 +
  234 +#: plugins/organization_ratings/views/shared/_rating_button.html.erb:7
  235 +msgid "Log in"
  236 +msgstr "Entrar"
  237 +
  238 +#: plugins/organization_ratings/views/shared/_make_report_block.html.erb:11
  239 +msgid "User not logged"
  240 +msgstr "Usuário não logado"
  241 +
  242 +#: plugins/organization_ratings/views/shared/_make_report_block.html.erb:17
  243 +msgid "Report your experiences."
  244 +msgstr "Relate suas experiências."
  245 +
  246 +#: plugins/organization_ratings/views/shared/_make_report_block.html.erb:24
  247 +msgid "* You must be logged in to submit a report."
  248 +msgstr "* Você precisa estar logado para enviar um relato."
  249 +
217 250 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:39
218 251 msgid "Rated as"
219 252 msgstr "Avaliado em"
... ... @@ -247,13 +280,57 @@ msgid &quot;Hi, %s! The administrators set the minimum time of&quot;
247 280 msgstr "Olá, %s! Os administradores configuraram o tempo mínimo de "
248 281  
249 282 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:71
250   -msgid "%s hour(s)"
251   -msgstr "%s hora(s)"
  283 +msgid "%d hour(s)"
  284 +msgstr "%d hora(s)"
252 285  
253 286 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:72
254 287 msgid "between each evaluation."
255 288 msgstr "entre cada avaliação."
256 289  
  290 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:3
  291 +msgid "Organization Rating Settings"
  292 +msgstr "Configuração para Avaliações em Organizações"
  293 +
  294 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:10
  295 +msgid "Value"
  296 +msgstr "Valor"
  297 +
  298 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:13
  299 +msgid "Default amount of stars marked on evaluations"
  300 +msgstr "Quantidade padrão de estrelas marcadas nas avaliações"
  301 +
  302 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:17
  303 +msgid "Users can rate an organization only once"
  304 +msgstr "Usuários podem avaliar uma organização apenas uma vez"
  305 +
  306 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:21
  307 +msgid "The comments are moderated"
  308 +msgstr "Os comentários são moderados"
  309 +
  310 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:26
  311 +msgid "Time in hours between evaluations from the same user."
  312 +msgstr "Tempo em horas entre avaliações do mesmo usuário."
  313 +
  314 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:27
  315 +msgid "To disable cooldown use zero (0) value."
  316 +msgstr "Para desabilitar o tempo de espera utilize o valor zero (0)."
  317 +
  318 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:35
  319 +msgid "Order ratings by"
  320 +msgstr "Ordenar avaliações por"
  321 +
  322 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:41
  323 +msgid "Ratings amount per page"
  324 +msgstr "Quantidade de avaliações por página"
  325 +
  326 +#: plugins/organization_ratings/views/organization_ratings_plugin_admin/index.html.erb:50
  327 +msgid "Back"
  328 +msgstr "Voltar"
  329 +
  330 +#: plugins/organization_ratings/views/blocks/organization_ratings_block.html.erb:17
  331 +msgid "See more"
  332 +msgstr "Veja mais"
  333 +
257 334 #: plugins/organization_ratings/views/blocks/display_organization_average_rating.html.erb:4
258 335 msgid "Rating: "
259 336 msgstr "Avaliação:"
... ... @@ -266,9 +343,9 @@ msgstr &quot;Seja o primeiro a avaliar!&quot;
266 343 msgid "Rate this %s"
267 344 msgstr "Avalie esta %s"
268 345  
269   -#: plugins/organization_ratings/views/blocks/organization_ratings_block.html.erb:17
270   -msgid "See more"
271   -msgstr "Veja mais"
  346 +#: plugins/organization_ratings/views/tasks/_create_organization_rating_comment_accept_details.html.erb:2
  347 +msgid "Comment:"
  348 +msgstr "Comentário:"
272 349  
273 350 #~ msgid "community"
274 351 #~ msgstr "comunidade"
... ...
plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb
... ... @@ -68,7 +68,7 @@
68 68 <% else %>
69 69 <div class="star-rate-form rating-cooldown">
70 70 <%= _("Hi, %s! The administrators set the minimum time of") % current_user.name %>
71   - <strong><%= _("%s hour(s)" % env_organization_ratings_config.cooldown) %></strong>
  71 + <strong><%= _("%d hour(s)") % env_organization_ratings_config.cooldown %></strong>
72 72 <%= _("between each evaluation.") %>
73 73  
74 74 <%= render :partial => 'shared/rating_button', :locals => { :disabled => true } %>
... ... @@ -77,4 +77,4 @@
77 77  
78 78  
79 79 </div>
80   -</div>
81 80 \ No newline at end of file
  81 +</div>
... ...