update translations

This commit is contained in:
Jean-Christian Paul Denis 2021-10-26 23:18:12 +02:00
parent 79a77474f0
commit ab707498b9
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
4 changed files with 364 additions and 586 deletions

View File

@ -55,10 +55,10 @@ class adminKutrl
public static function sortbyCombo() public static function sortbyCombo()
{ {
return [ return [
__('Date') => 'kut_dt', __('Date') => 'kut_dt',
__('Short URL') => 'kut_hash', __('Short link') => 'kut_hash',
__('Long URL') => 'kut_url', __('Long link') => 'kut_url',
__('Service') => 'kut_service' __('Service') => 'kut_service'
]; ];
} }
@ -79,7 +79,7 @@ class adminKutrl
public static function adminColumnsLists(dcCore $core, $cols) public static function adminColumnsLists(dcCore $core, $cols)
{ {
$cols['kUtRL'] = [ $cols['kUtRL'] = [
__('URL shortener'), __('Links shortener'),
[ [
'kut_hash' => [true, __('Hash')], 'kut_hash' => [true, __('Hash')],
'kut_dt' => [true, __('Date')], 'kut_dt' => [true, __('Date')],
@ -91,11 +91,11 @@ class adminKutrl
public static function adminFiltersLists(dcCore $core, $sorts) public static function adminFiltersLists(dcCore $core, $sorts)
{ {
$sorts['kUtRL'] = [ $sorts['kUtRL'] = [
__('URL shortener'), __('Links shortener'),
self::sortbyCombo(), self::sortbyCombo(),
'kut_dt', 'kut_dt',
'desc', 'desc',
[__('Links per page'), 30] [__('links per page'), 30]
]; ];
} }
@ -278,8 +278,8 @@ class adminKutrl
return null; return null;
} }
$args[0][__('kUtRL')][__('Create short link')] = 'kutrl_create'; $args[0][__('Links shortener')][__('Create short link')] = 'kutrl_create';
$args[0][__('kUtRL')][__('Delete short link')] = 'kutrl_delete'; $args[0][__('Links shortener')][__('Delete short link')] = 'kutrl_delete';
} }
public static function adminPostsActions(dcCore $core, $posts, $action, $redir) public static function adminPostsActions(dcCore $core, $posts, $action, $redir)

View File

@ -75,7 +75,7 @@ if (!empty($_POST['save'])) {
$core->blog->triggerBlog(); $core->blog->triggerBlog();
dcPage::addSuccessNotice( dcPage::addSuccessNotice(
__('Configuration successfully saved') __('Configuration successfully updated.')
); );
$core->adminurl->redirect( $core->adminurl->redirect(
@ -90,7 +90,7 @@ if (!empty($_POST['save'])) {
echo ' echo '
<div class="fieldset"><h4>' . __('Settings') . '</h4> <div class="fieldset"><h4>' . __('Settings') . '</h4>
<div id="setting-plugin"> <div id="setting-plugin">
<h5>' . __('Plugin activation') . '</h5> <h5>' . __('Activation') . '</h5>
<p><label class="classic">' . <p><label class="classic">' .
form::checkbox(['s_active'], '1', $s_active) . form::checkbox(['s_active'], '1', $s_active) .
__('Enable plugin') . '</label></p> __('Enable plugin') . '</label></p>

View File

@ -16,7 +16,7 @@ if (!defined('DC_RC_PATH')) {
} }
$this->registerModule( $this->registerModule(
'URL shortener', 'Links shortener',
'Use, create and serve short url on your blog', 'Use, create and serve short url on your blog',
'Jean-Christian Denis and contributors', 'Jean-Christian Denis and contributors',
'2021.09.16', '2021.09.16',

File diff suppressed because it is too large Load Diff