Migrated (hopefully) all translations to PO/Gettext (references #161)

This commit is contained in:
Bernd Bestel
2019-05-01 20:19:18 +02:00
parent 40b5afe926
commit 9b2dba2397
372 changed files with 23242 additions and 16905 deletions

View File

@@ -5,7 +5,7 @@
{ 'orderable': false, 'targets': 0 },
{ 'visible': false, 'targets': 3 }
],
'language': JSON.parse(L('datatables_localization')),
'language': JSON.parse(__t('datatables_localization')),
'scrollY': false,
'colReorder': true,
'stateSave': true,
@@ -89,7 +89,7 @@ $(document).on('click', '.do-task-button', function(e)
}
Grocy.FrontendHelpers.EndUiBusy();
toastr.success(L('Marked task #1 as completed on #2', taskName, doneTime));
toastr.success(__t('Marked task %s as completed on %s', taskName, doneTime));
RefreshContextualTimeago();
RefreshStatistics();
},
@@ -109,14 +109,14 @@ $(document).on('click', '.delete-task-button', function (e)
var objectId = $(e.currentTarget).attr('data-task-id');
bootbox.confirm({
message: L('Are you sure to delete task "#1"?', objectName),
message: __t('Are you sure to delete task "%s"?', objectName),
buttons: {
confirm: {
label: L('Yes'),
label: __t('Yes'),
className: 'btn-success'
},
cancel: {
label: L('No'),
label: __t('No'),
className: 'btn-danger'
}
},
@@ -181,8 +181,8 @@ function RefreshStatistics()
}
});
$("#info-due-tasks").text(Pluralize(dueCount, L('#1 task is due to be done within the next #2 days', dueCount, nextXDays), L('#1 tasks are due to be done within the next #2 days', dueCount, nextXDays)));
$("#info-overdue-tasks").text(Pluralize(overdueCount, L('#1 task is overdue to be done', overdueCount), L('#1 tasks are overdue to be done', overdueCount)));
$("#info-due-tasks").text(__n(dueCount, __t('%s task is due to be done within the next %s days', dueCount, nextXDays), __t('%s tasks are due to be done within the next %s days', dueCount, nextXDays)));
$("#info-overdue-tasks").text(__n(overdueCount, __t('%s task is overdue to be done', overdueCount), __t('%s tasks are overdue to be done', overdueCount)));
},
function(xhr)
{