Commit f9ca05f19692e168fba8085ca687ed06c35e48a2
1 parent
1a02f3c6
Exists in
master
Improved messages
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
lib/email_article_plugin.rb
... | ... | @@ -12,17 +12,17 @@ class EmailArticlePlugin < Noosfero::Plugin |
12 | 12 | label = _("Send article to members") |
13 | 13 | htmlclass = _("button with-text icon-menu-mail") |
14 | 14 | title = _("Email article to all community members") |
15 | - | |
15 | + | |
16 | 16 | lambda { |
17 | - if !profile.blank? and !user.blank? and user.is_admin?(profile) and @page.kind_of?(TextArticle) | |
17 | + if !profile.blank? and !user.blank? and user.is_admin?(profile) and @page.kind_of?(TextArticle) | |
18 | 18 | link_to_remote( |
19 | 19 | label, |
20 | 20 | { |
21 | 21 | :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page}, |
22 | 22 | :method => :get, |
23 | - :success => "alert('Emails enviados')", | |
24 | - :failure => "alert('Erro ao enviar email')", | |
25 | - :confirm => _("Are you sure you want to email this article to the all community members?"), | |
23 | + :success => "alert('" + _("Messages sent to outbox, soon will be delivered") + "')", | |
24 | + :failure => "alert('" + _("Error sending emails") + "')", | |
25 | + :confirm => _("Are you sure you want to email this article to all community members?"), | |
26 | 26 | }, |
27 | 27 | :class => htmlclass, |
28 | 28 | :title => title | ... | ... |