luci-base: fix apply/rollback strings
authorJo-Philipp Wich <jo@mein.io>
Tue, 20 Nov 2018 10:43:20 +0000 (11:43 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 20 Nov 2018 10:43:20 +0000 (11:43 +0100)
Commit 94d8c9a7a accidentally overwrite the rewording of strings made in
an earlier commit.

Fixes: 94d8c9a7a ("luci-base: simplify apply widget code")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/cbi/apply_widget.htm

index 05511c9ab0998effae24b4fdb8dd135e30881c4d..0f9667390efcf8bf386375b22d98f676809ae73f 100644 (file)
                                if (r.status === 204) {
                                        uci_status_message('warning',
                                                '<h4><%:Configuration has been rolled back!%></h4>' +
-                                               '<p><%:The device could not be reached within %d seconds after applying the pending changes, which caused the configuration to be rolled back for safety reasons. If you believe that the configuration changes are correct nonetheless, perform an unchecked configuration apply. Alternatively, you can dismiss this warning and edit changes before attempting to apply again, or revert all pending changes to keep the currently working configuration state.%></p>'.format(uci_apply_rollback) +
+                                               '<p><%:The device could not be reached within %d seconds after applying the pending changes, which caused the configuration to be rolled back for safety reasons. If you believe that the configuration changes are correct nonetheless, proceed by applying anyway. Alternatively, you can dismiss this warning and edit changes before attempting to apply again, or revert all pending changes to keep the currently working configuration state.%></p>'.format(uci_apply_rollback) +
                                                '<div class="right">' +
                                                        '<input type="button" class="btn" onclick="uci_status_message(false)" value="<%:Dismiss%>" /> ' +
                                                        '<input type="button" class="btn cbi-button-action important" onclick="uci_revert()" value="<%:Revert changes%>" /> ' +
-                                                       '<input type="button" class="btn cbi-button-negative important" onclick="uci_apply(false)" value="<%:Apply unchecked%>" />' +
+                                                       '<input type="button" class="btn cbi-button-negative important" onclick="uci_apply(false)" value="<%:Apply anyway%>" />' +
                                                '</div>');
 
                                        return;
                        var now = Date.now();
 
                        uci_status_message('notice spinning',
-                               '<p><%:Waiting for configuration to get applied… %ds%></p>'.format(Math.max(Math.floor((deadline - Date.now()) / 1000), 0)));
+                               '<p><%:Waiting for configuration to be applied… %ds%></p>'.format(Math.max(Math.floor((deadline - Date.now()) / 1000), 0)));
 
                        if (now >= deadline)
                                return;