Add translations to Crafty Config Page and wizard

This commit is contained in:
amcmanu3 2023-02-03 16:00:13 -05:00
parent 6b5ec51887
commit ca0a53b326
4 changed files with 19 additions and 10 deletions

View File

@ -1,14 +1,17 @@
<ul class="nav nav-tabs col-md-12 tab-simple-styled" role="tablist" style="margin-top: 0;">
<li class="nav-item term-nav-item">
<a class="nav-link {% if data['active_link'] == 'panel_config' %}active{% end %}" href="/panel/panel_config" role="tab" aria-selected="false">
<i class="fas fa-file-signature"></i>Panel Config</a>
<a class="nav-link {% if data['active_link'] == 'panel_config' %}active{% end %}" href="/panel/panel_config"
role="tab" aria-selected="false">
<i class="fa-solid fa-wrench"></i>{{ translate('panelConfig', 'pageTitle', data['lang']) }}</a>
</li>
<li class="nav-item term-nav-item">
<a class="nav-link {% if data['active_link'] == 'config_json' %}active{% end %}" href="/panel/config_json" role="tab" aria-selected="false">
<i class="fas fa-file-signature"></i>Config.json</a>
<a class="nav-link {% if data['active_link'] == 'config_json' %}active{% end %}" href="/panel/config_json"
role="tab" aria-selected="false">
<i class="fa-solid fa-code"></i>{{ translate('panelConfig', 'json', data['lang']) }}</a>
</li>
<li class="nav-item term-nav-item">
<a class="nav-link {% if data['active_link'] == 'custom_login' %}active{% end %}" href="/panel/custom_login" role="tab" aria-selected="false">
<i class="fas fa-file-signature"></i>Custom Login</a>
<a class="nav-link {% if data['active_link'] == 'custom_login' %}active{% end %}" href="/panel/custom_login"
role="tab" aria-selected="false">
<i class="fa fa-palette"></i>{{ translate('panelConfig', 'custom', data['lang']) }}</a>
</li>
</ul>

View File

@ -346,11 +346,12 @@
<div class="col-sm-12">
<div class="form-group">
<label for="server">Server Upload </label><br>
<label for="server">{{ translate('serverWizard', 'serverUpload', data['lang']) }}</label><br>
<span id="upload_input">
<input type="file" multiple="false" class="form-control" id="file" name="file" required
style="width: 70%;">
<button type="button" class="btn btn-info" onclick="sendFile()">UPLOAD</button>
<button type="button" class="btn btn-info" onclick="sendFile()">{{ translate('serverWizard',
'uploadButton', data['lang']) }}</button>
</span>
</div>
</div>

View File

@ -456,11 +456,12 @@
<div class="col-sm-12">
<div class="form-group">
<label for="server">Server Upload </label><br>
<label for="server">{{ translate('serverWizard', 'serverUpload', data['lang']) }}</label><br>
<span id="upload_input">
<input type="file" multiple="false" class="form-control" id="file" name="file" required
style="width: 70%;">
<button type="button" class="btn btn-info" onclick="sendFile()">UPLOAD</button>
<button type="button" class="btn btn-info" onclick="sendFile()">{{ translate('serverWizard',
'uploadButton', data['lang']) }}</button>
</span>
</div>
</div>

View File

@ -222,6 +222,8 @@
"newRole": "Add New Role",
"newUser": "Add New User",
"pageTitle": "Panel Config",
"json": "Config.json",
"custom": "Customize Crafty",
"role": "Role",
"roles": "Roles",
"roleUsers": "Role Users",
@ -548,7 +550,9 @@
"serverType": "Server Type",
"serverSelect": "Server Select",
"serverVersion": "Server Version",
"serverUpload": "Upload Zipped Server",
"sizeInGB": "Size in GB",
"uploadButton": "Upload",
"zipPath": "Server Path"
},
"sidebar": {