mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
update webfront translation strings
This commit is contained in:
@ -79,7 +79,7 @@ $(document).ready(function () {
|
||||
clearQueryString();
|
||||
halfmoon.initStickyAlert({
|
||||
content: toastMessage,
|
||||
title: 'Success',
|
||||
title: _localization['WEBFRONT_SCRIPT_ACTION_SUCCESS'],
|
||||
alertType: 'alert-success',
|
||||
fillType: 'filled',
|
||||
timeShown: duration
|
||||
@ -107,7 +107,7 @@ $(document).ready(function () {
|
||||
.fail(function (jqxhr, textStatus, error) {
|
||||
halfmoon.initStickyAlert({
|
||||
content: jqxhr.responseText,
|
||||
title: 'Error',
|
||||
title: _localization['WEBFRONT_SCRIPT_ACTION_ERROR'],
|
||||
alertType: 'alert-danger',
|
||||
fillType: 'filled'
|
||||
});
|
||||
@ -145,7 +145,7 @@ $(document).ready(function () {
|
||||
modal.modal();
|
||||
halfmoon.initStickyAlert({
|
||||
content: escapeHtml(message),
|
||||
title: 'Executed',
|
||||
title: _localization['WEBFRONT_SCRIPT_ACTION_EXECUTED'],
|
||||
alertType: 'alert-primary',
|
||||
fillType: 'filled'
|
||||
});
|
||||
@ -174,7 +174,7 @@ $(document).ready(function () {
|
||||
|
||||
halfmoon.initStickyAlert({
|
||||
content: message,
|
||||
title: 'Error',
|
||||
title: _localization['WEBFRONT_SCRIPT_ACTION_ERROR'],
|
||||
alertType: 'alert-danger',
|
||||
fillType: 'filled'
|
||||
});
|
||||
|
@ -73,7 +73,7 @@ function loadMoreItems() {
|
||||
.fail(function () {
|
||||
errorLoader();
|
||||
halfmoon.initStickyAlert({
|
||||
content: 'Could not load more items...',
|
||||
content: _localization['WEBFRONT_SCRIPT_LOADER_ERROR'],
|
||||
title: 'Error',
|
||||
alertType: 'alert-danger',
|
||||
fillType: 'filled'
|
||||
|
@ -88,7 +88,7 @@ function getPlayerHistoryChart(playerHistory, i, width, maxClients) {
|
||||
callbacks: {
|
||||
// todo: localization at some point
|
||||
title: context => moment(context[0].label).local().calendar(),
|
||||
label: context => context.datasetIndex !== 1 ? `${context.value} players on ${playerHistory[context.index].mapAlias}` : context.value === '0' ? '' : 'Server Unreachable!',
|
||||
label: context => context.datasetIndex !== 1 ? `${context.value} ${_localization['WEBFRONT_SCRIPT_SERVER_PLAYERS']} | ${playerHistory[context.index].mapAlias}` : context.value === '0' ? '' : _localization['WEBFRONT_SCRIPT_SERVER_UNREACHABLE'],
|
||||
},
|
||||
mode: 'nearest',
|
||||
intersect: false,
|
||||
|
Reference in New Issue
Block a user