add language strings for configfiles

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-03-18 10:28:02 +01:00
parent 406b9241ce
commit 12bf7db481
4 changed files with 28 additions and 19 deletions

View File

@@ -86,7 +86,7 @@ if ($userinfo['change_serversettings'] == '1') {
'distribution' => $distribution,
// alert
'type' => 'info',
'alert_msg' => 'Parameter file generated successfully. Now run the following command as root:',
'alert_msg' => $lng['admin']['configfiles']['finishnote'],
'basedir' => \Froxlor\Froxlor::getInstallDir(),
'params_filename' => $params_filename
]);
@@ -108,7 +108,7 @@ if ($userinfo['change_serversettings'] == '1') {
'config' => [
'title' => $lng['admin']['configfiles']['serverconfiguration'],
'image' => 'fa-solid fa-wrench',
'description' => 'Configure the system services',
'description' => $lng['admin']['configfiles']['description'],
'sections' => [
'section_config' => [
'fields' => [
@@ -140,7 +140,7 @@ if ($userinfo['change_serversettings'] == '1') {
]] : [],
// alert
'type' => 'warning',
'alert_msg' => $lng['panel']['settings_before_configuration']
'alert_msg' => $lng['panel']['settings_before_configuration'] . ((int)Settings::Get('panel.is_configured') == 1 ? '<br><br>' . $lng['panel']['system_is_configured'] : '')
]);
}
}

View File

@@ -2060,11 +2060,9 @@ $lng['2fa']['2fa_ga_desc'] = 'Your account is set up to use time-based one-time
$lng['admin']['logviewenabled'] = 'Enable access to access/error-logs';
$lng['panel']['viewlogs'] = 'View logfiles';
$lng['panel']['not_configured'] = 'System not configured yet. Click here to go to configurations.';
$lng['panel']['done_configuring'] = 'When you are done configuring all required / desired services,<br>click the link below';
$lng['panel']['ihave_configured'] = 'I have configured the services';
$lng['panel']['system_is_configured'] = 'System is already set as configured';
$lng['panel']['system_is_configured'] = '<i class="fa-solid fa-circle-exclamation me-1"></i>System is already set as configured';
$lng['panel']['settings_before_configuration'] = 'Please be sure you adjusted the settings prior to configuring the services here';
$lng['panel']['alternative_cmdline_config'] = 'Alternatively, just run the following command as root-user in your shell to configure the services automatically';
$lng['tasks']['DELETE_DOMAIN_PDNS'] = 'Delete domain %domain% from PowerDNS database';
$lng['tasks']['DELETE_DOMAIN_SSL'] = 'Delete ssl files of domain %domain%';
$lng['admin']['novhostcontainer'] = '<br><br><small class="text-danger">None of the IPs and ports has the "' . $lng['admin']['ipsandports']['create_vhostcontainer'] . '" option enabled, many settings here will not be available</small>';
@@ -2148,3 +2146,8 @@ $lng['ssl_certificates']['valid_from'] = 'Valid from';
$lng['ssl_certificates']['valid_until'] = 'Valid until';
$lng['ssl_certificates']['issuer'] = 'Issuer';
$lng['panel']['listing_empty'] = 'No entries found';
$lng['admin']['configfiles']['finishnote'] = 'Parameter file generated successfully. Now run the following command as root:';
$lng['admin']['configfiles']['description'] = 'Configure the system services';
$lng['admin']['configfiles']['skipconfig'] = 'Don\'t (re)configure';
$lng['admin']['configfiles']['recommendednote'] = 'Recommended/required services based on current system settings';
$lng['admin']['configfiles']['selectrecommended'] = 'Select recommended';

View File

