resolve old lng-references

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-02 08:56:39 +02:00
parent 7b6d5f1642
commit 00a3424f65
16 changed files with 41 additions and 24 deletions

View File

@@ -255,7 +255,7 @@ return [
'extras' => lng('menue.extras.extras'),
'extras.directoryprotection' => lng('menue.extras.extras') . " / " . lng('menue.extras.directoryprotection'),
'extras.pathoptions' => lng('menue.extras.extras') . " / " . lng('menue.extras.pathoptions'),
'extras.logger' => lng('menue.extras.extras') . " / " . lng('admin.loggersystem'),
'extras.logger' => lng('menue.extras.extras') . " / " . lng('menue.logger.logger'),
'extras.backup' => lng('menue.extras.extras') . " / " . lng('menue.extras.backup'),
'traffic' => lng('menue.traffic.traffic'),
'traffic.http' => lng('menue.traffic.traffic') . " / HTTP",

View File

@@ -296,5 +296,9 @@ elseif ($page == 'error') {
// 9 = checksum mismatch
// 10 = <php-7.4
// 11 = enable_webupdate = false
Response::standardError('autoupdate_' . $errno);
$errmsg = 'autoupdate_' . $errno;
if ($errno == 3) {
$errmsg = 'customized_version';
}
Response::standardError($errmsg);
}

View File

@@ -213,17 +213,17 @@ if ($page == 'overview') {
if ($old_password == '') {
Response::standardError([
'stringisempty',
'oldpassword'
'changepassword.old_password'
]);
} elseif ($new_password == '') {
Response::standardError([
'stringisempty',
'newpassword'
'changepassword.new_password'
]);
} elseif ($new_password_confirm == '') {
Response::standardError([
'stringisempty',
'newpasswordconfirm'
'changepassword.new_password_confirm'
]);
} elseif ($new_password != $new_password_confirm) {
Response::standardError('newpasswordconfirmerror');

View File

@@ -141,17 +141,17 @@ if ($page == 'overview') {
if ($old_password == '') {
Response::standardError([
'stringisempty',
'oldpassword'
'changepassword.old_password'
]);
} elseif ($new_password == '') {
Response::standardError([
'stringisempty',
'newpassword'
'changepassword.new_password'
]);
} elseif ($new_password_confirm == '') {
Response::standardError([
'stringisempty',
'newpasswordconfirm'
'changepassword.new_password_confirm'
]);
} elseif ($new_password != $new_password_confirm) {
Response::standardError('newpasswordconfirmerror');

View File

@@ -1136,7 +1136,7 @@ class Customers extends ApiCommand implements ResourceEntity
if ($email == '') {
Response::standardError([
'stringisempty',
'emailadd'
'customer.email'
], '', true);
} elseif (!Validate::validateEmail($email)) {
Response::standardError('emailiswrong', $email, true);

View File

@@ -207,7 +207,7 @@ return [
],
'ssl_ipandport' => [
'label' => lng('domains.ipandport_ssl_multi.title'),
'desc' => lng('domains.ipandport_ssl_multi.description'),
'desc' => lng('domains.ipandport_multi.description'),
'type' => 'checkbox',
'values' => $ssl_ipsandports,
'value' => explode(',', Settings::Get('system.defaultsslip')),
@@ -296,7 +296,7 @@ return [
],
'include_specialsettings' => [
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
'label' => lng('admin.include_ownvhostsettings'),
'label' => lng('serversettings.includedefault_sslvhostconf'),
'type' => 'checkbox',
'value' => '1',
'checked' => false

View File

@@ -234,7 +234,7 @@ return [
],
'ssl_ipandport' => [
'label' => lng('domains.ipandport_ssl_multi.title'),
'desc' => lng('domains.ipandport_ssl_multi.description'),
'desc' => lng('domains.ipandport_multi.description'),
'type' => 'checkbox',
'values' => $ssl_ipsandports,
'value' => $usedips,
@@ -321,7 +321,7 @@ return [
'value' => $result['ssl_specialsettings']
],
'include_specialsettings' => [
'label' => lng('admin.include_ownvhostsettings'),
'label' => lng('serversettings.includedefault_sslvhostconf'),
'type' => 'checkbox',
'value' => '1',
'checked' => $result['include_specialsettings']

View File

@@ -115,7 +115,7 @@ return [
'rows' => 12
],
'include_default_vhostconf_domain' => [
'label' => lng('admin.include_ownvhostsettings'),
'label' => lng('serversettings.includedefault_sslvhostconf'),
'type' => 'checkbox',
'value' => '1',
'checked' => false
@@ -158,7 +158,7 @@ return [
'rows' => 12
],
'include_specialsettings' => [
'label' => lng('admin.include_ownvhostsettings'),
'label' => lng('serversettings.includedefault_sslvhostconf'),
'type' => 'checkbox',
'value' => '1',
'checked' => false

View File

@@ -120,7 +120,7 @@ return [
'value' => $result['ssl_default_vhostconf_domain']
],
'include_default_vhostconf_domain' => [
'label' => lng('admin.include_ownvhostsettings'),
'label' => lng('serversettings.includedefault_sslvhostconf'),
'type' => 'checkbox',
'value' => '1',
'checked' => $result['include_default_vhostconf_domain']
@@ -168,7 +168,7 @@ return [
'value' => $result['ssl_specialsettings']
],
'include_specialsettings' => [
'label' => lng('admin.include_ownvhostsettings'),
'label' => lng('serversettings.includedefault_sslvhostconf'),
'type' => 'checkbox',
'value' => '1',
'checked' => $result['include_specialsettings']

View File

@@ -151,7 +151,6 @@ return [
'normal' => 'normální',
'paranoid' => 'paranoidní',
],
'loggersystem' => 'Systémový log',
'emaildomain' => 'Emailová doména',
'email_only' => 'Jen email?',
'wwwserveralias' => 'Přidat "www." ServerAlias',
@@ -561,6 +560,9 @@ return [
'phpsettings' => [
'maintitle' => 'PHP konfigurace',
],
'logger' => [
'logger' => 'Systémový log',
],
],
'message' => [
'norecipients' => 'Email nebyl odeslán, protože databáze neobsahuje žádné příjemce',

View File

@@ -240,7 +240,6 @@ return [
'normal' => 'Normal',
'paranoid' => 'Paranoid',
],
'loggersystem' => 'System-Log',
'emaildomain' => 'E-Mail-Domain',
'email_only' => 'Nur als E-Mail-Domain verwenden?',
'wwwserveralias' => 'Einen "www." ServerAlias hinzufügen',
@@ -1057,6 +1056,9 @@ Vielen Dank, Ihr Administrator',
'maintitle' => 'PHP-Konfigurationen',
'fpmdaemons' => 'PHP-FPM Versionen',
],
'logger' => [
'logger' => 'System-Log',
],
],
'message' => [
'norecipients' => 'Es wurde keine E-Mail versendet, da sich keine Empfänger in der Datenbank befinden',
@@ -1936,6 +1938,7 @@ Vielen Dank, Ihr Administrator',
],
'default_sslvhostconf' => [
'title' => 'Standard SSL vHost-Einstellungen',
'description' => 'Der Inhalt dieses Feldes wird direkt in den IP/Port-vHost-Container übernommen. Die folgenden Variablen können verwendet werden:<br/><code>{DOMAIN}</code>, <code>{DOCROOT}</code>, <code>{CUSTOMER}</code>, <code>{IP}</code>, <code>{PORT}</code>, <code>{SCHEME}</code>, <code>{FPMSOCKET}</code> (wenn zutreffend)<br/><br /><strong>ACHTUNG:</strong> Der Code wird nicht auf Fehler geprüft. Etwaige Fehler werden also auch übernommen. Der Webserver könnte nicht mehr starten!',
],
'includedefault_sslvhostconf' => 'Nicht-SSL vHost-Einstellungen in SSL-vHost inkludieren',
'apply_specialsettings_default' => [

View File

@@ -243,7 +243,6 @@ return [
'normal' => 'normal',
'paranoid' => 'paranoid',
],
'loggersystem' => 'System log',
'emaildomain' => 'Emaildomain',
'email_only' => 'Only email?',
'wwwserveralias' => 'Add a "www." ServerAlias',
@@ -2287,6 +2286,7 @@ Yours sincerely, your administrator',
],
'default_sslvhostconf' => [
'title' => 'Default SSL vHost-settings',
'description' => 'The content of this field will be included into this ip/port vHost container directly. You can use the following variables:<br/><code>{DOMAIN}</code>, <code>{DOCROOT}</code>, <code>{CUSTOMER}</code>, <code>{IP}</code>, <code>{PORT}</code>, <code>{SCHEME}</code>, <code>{FPMSOCKET}</code> (if applicable)<br/> Attention: The code won\'t be checked for any errors. If it contains errors, webserver might not start again!',
],
'includedefault_sslvhostconf' => 'Include non-SSL vHost-settings in SSL-vHost',
'apply_specialsettings_default' => [

View File

@@ -148,7 +148,6 @@ return [
'normal' => 'normal',
'paranoid' => 'paranoïaque',
],
'loggersystem' => 'Log système',
'emaildomain' => 'Domaine e-mail',
'email_only' => 'Seulement des e-mails ?',
'wwwserveralias' => 'Ajouter un "www." à l\'alias du serveur "ServerAlias"',
@@ -462,6 +461,9 @@ return [
'traffic' => 'Trafic',
'current' => 'Mois actuel',
],
'logger' => [
'logger' => 'Log système',
],
],
'message' => [
'norecipients' => 'Aucun e-mail n\'a été envoyé car il n\'existe aucun destinataire dans la base de données',

View File

@@ -207,7 +207,6 @@ return [
'normal' => 'normale',
'paranoid' => 'paranoico',
],
'loggersystem' => 'Log di Sistema',
'emaildomain' => 'Email dominio',
'email_only' => 'Solo email?',
'wwwserveralias' => 'Aggiungi a "www." ServerAlias',
@@ -1077,6 +1076,9 @@ Cordiali Saluti, Team Froxlor',
'phpsettings' => [
'maintitle' => 'Configurazioni PHP',
],
'logger' => [
'logger' => 'Log di Sistema',
],
],
'message' => [
'norecipients' => 'Nessuna e-mail è stata inviata perch¸ non ci sono i destinatari nel database',

View File

@@ -172,7 +172,6 @@ return [
'normal' => 'normaal',
'paranoid' => 'paranoide',
],
'loggersystem' => 'Systeemlog',
'emaildomain' => 'Emaildomein',
'email_only' => 'Alleen email?',
'wwwserveralias' => 'Voeg een "www." ServerAlias toe',
@@ -653,6 +652,9 @@ Met vriendelijke groet, uw beheerder',
'phpsettings' => [
'maintitle' => 'PHP Configuratie\'s',
],
'logger' => [
'logger' => 'Systeemlog',
],
],
'message' => [
'norecipients' => 'Er is geen email verstuurd omdat er geen ontvangers in de database zijn',

View File

@@ -160,7 +160,6 @@ return [
'normal' => 'normal',
'paranoid' => 'paranóico',
],
'loggersystem' => 'Sistema-Log',
'emaildomain' => 'Domínio de Email',
'email_only' => 'Somente Email?',
'wwwserveralias' => 'Adicionar um "www." ServerAlias',
@@ -550,6 +549,9 @@ return [
'phpsettings' => [
'maintitle' => 'Configurações do PHP',
],
'logger' > [
'logger' => 'Sistema-Log',
],
],
'message' => [
'norecipients' => 'Email não enviado porque não tem destinatário no banco de dados',