mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
refactor: use lang keys, fix typo
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
"acp-title": "%1 | NodeBB Admin Control Panel",
|
||||
"settings-header-contents": "Contents",
|
||||
"changes-saved": "Changed Saved",
|
||||
"changes-saved": "Changes Saved",
|
||||
"changes-saved-message": "Your changes to the NodeBB configuration have been saved.",
|
||||
"changes-not-saved": "Changes Not Saved",
|
||||
"changes-not-saved-message": "NodeBB encountered a problem saving your changes. (%1)"
|
||||
|
||||
@@ -555,13 +555,14 @@ define('settings', ['hooks', 'alerts'], function (hooks, alerts) {
|
||||
callback(err);
|
||||
} else if (err) {
|
||||
alerts.alert({
|
||||
title: 'Error while saving settings',
|
||||
title: '[[admin/admin:changes-not-saved]]',
|
||||
message: `[[admin/admin:changes-not-saved-message, ${err.message}]]`,
|
||||
type: 'error',
|
||||
timeout: 2500,
|
||||
});
|
||||
} else {
|
||||
alerts.alert({
|
||||
title: 'Settings Saved',
|
||||
title: '[[admin/admin:changes-saved]]',
|
||||
type: 'success',
|
||||
timeout: 2500,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user