mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-19 05:44:39 -04:00
Fix i18n for extension system
This commit is contained in:
@@ -9,9 +9,9 @@ if (!Minz_Request::param('ajax')) {
|
||||
<div class="post">
|
||||
<h1><?php echo $this->extension->getName(); ?> (<?php echo $this->extension->getVersion(); ?>) — <?php echo $this->extension->getType(); ?></h1>
|
||||
|
||||
<p class="alert alert-warn"><?php echo $this->extension->getDescription(); ?> — <?php echo _t('gen.by'), ' ', $this->extension->getAuthor(); ?></p>
|
||||
<p class="alert alert-warn"><?php echo $this->extension->getDescription(); ?> — <?php echo _t('gen.short.by_author', $this->extension->getAuthor()); ?></p>
|
||||
|
||||
<h2><?php echo _t('gen.actions.manage'); ?></h2>
|
||||
<h2><?php echo _t('gen.action.manage'); ?></h2>
|
||||
<?php
|
||||
$configure_view = $this->extension->getConfigureView();
|
||||
if ($configure_view !== false) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php $this->partial('aside_configure'); ?>
|
||||
|
||||
<div class="post">
|
||||
<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.back_to_rss_feeds'); ?></a>
|
||||
<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
|
||||
|
||||
<h1><?php echo _t('admin.extensions.title'); ?></h1>
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
<?php if ($ext->getType() === 'user' || FreshRSS_Auth::hasAccess('admin')) { ?>
|
||||
<?php $name_encoded = urlencode($ext->getName()); ?>
|
||||
<div class="stick">
|
||||
<a class="btn open-slider" href="<?php echo _url('extension', 'configure', 'e', $name_encoded); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.actions.manage'); ?></a>
|
||||
<a class="btn open-slider" href="<?php echo _url('extension', 'configure', 'e', $name_encoded); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.action.manage'); ?></a>
|
||||
<?php if ($ext->is_enabled()) { ?>
|
||||
<button class="btn active" form="form-extension" formaction="<?php echo _url('extension', 'disable', 'e', $name_encoded); ?>"><?php echo _t('gen.actions.disable'); ?></button>
|
||||
<button class="btn active" form="form-extension" formaction="<?php echo _url('extension', 'disable', 'e', $name_encoded); ?>"><?php echo _t('gen.action.disable'); ?></button>
|
||||
<?php } else { ?>
|
||||
<button class="btn" form="form-extension" formaction="<?php echo _url('extension', 'enable', 'e', $name_encoded); ?>"><?php echo _t('gen.actions.enable'); ?></button>
|
||||
<button class="btn" form="form-extension" formaction="<?php echo _url('extension', 'enable', 'e', $name_encoded); ?>"><?php echo _t('gen.action.enable'); ?></button>
|
||||
<?php } ?>
|
||||
<?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
|
||||
<button class="btn btn-attention confirm" form="form-extension" formaction="<?php echo _url('extension', 'remove', 'e', $name_encoded); ?>"><?php echo _t('gen.actions.remove'); ?></button>
|
||||
<button class="btn btn-attention confirm" form="form-extension" formaction="<?php echo _url('extension', 'remove', 'e', $name_encoded); ?>"><?php echo _t('gen.action.remove'); ?></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
|
||||
Reference in New Issue
Block a user