mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-25 02:56:04 -05:00
Fix i18n strings for sharing
Fix https://github.com/FreshRSS/FreshRSS/issues/728
This commit is contained in:
@@ -34,8 +34,6 @@ class FreshRSS_entry_Controller extends Minz_ActionController {
|
||||
* - nextGet (default: $get)
|
||||
* - idMax (default: 0)
|
||||
* - is_read (default: true)
|
||||
*
|
||||
* @todo nextGet system should not be present here... or should be?
|
||||
*/
|
||||
public function readAction() {
|
||||
$id = Minz_Request::param('id');
|
||||
|
||||
@@ -125,8 +125,6 @@ class FreshRSS_importExport_Controller extends Minz_ActionController {
|
||||
*
|
||||
* Itis a *very* basic guess file type function. Only based on filename.
|
||||
* That's could be improved but should be enough for what we have to do.
|
||||
*
|
||||
* @todo move into lib_rss.php
|
||||
*/
|
||||
private function guessFileType($filename) {
|
||||
if (substr_compare($filename, '.zip', -4) === 0) {
|
||||
|
||||
@@ -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;?>
|
||||
|
||||
Reference in New Issue
Block a user