From 502cd82cfc1e6c3861f811c0d536b8cae6a7a753 Mon Sep 17 00:00:00 2001 From: Marcos Ronaldo Date: Tue, 17 May 2016 15:42:02 -0300 Subject: [PATCH] admin_notifications: checkbox message for profile --- plugins/admin_notifications/po/admin_notifications.pot | 8 ++++++-- plugins/admin_notifications/po/pt/admin_notifications.po | 3 +++ plugins/admin_notifications/views/shared/_form.html.erb | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/admin_notifications/po/admin_notifications.pot b/plugins/admin_notifications/po/admin_notifications.pot index 39c6f88..2d8746f 100644 --- a/plugins/admin_notifications/po/admin_notifications.pot +++ b/plugins/admin_notifications/po/admin_notifications.pot @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-05-16 14:48-0300\n" -"PO-Revision-Date: 2016-05-16 14:48-0300\n" +"POT-Creation-Date: 2016-05-17 15:38-0300\n" +"PO-Revision-Date: 2016-05-17 15:38-0300\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -113,6 +113,10 @@ msgid "Red - Danger" msgstr "" #: ../views/shared/_form.html.erb:23 +msgid "Display only in the profile homepage" +msgstr "" + +#: ../views/shared/_form.html.erb:23 msgid "Display only in the homepage" msgstr "" diff --git a/plugins/admin_notifications/po/pt/admin_notifications.po b/plugins/admin_notifications/po/pt/admin_notifications.po index 32c32da..046e7f1 100644 --- a/plugins/admin_notifications/po/pt/admin_notifications.po +++ b/plugins/admin_notifications/po/pt/admin_notifications.po @@ -89,6 +89,9 @@ msgstr "Verde - Sucesso" msgid "Red - Danger" msgstr "Vermelho - Perigo" +msgid "Display only in the profile homepage" +msgstr "Apresentar apenas na página inicial do perfil" + msgid "Display only in the homepage" msgstr "Apresentar apenas na página inicial" diff --git a/plugins/admin_notifications/views/shared/_form.html.erb b/plugins/admin_notifications/views/shared/_form.html.erb index 0dbccab..42596d0 100644 --- a/plugins/admin_notifications/views/shared/_form.html.erb +++ b/plugins/admin_notifications/views/shared/_form.html.erb @@ -20,7 +20,7 @@ <%= labelled_form_field(_('Notifications Color/Type'), select(:notifications, :type, options_for_select_with_title({_("Blue - Information") => "AdminNotificationsPlugin::InformationNotification", _("Yellow - Warning") => "AdminNotificationsPlugin::WarningNotification", _("Green - Success") => "AdminNotificationsPlugin::SuccessNotification", _("Red - Danger") => "AdminNotificationsPlugin::DangerNotification"}, @notification.type))) %>
- <%= labelled_check_box(_("Display only in the homepage"), 'notifications[display_only_in_homepage]', '1', @notification.display_only_in_homepage?) %> + <%= labelled_check_box(profile.present? ? _("Display only in the profile homepage") : _("Display only in the homepage") , 'notifications[display_only_in_homepage]', '1', @notification.display_only_in_homepage?) %>
-- libgit2 0.21.2