diff options
| author | 2014-12-17 17:21:41 +0100 | |
|---|---|---|
| committer | 2014-12-17 17:21:41 +0100 | |
| commit | 7f4ca35fc331ca4ce5e097d574e99417da0ef73e (patch) | |
| tree | 5704375b496e0c6a13f25f545ec2cee00ad54a56 /app/views/index/normal.phtml | |
| parent | 67aa7e76c186e43a5e0290ed2c512791c7a3005c (diff) | |
Fix i18n strings for sharing
Fix https://github.com/FreshRSS/FreshRSS/issues/728
Diffstat (limited to 'app/views/index/normal.phtml')
| -rw-r--r-- | app/views/index/normal.phtml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 3a27a702b..66111397c 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -140,10 +140,14 @@ if (!empty($this->entries)) { <ul class="dropdown-menu"> <li class="dropdown-close"><a href="#close">❌</a></li> - <?php foreach ($sharing as $share) :?> + <?php + foreach ($sharing as $share) : + $type_share = FreshRSS_Context::$conf->shares[$share['type']]; + $has_specific_title = ($type_share['form'] === 'advanced'); + ?> <li class="item share"> <a target="_blank" href="<?php echo FreshRSS_Share::generateUrl(FreshRSS_Context::$conf->shares, $share, $item->link(), $item->title() . ' . ' . $feed->name())?>"> - <?php echo _t('index.share.' . $share['name']);?> + <?php echo $has_specific_title ? $share['name'] : _t('index.share.' . $share['name']); ?> </a> </li> <?php endforeach;?> |
