fix language strings in formfiles, navigation and tablelisting

This commit is contained in:
envoyr
2022-04-28 17:10:20 +02:00
parent da89315a10
commit 3d7d03b1f5
23 changed files with 496 additions and 335 deletions

View File

@@ -4,15 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Ftp;
@@ -21,26 +29,26 @@ use Froxlor\UI\Listing;
return [
'backup_list' => [
'title' => $lng['error']['customerhasongoingbackupjob'],
'title' => lng('error.customerhasongoingbackupjob'),
'icon' => 'fa-solid fa-server',
'columns' => [
'destdir' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'data.destdir',
'callback' => [Ftp::class, 'pathRelative']
],
'backup_web' => [
'label' => $lng['extras']['backup_web'],
'label' => lng('extras.backup_web'),
'field' => 'data.backup_web',
'callback' => [Text::class, 'boolean'],
],
'backup_mail' => [
'label' => $lng['extras']['backup_mail'],
'label' => lng('extras.backup_mail'),
'field' => 'data.backup_mail',
'callback' => [Text::class, 'boolean'],
],
'backup_dbs' => [
'label' => $lng['extras']['backup_dbs'],
'label' => lng('extras.backup_dbs'),
'field' => 'data.backup_dbs',
'callback' => [Text::class, 'boolean'],
]
@@ -54,7 +62,7 @@ return [
'actions' => [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['abort'],
'title' => lng('panel.abort'),
'class' => 'btn-warning',
'href' => [
'section' => 'extras',

View File

@@ -4,26 +4,32 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Style;
use Froxlor\UI\Callbacks\Domain;
use Froxlor\UI\Listing;
return [
'domain_list' => [
'title' => $lng['admin']['domains'],
'title' => lng('admin.domains'),
'icon' => 'fa-solid fa-globe',
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
'columns' => [
@@ -31,12 +37,12 @@ return [
'field' => 'aliasdomainid'
],
'd.domain_ace' => [
'label' => $lng['domains']['domainname'],
'label' => lng('domains.domainname'),
'field' => 'domain_ace',
'callback' => [Domain::class, 'domainExternalLinkInfo'],
],
'd.documentroot' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'documentroot',
'callback' => [Domain::class, 'domainTarget'],
]
@@ -48,7 +54,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'domains',
'page' => 'domains',
@@ -59,7 +65,7 @@ return [
],
'logfiles' => [
'icon' => 'fa fa-file',
'title' => $lng['panel']['viewlogs'],
'title' => lng('panel.viewlogs'),
'href' => [
'section' => 'domains',
'page' => 'logfiles',
@@ -69,7 +75,7 @@ return [
],
'domaindnseditor' => [
'icon' => 'fa fa-globe',
'title' => $lng['dnseditor']['edit'],
'title' => lng('dnseditor.edit'),
'href' => [
'section' => 'domains',
'page' => 'domaindnseditor',
@@ -79,7 +85,7 @@ return [
],
'domainssleditor' => [
'icon' => 'fa fa-shield',
'title' => $lng['panel']['ssleditor'], // @todo different certificate types by $row['domain_hascert']
'title' => lng('panel.ssleditor'), // @todo different certificate types by $row['domain_hascert']
'href' => [
'section' => 'domains',
'page' => 'domainssleditor',
@@ -90,12 +96,12 @@ return [
],
'letsencrypt' => [
'icon' => 'fa fa-shield',
'title' => $lng['panel']['letsencrypt'],
'title' => lng('panel.letsencrypt'),
'visible' => [Domain::class, 'hasLetsEncryptActivated']
],
'haslias' => [
'icon' => 'fa fa-arrow-up-right-from-square',
'title' => $lng['domains']['hasaliasdomains'],
'title' => lng('domains.hasaliasdomains'),
'href' => [
'section' => 'domains',
'page' => 'domains',
@@ -106,12 +112,12 @@ return [
],
'isassigned' => [
'icon' => 'fa-check-to-slot',
'title' => $lng['domains']['isassigneddomain'],
'title' => lng('domains.isassigneddomain'),
'visible' => [Domain::class, 'isAssigned']
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'domains',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Settings;
@@ -23,32 +30,32 @@ use Froxlor\UI\Listing;
return [
'email_list' => [
'title' => $lng['menue']['email']['emails'],
'title' => lng('menue.email.emails'),
'icon' => 'fa-solid fa-envelope',
'self_overview' => ['section' => 'email', 'page' => 'emails'],
'columns' => [
'm.email_full' => [
'label' => $lng['emails']['emailaddress'],
'label' => lng('emails.emailaddress'),
'field' => 'email_full',
],
'm.destination' => [
'label' => $lng['emails']['forwarders'],
'label' => lng('emails.forwarders'),
'field' => 'destination',
// @todo formatting
],
'm.popaccountid' => [
'label' => $lng['emails']['account'],
'label' => lng('emails.account'),
'field' => 'popaccountid',
'callback' => [Email::class, 'account'],
],
'm.iscatchall' => [
'label' => $lng['emails']['catchall'],
'label' => lng('emails.catchall'),
'field' => 'iscatchall',
'callback' => [Text::class, 'boolean'],
'visible' => Settings::Get('catchall.catchall_enabled') == '1'
],
'm.quota' => [
'label' => $lng['emails']['quota'],
'label' => lng('emails.quota'),
'field' => 'quota',
'visible' => Settings::Get('system.mail_quota_enabled') == '1'
]
@@ -63,7 +70,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'email',
'page' => 'emails',
@@ -73,7 +80,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'email',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Settings;
@@ -22,25 +29,25 @@ use Froxlor\UI\Listing;
return [
'ftp_list' => [
'title' => $lng['menue']['ftp']['accounts'],
'title' => lng('menue.ftp.accounts'),
'icon' => 'fa-solid fa-users',
'self_overview' => ['section' => 'ftp', 'page' => 'accounts'],
'columns' => [
'username' => [
'label' => $lng['login']['username'],
'label' => lng('login.username'),
'field' => 'username',
],
'description' => [
'label' => $lng['panel']['ftpdesc'],
'label' => lng('panel.ftpdesc'),
'field' => 'description'
],
'homedir' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'homedir',
'callback' => [Ftp::class, 'pathRelative']
],
'shell' => [
'label' => $lng['panel']['shell'],
'label' => lng('panel.shell'),
'field' => 'shell',
'visible' => Settings::Get('system.allow_customer_shell') == '1'
]
@@ -54,7 +61,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'ftp',
'page' => 'accounts',
@@ -64,7 +71,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'ftp',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Ftp;
@@ -22,34 +29,34 @@ use Froxlor\UI\Listing;
return [
'htaccess_list' => [
'title' => $lng['menue']['extras']['pathoptions'],
'title' => lng('menue.extras.pathoptions'),
'icon' => 'fa-solid fa-folder',
'self_overview' => ['section' => 'extras', 'page' => 'htaccess'],
'columns' => [
'path' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'path',
'callback' => [Ftp::class, 'pathRelative']
],
'options_indexes' => [
'label' => $lng['extras']['view_directory'],
'label' => lng('extras.view_directory'),
'field' => 'options_indexes',
'callback' => [Text::class, 'boolean']
],
'error404path' => [
'label' => $lng['extras']['error404path'],
'label' => lng('extras.error404path'),
'field' => 'error404path'
],
'error403path' => [
'label' => $lng['extras']['error403path'],
'label' => lng('extras.error403path'),
'field' => 'error403path'
],
'error500path' => [
'label' => $lng['extras']['error500path'],
'label' => lng('extras.error500path'),
'field' => 'error500path'
],
'options_cgi' => [
'label' => $lng['extras']['execute_perl'],
'label' => lng('extras.execute_perl'),
'field' => 'options_cgi',
'callback' => [Text::class, 'boolean'],
'visible' => $cperlenabled
@@ -66,7 +73,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'extras',
'page' => 'htaccess',
@@ -76,7 +83,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'extras',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Ftp;
@@ -21,16 +28,16 @@ use Froxlor\UI\Listing;
return [
'htpasswd_list' => [
'title' => $lng['menue']['extras']['directoryprotection'],
'title' => lng('menue.extras.directoryprotection'),
'icon' => 'fa-solid fa-lock',
'self_overview' => ['section' => 'extras', 'page' => 'htpasswds'],
'columns' => [
'username' => [
'label' => $lng['login']['username'],
'label' => lng('login.username'),
'field' => 'username'
],
'path' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'path',
'callback' => [Ftp::class, 'pathRelative']
]
@@ -42,7 +49,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'extras',
'page' => 'htpasswds',
@@ -52,7 +59,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'extras',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Mysql;
@@ -22,25 +29,25 @@ use Froxlor\UI\Listing;
return [
'mysql_list' => [
'title' => $lng['menue']['mysql']['databases'],
'title' => lng('menue.mysql.databases'),
'icon' => 'fa-solid fa-database',
'self_overview' => ['section' => 'mysql', 'page' => 'mysqls'],
'columns' => [
'databasename' => [
'label' => $lng['mysql']['databasename'],
'label' => lng('mysql.databasename'),
'field' => 'databasename',
],
'description' => [
'label' => $lng['mysql']['databasedescription'],
'label' => lng('mysql.databasedescription'),
'field' => 'description'
],
'size' => [
'label' => $lng['mysql']['size'],
'label' => lng('mysql.size'),
'field' => 'size',
'callback' => [Text::class, 'size']
],
'dbserver' => [
'label' => $lng['mysql']['mysql_server'],
'label' => lng('mysql.mysql_server'),
'field' => 'dbserver',
'callback' => [Mysql::class, 'dbserver'],
'visible' => $count_mysqlservers > 1
@@ -55,7 +62,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'mysql',
'page' => 'mysqls',
@@ -65,7 +72,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'mysql',