@@ -1706,11 +1706,9 @@ $lng['2fa']['2fa_ga_desc'] = 'Das Konto ist eingerichtet, um zeitbasierte Einmal
$lng['admin']['logviewenabled'] = 'Zugriff auf access/error-Logdateien';
$lng['panel']['viewlogs'] = 'Logdateien einsehen';
$lng['panel']['not_configured'] = 'Das System wurde noch nicht konfiguriert. Klicke auf den Button um die Installation zu starten.';
$lng['panel']['done_configuring'] = 'Nach Abschluss der Konfiguration der Dienste,<br>untenstehenden Link klicken';
$lng['panel']['ihave_configured'] = 'Ich habe die Dienste konfiguriert';
$lng['panel']['system_is_configured'] = 'Das System ist bereits konfiguriert';
$lng['panel']['system_is_configured'] = '<i class="fa-solid fa-circle-exclamation me-1"></i>Das System ist bereits konfiguriert';
$lng['panel']['settings_before_configuration'] = 'Stelle sicher, dass die Einstellungen angepasst wurden bevor die Dienste konfiguriert werden.';
$lng['panel']['alternative_cmdline_config'] = 'Alternativ, führe den folgenden Befehl als root-Benutzer auf der Shell aus, um die Dienste automatisch zu konfigurieren.';
$lng['tasks']['DELETE_DOMAIN_PDNS'] = 'Lösche Domain %domain% von PowerDNS Datenbank';
$lng['tasks']['DELETE_DOMAIN_SSL'] = 'Lösche SSL Dateien von Domain %domain%';
$lng['admin']['novhostcontainer'] = '<br><br><small class="text-danger">Keine der IPs und Ports hat die Option "' . $lng['admin']['ipsandports']['create_vhostcontainer'] . '" aktiviert, einige Einstellungen sind daher nicht verfügbar.</small>';
@@ -1790,3 +1788,8 @@ $lng['serversettings']['acmeshpath']['description'] = 'Installationspfad zu acme
$lng['panel']['usage_statistics'] = 'Resourcen-Verbrauch';
$lng['panel']['security_question'] = 'Sicherheitsabfrage';
$lng['panel']['listing_empty'] = 'Keine Einträge gefunden';
$lng['admin']['configfiles']['finishnote'] = 'Parameter Datei erfolgreich erstellt. Folgende Befehle müssen als root ausgeführt werden:';
$lng['admin']['configfiles']['description'] = 'System-Dienste konfigurieren';
$lng['admin']['configfiles']['skipconfig'] = 'Nicht (erneut) konfigurieren';
$lng['admin']['configfiles']['recommendednote'] = 'Empfohlene/benötigte Dienste ahand der aktuellen Systemeinstellungen';
$lng['admin']['configfiles']['selectrecommended'] = 'Empfohlene wählen';

View File

@@ -5,7 +5,7 @@
<i class="fa-solid fa-wrench"></i>
{{ lng('admin.configfiles.serverconfiguration') }}
</h5>
<span class="text-muted">Configure the system services</span>
<span class="text-muted">{{ lng('admin.configfiles.description') }}</span>
{% endblock %}
{% block actions %}
@@ -29,7 +29,7 @@
<div class="form-check">
<input class="form-check-input" type="radio" name="{{ stype }}" id="{{ stype }}none" value="x" checked>
<label class="form-check-label" for="{{ stype }}none">
Nicht (erneut) konfigurieren
{{ lng('admin.configfiles.skipconfig') }}
</label>
</div>
{% endif %}
@@ -46,14 +46,15 @@
(dtype == 'php-fpm' and get_setting('phpfpm.enabled') == '1') or
(dtype == 'cron')
%}
{% set recommended = true %}
{% set recommended = true %}
{% endif %}
<input class="form-check-input" type="checkbox" name="system[{{ dtype }}]" id="{{ dtype }}" value="{{ dtype }}" data-recommended="{{ recommended }}">
<label class="form-check-label" for="{{ dtype }}">
{% if recommended %}
<strong>{{ daemon.title }}<span class="text-danger">*</span></strong>
<strong>{{ daemon.title }}<span class="text-danger">*</span>
</strong>
{% else %}
{{ daemon.title }}
{{ daemon.title }}
{% endif %}
</label>
</div>
@@ -70,14 +71,15 @@
(dtype == 'proftpd' and get_setting('system.ftpserver') == 'proftpd') or
(dtype == 'pureftpd' and get_setting('system.ftpserver') == 'pureftpd')
%}
{% set recommended = true %}
{% set recommended = true %}
{% endif %}
<input class="form-check-input" type="radio" name="{{ stype }}" id="{{ dtype }}" value="{{ dtype }}" data-recommended="{{ recommended }}">
<label class="form-check-label" for="{{ dtype }}">
{% if recommended %}
<strong>{{ daemon.title }}<span class="text-danger">*</span></strong>
<strong>{{ daemon.title }}<span class="text-danger">*</span>
</strong>
{% else %}
{{ daemon.title }}
{{ daemon.title }}
{% endif %}
</label>
</div>
@@ -92,10 +94,11 @@
<div class="row mt-3">
<input type="hidden" name="finish" value="1"/>
<div class="col-12 col-md-6">
<span class="text-danger">*</span> Empfohlene/benötigte Dienste ahand der aktuellen Systemeinstellungen
<span class="text-danger">*</span>
{{ lng('admin.configfiles.recommendednote') }}
</div>
<div class="col-12 col-md-6 text-end">
<button type="button" class="btn btn-outline-secondary" id="selectRecommendedConfig">Empfohlene auswählen</button>
<button type="button" class="btn btn-outline-secondary" id="selectRecommendedConfig">{{ lng('admin.configfiles.selectrecommended') }}</button>
<button type="submit" class="btn btn-primary">{{ lng('update.proceed') }}</button>
</div>
</div>