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

@@ -69,7 +69,7 @@ var recipesPosTables = $('#recipes-pos-table').DataTable({
{ 'orderable': false, 'targets': 0 },
{ 'visible': false, 'targets': 4 }
],
'language': JSON.parse(L('datatables_localization')),
'language': JSON.parse(__t('datatables_localization')),
'scrollY': false,
'colReorder': true,
'stateSave': true,
@@ -95,7 +95,7 @@ var recipesIncludesTables = $('#recipes-includes-table').DataTable({
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'language': JSON.parse(L('datatables_localization')),
'language': JSON.parse(__t('datatables_localization')),
'scrollY': false,
'colReorder': true,
'stateSave': true,
@@ -143,14 +143,14 @@ $(document).on('click', '.recipe-pos-delete-button', function(e)
var objectId = $(e.currentTarget).attr('data-recipe-pos-id');
bootbox.confirm({
message: L('Are you sure to delete recipe ingredient "#1"?', objectName),
message: __t('Are you sure to delete recipe ingredient "%s"?', objectName),
buttons: {
confirm: {
label: L('Yes'),
label: __t('Yes'),
className: 'btn-success'
},
cancel: {
label: L('No'),
label: __t('No'),
className: 'btn-danger'
}
},
@@ -180,14 +180,14 @@ $(document).on('click', '.recipe-include-delete-button', function(e)
var objectId = $(e.currentTarget).attr('data-recipe-include-id');
bootbox.confirm({
message: L('Are you sure to remove included recipe "#1"?', objectName),
message: __t('Are you sure to remove included recipe "%s"?', objectName),
buttons: {
confirm: {
label: L('Yes'),
label: __t('Yes'),
className: 'btn-success'
},
cancel: {
label: L('No'),
label: __t('No'),
className: 'btn-danger'
}
},
@@ -243,7 +243,7 @@ $(document).on('click', '.recipe-include-edit-button', function (e)
Grocy.Api.Put('objects/recipes/' + Grocy.EditObjectId, $('#recipe-form').serializeJSON(),
function(result)
{
$("#recipe-include-editform-title").text(L("Edit included recipe"));
$("#recipe-include-editform-title").text(__t("Edit included recipe"));
$("#recipe-include-form").data("edit-mode", "edit");
$("#recipe-include-form").data("recipe-nesting-id", id);
Grocy.Components.RecipePicker.SetId(recipeId);
@@ -277,7 +277,7 @@ $("#recipe-include-add-button").on("click", function(e)
Grocy.Api.Put('objects/recipes/' + Grocy.EditObjectId, $('#recipe-form').serializeJSON(),
function(result)
{
$("#recipe-include-editform-title").text(L("Add included recipe"));
$("#recipe-include-editform-title").text(__t("Add included recipe"));
$("#recipe-include-form").data("edit-mode", "create");
Grocy.Components.RecipePicker.Clear();
$("#recipe-include-editform-modal").modal("show");
@@ -346,7 +346,7 @@ $('#delete-current-recipe-picture-button').on('click', function (e)
$('#description').summernote({
minHeight: '300px',
lang: L('summernote_locale')
lang: __t('summernote_locale')
});
Grocy.Components.UserfieldsForm.Load();