Commit 6a66ab8953dff6a665ad2fed46748eaf86ba66bb
1 parent
508297c4
Exists in
staging
and in
4 other branches
Improved messages
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
plugins/email_article/lib/email_article_plugin.rb
| @@ -12,17 +12,17 @@ class EmailArticlePlugin < Noosfero::Plugin | @@ -12,17 +12,17 @@ class EmailArticlePlugin < Noosfero::Plugin | ||
| 12 | label = _("Send article to members") | 12 | label = _("Send article to members") |
| 13 | htmlclass = _("button with-text icon-menu-mail") | 13 | htmlclass = _("button with-text icon-menu-mail") |
| 14 | title = _("Email article to all community members") | 14 | title = _("Email article to all community members") |
| 15 | - | 15 | + |
| 16 | lambda { | 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 | link_to_remote( | 18 | link_to_remote( |
| 19 | label, | 19 | label, |
| 20 | { | 20 | { |
| 21 | :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page}, | 21 | :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page}, |
| 22 | :method => :get, | 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 | :class => htmlclass, | 27 | :class => htmlclass, |
| 28 | :title => title | 28 | :title => title |