Add strings to en_US locale, update template

This commit is contained in:
billz 2024-12-26 09:41:52 -08:00
parent 3c61954971
commit 9bb2075b77
4 changed files with 66 additions and 2 deletions

View File

@ -503,6 +503,7 @@ $('#install-user-plugin').on('shown.bs.modal', function (e) {
$('#js-install-plugin-confirm').on('click', function (e) { $('#js-install-plugin-confirm').on('click', function (e) {
var progressText = $('#js-install-plugin-confirm').attr('data-message'); var progressText = $('#js-install-plugin-confirm').attr('data-message');
var successHtml = $('#plugin-install-message').attr('data-message'); var successHtml = $('#plugin-install-message').attr('data-message');
var successText = $('<div>').text(successHtml).text();
var pluginUri = $('#plugin-uri a').attr('href'); var pluginUri = $('#plugin-uri a').attr('href');
var pluginVersion = $('#plugin-version').text(); var pluginVersion = $('#plugin-version').text();
var csrfToken = $('meta[name=csrf_token]').attr('content'); var csrfToken = $('meta[name=csrf_token]').attr('content');
@ -517,7 +518,7 @@ $('#js-install-plugin-confirm').on('click', function (e) {
setTimeout(function(){ setTimeout(function(){
response = JSON.parse(data); response = JSON.parse(data);
if (response === true) { if (response === true) {
$('#plugin-install-message').contents().first().text(successHtml); $('#plugin-install-message').contents().first().replaceWith(successText);
$('#plugin-install-message').find('i') $('#plugin-install-message').find('i')
.removeClass('fas fa-cog fa-spin link-secondary') .removeClass('fas fa-cog fa-spin link-secondary')
.addClass('fas fa-check'); .addClass('fas fa-check');

Binary file not shown.

View File

@ -920,6 +920,69 @@ msgstr "Changing log limit size to %s KB"
msgid "Information provided by raspap.sysinfo" msgid "Information provided by raspap.sysinfo"
msgstr "Information provided by raspap.sysinfo" msgstr "Information provided by raspap.sysinfo"
msgid "The following user plugins are available to extend RaspAP's functionality."
msgstr "The following user plugins are available to extend RaspAP's functionality."
msgid "Choose <strong>Details</strong> for more information and to install a plugin."
msgstr "Choose <strong>Details</strong> for more information and to install a plugin."
msgid "Plugins"
msgstr "Plugins"
msgid "Plugin details"
msgstr "Plugin details"
msgid "Name"
msgstr "Name"
msgid "Version"
msgstr "Version"
msgid "Description"
msgstr "Description"
msgid "Plugin source"
msgstr "Plugin source"
msgid "Author"
msgstr "Author"
msgid "License"
msgstr "License"
msgid "Language locale"
msgstr "Language locale"
msgid "Configuration files"
msgstr "Configuration files"
msgid "Dependencies"
msgstr "Dependencies"
msgid "Permissions"
msgstr "Permissions"
msgid "Non-privileged users"
msgstr "Non-privileged users"
msgid "Install now"
msgstr "Install now"
msgid "Installing plugin"
msgstr "Installing plugin"
msgid "Plugin installation in progress..."
msgstr "Plugin installation in progress..."
msgid "Plugin install completed."
msgstr "Plugin install completed."
msgid "Details"
msgstr "Details"
msgid "Installed"
msgstr "Installed"
#: includes/data_usage.php #: includes/data_usage.php
msgid "Data usage" msgid "Data usage"
msgstr "Data usage" msgstr "Data usage"

View File

@ -164,7 +164,7 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal"><?php echo _("Cancel"); ?></button> <button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal"><?php echo _("Cancel"); ?></button>
<button type="button" id="js-install-plugin-confirm" data-message="<?php echo _("Plugin installation in progress..."); ?>" class="btn btn-outline-success btn-activate"></button> <button type="button" id="js-install-plugin-confirm" class="btn btn-outline-success btn-activate"></button>
</div> </div>
</div> </div>
</div> </div>