diff --git a/localization/de.php b/localization/de.php index e4da8043..dbdc09d1 100644 --- a/localization/de.php +++ b/localization/de.php @@ -88,6 +88,19 @@ return array( 'Username' => 'Benutzername', 'Password' => 'Passwort', 'Invalid credentials, please try again' => 'Ungültige Zugangsdaten, bitte versuche es erneut', + 'Are you sure to delete battery "#1"?' => 'Battery "#1" wirklich löschen?', + 'Yes' => 'Ja', + 'No' => 'Nein', + 'Are you sure to delete habit "#1"?' => 'Gewohnheit "#1" wirklich löschen?', + '"#1" could not be resolved to a product, how do you want to proceed?' => '"#1" konnte nicht zu einem Produkt aufgelöst werden, wie möchtest du weiter machen?', + 'Create or assign product' => 'Produkt erstellen oder verknüpfen', + 'Cancel' => 'Abbrechen', + 'Add as new product' => 'Als neues Produkt hinzufügen', + 'Add as barcode to existing product' => 'Barcode vorhandenem Produkt zuweisen', + 'Add as new product and prefill barcode' => 'Neues Produkt erstellen und Barcode vorbelegen', + 'Are you sure to delete quantity unit "#1"?' => 'Mengeneinheit "#1" wirklich löschen?', + 'Are you sure to delete product "#1"?' => 'Produkt "#1" wirklich löschen?', + 'Are you sure to delete location "#1"?' => 'Standort "#1" wirklich löschen?', //Constants 'manually' => 'Manuell', diff --git a/public/viewjs/batteries.js b/public/viewjs/batteries.js index 8ab61221..a75ba564 100644 --- a/public/viewjs/batteries.js +++ b/public/viewjs/batteries.js @@ -1,14 +1,14 @@ $(document).on('click', '.battery-delete-button', function(e) { bootbox.confirm({ - message: 'Delete battery ' + $(e.currentTarget).attr('data-battery-name') + '?', + message: L('Are you sure to delete battery "#1"?', $(e.currentTarget).attr('data-battery-name')), buttons: { confirm: { - label: 'Yes', + label: L('Yes'), className: 'btn-success' }, cancel: { - label: 'No', + label: L('No'), className: 'btn-danger' } }, diff --git a/public/viewjs/habits.js b/public/viewjs/habits.js index 2b52c048..84e52197 100644 --- a/public/viewjs/habits.js +++ b/public/viewjs/habits.js @@ -1,14 +1,14 @@ $(document).on('click', '.habit-delete-button', function(e) { bootbox.confirm({ - message: 'Delete habit ' + $(e.currentTarget).attr('data-habit-name') + '?', + message: L('Are you sure to delete habit "#1"?', $(e.currentTarget).attr('data-habit-name')), buttons: { confirm: { - label: 'Yes', + label: L('Yes'), className: 'btn-success' }, cancel: { - label: 'No', + label: L('No'), className: 'btn-danger' } }, diff --git a/public/viewjs/inventory.js b/public/viewjs/inventory.js index cf9da0ac..d4fc67e9 100644 --- a/public/viewjs/inventory.js +++ b/public/viewjs/inventory.js @@ -108,19 +108,19 @@ $('#product_id_text_input').on('change', function(e) if (input.length > 0 && optionElement.length === 0 && GetUriParam('addbarcodetoselection') === undefined ) { bootbox.dialog({ - message: '' + input + ' could not be resolved to a product, how do you want to proceed?', - title: 'Create or assign product', + message: L('#1 could not be resolved to a product, how do you want to proceed?', input), + title: L('Create or assign product'), onEscape: function() { }, size: 'large', backdrop: true, buttons: { cancel: { - label: 'Cancel', + label: L('Cancel'), className: 'btn-default', callback: function() { } }, addnewproduct: { - label: 'Add as new product', + label: 'P ' + L('Add as new product'), className: 'btn-success add-new-product-dialog-button', callback: function() { @@ -128,7 +128,7 @@ $('#product_id_text_input').on('change', function(e) } }, addbarcode: { - label: 'Add as barcode to existing product', + label: 'B ' + L('Add as barcode to existing product'), className: 'btn-info add-new-barcode-dialog-button', callback: function() { @@ -136,7 +136,7 @@ $('#product_id_text_input').on('change', function(e) } }, addnewproductwithbarcode: { - label: 'Add as new product + prefill barcode', + label: 'A ' + L('Add as new product and prefill barcode'), className: 'btn-warning add-new-product-with-barcode-dialog-button', callback: function() { diff --git a/public/viewjs/locations.js b/public/viewjs/locations.js index 2842f0e1..619f1a00 100644 --- a/public/viewjs/locations.js +++ b/public/viewjs/locations.js @@ -1,14 +1,14 @@ $(document).on('click', '.location-delete-button', function(e) { bootbox.confirm({ - message: 'Delete location ' + $(e.currentTarget).attr('data-location-name') + '?', + message: L('Are you sure to delete location "#1"?', $(e.currentTarget).attr('data-location-name')), buttons: { confirm: { - label: 'Yes', + label: L('Yes'), className: 'btn-success' }, cancel: { - label: 'No', + label: L('No'), className: 'btn-danger' } }, diff --git a/public/viewjs/products.js b/public/viewjs/products.js index e6016a79..ff58d44e 100644 --- a/public/viewjs/products.js +++ b/public/viewjs/products.js @@ -1,14 +1,14 @@ $(document).on('click', '.product-delete-button', function(e) { bootbox.confirm({ - message: 'Delete product ' + $(e.currentTarget).attr('data-product-name') + '?', + message: L('Are you sure to delete product "#1"?', $(e.currentTarget).attr('data-product-name')), buttons: { confirm: { - label: 'Yes', + label: L('Yes'), className: 'btn-success' }, cancel: { - label: 'No', + label: L('No'), className: 'btn-danger' } }, diff --git a/public/viewjs/purchase.js b/public/viewjs/purchase.js index e7964040..cc01d098 100644 --- a/public/viewjs/purchase.js +++ b/public/viewjs/purchase.js @@ -117,8 +117,8 @@ $('#product_id_text_input').on('change', function(e) if (input.length > 0 && optionElement.length === 0 && GetUriParam('addbarcodetoselection') === undefined ) { bootbox.dialog({ - message: '' + input + ' could not be resolved to a product, how do you want to proceed?', - title: 'Create or assign product', + message: L('"#1" could not be resolved to a product, how do you want to proceed?', input), + title: L('Create or assign product'), onEscape: function() { }, size: 'large', backdrop: true, @@ -129,7 +129,7 @@ $('#product_id_text_input').on('change', function(e) callback: function() { } }, addnewproduct: { - label: 'Add as new product', + label: 'P ' + L('Add as new product'), className: 'btn-success add-new-product-dialog-button', callback: function() { @@ -137,7 +137,7 @@ $('#product_id_text_input').on('change', function(e) } }, addbarcode: { - label: 'Add as barcode to existing product', + label: 'B ' + L('Add as barcode to existing product'), className: 'btn-info add-new-barcode-dialog-button', callback: function() { @@ -145,7 +145,7 @@ $('#product_id_text_input').on('change', function(e) } }, addnewproductwithbarcode: { - label: 'Add as new product + prefill barcode', + label: 'A ' + L('Add as new product and prefill barcode'), className: 'btn-warning add-new-product-with-barcode-dialog-button', callback: function() { diff --git a/public/viewjs/quantityunits.js b/public/viewjs/quantityunits.js index 3bef837e..ef28335c 100644 --- a/public/viewjs/quantityunits.js +++ b/public/viewjs/quantityunits.js @@ -1,7 +1,7 @@ $(document).on('click', '.quantityunit-delete-button', function(e) { bootbox.confirm({ - message: 'Delete quantity unit ' + $(e.currentTarget).attr('data-quantityunit-name') + '?', + message: L('Are you sure to delete quantity unit "#1"?', $(e.currentTarget).attr('data-quantityunit-name')), buttons: { confirm: { label: 'Yes', diff --git a/version.txt b/version.txt index 27f9cd32..a8fdfda1 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.8.0 +1.8.1