From f9ca05f19692e168fba8085ca687ed06c35e48a2 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Wed, 21 May 2014 17:45:29 +0000 Subject: [PATCH] Improved messages --- lib/email_article_plugin.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/email_article_plugin.rb b/lib/email_article_plugin.rb index fd96988..af3f714 100644 --- a/lib/email_article_plugin.rb +++ b/lib/email_article_plugin.rb @@ -12,17 +12,17 @@ class EmailArticlePlugin < Noosfero::Plugin label = _("Send article to members") htmlclass = _("button with-text icon-menu-mail") title = _("Email article to all community members") - + lambda { - if !profile.blank? and !user.blank? and user.is_admin?(profile) and @page.kind_of?(TextArticle) + if !profile.blank? and !user.blank? and user.is_admin?(profile) and @page.kind_of?(TextArticle) link_to_remote( label, { :url => { :controller => 'email_article_plugin_myprofile', :action => "send_email", :id => @page}, :method => :get, - :success => "alert('Emails enviados')", - :failure => "alert('Erro ao enviar email')", - :confirm => _("Are you sure you want to email this article to the all community members?"), + :success => "alert('" + _("Messages sent to outbox, soon will be delivered") + "')", + :failure => "alert('" + _("Error sending emails") + "')", + :confirm => _("Are you sure you want to email this article to all community members?"), }, :class => htmlclass, :title => title -- libgit2 0.21.2