mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Migrated (hopefully) all translations to PO/Gettext (references #161)
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user