From b8d22dcde8499e31d843bcb3f00f15c3af7be029 Mon Sep 17 00:00:00 2001 From: Peter Anderson Date: Sat, 20 Apr 2019 22:56:58 +0300 Subject: [PATCH] Better RSS feed wording I don't think 'me RSS feed' or 'us RSS feed' makes much sense, so this changes the wording slightly to have proper grammar. --- on_the_web.module | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/on_the_web.module b/on_the_web.module index 2e2db24..e818cd6 100755 --- a/on_the_web.module +++ b/on_the_web.module @@ -178,7 +178,16 @@ function on_the_web_display_block($delta, $settings = array(), $contexts = array $title = t('Find !us on !service', array('!us' => $name, '!service' => $info['name'])); } else { - $title = t('!us RSS feed', array('!us' => $name)); + if ($config->get('sitename') == 1) { + $rss_name = $name; + } + elseif ($config->get('sitename') == 0) { + $rss_name = t('Our'); + } + elseif ($config->get('sitename') == 2) { + $rss_name = t('My'); + } + $title = t('!us RSS feed', array('!us' => $rss_name)); } $size = $config->get('size');