From 5455ec7bde8556656a91d9ff525115e2b93426a8 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 12 May 2018 16:30:10 +0200 Subject: [PATCH] Added missing translations --- localization/de.php | 23 ++++++++++++++--------- public/viewjs/batterytracking.js | 2 +- public/viewjs/consume.js | 2 +- public/viewjs/habittracking.js | 2 +- public/viewjs/inventory.js | 2 +- public/viewjs/purchase.js | 2 +- public/viewjs/stockoverview.js | 2 +- 7 files changed, 20 insertions(+), 15 deletions(-) diff --git a/localization/de.php b/localization/de.php index b41bd4bf..7097e281 100644 --- a/localization/de.php +++ b/localization/de.php @@ -112,6 +112,19 @@ return array( 'This means #1 will be added to stock' => 'Das bedeutet #1 wird dem Bestand hinzugefügt', 'This means #1 will be removed from stock' => 'Das bedeutet #1 wird aus dem Bestand entfernt', 'This means it is estimated that a new execution of this habit is tracked #1 days after the last was tracked' => 'Das bedeutet, dass eine erneute Ausführung der Gewohnheit #1 Tage nach der letzten Ausführung geplant wird', + 'Removed #1 #2 of #3 from stock' => '#1 #2 #3 aus dem Bestand entfernt', + 'About grocy' => 'Über grocy', + 'Close' => 'Schließen', + '#1 batteries are due to be charged within the next #2 days' => '#1 Batterien müssen in den nächsten #2 Tagen geladen werden', + '#1 batteries are overdue to be charged' => '#1 Batterien sind überfällig', + '#1 habits are due to be done within the next #2 days' => '#1 Gewohnheiten stehen in den nächsten #2 Tagen an', + '#1 habits are overdue to be done' => '#1 Gewohnheiten sind überfällig', + 'Released on' => 'Veröffentlicht am', + 'Consume 1 #1 of #2' => 'Verbrauche 1 #1 #2', + 'Added #1 #2 of #3 to stock' => '#1 #2 #3 dem Bestand hinzugefügt', + 'Stock amount of #1 is now #2 #3' => 'Es sind nun #2 #3 #1 im Bestand', + 'Tracked execution of habit #1 on #2' => 'Ausführung von #1 am #2 erfasst', + 'Tracked charge cylce of battery #1 on #2' => 'Ladezyklus für Batterie #1 am #2 erfasst', //Constants 'manually' => 'Manuell', @@ -155,13 +168,5 @@ return array( 'Warranty ends' => 'Garantie endet', 'TV remote control' => 'TV Fernbedienung', 'Alarm clock' => 'Wecker', - 'Heat remote control' => 'Fernbedienung Heizung', - 'About grocy' => 'Über grocy', - 'Close' => 'Schließen', - '#1 batteries are due to be charged within the next #2 days' => '#1 Batterien müssen in den nächsten #2 Tagen geladen werden', - '#1 batteries are overdue to be charged' => '#1 Batterien sind überfällig', - '#1 habits are due to be done within the next #2 days' => '#1 Gewohnheiten stehen in den nächsten #2 Tagen an', - '#1 habits are overdue to be done' => '#1 Gewohnheiten sind überfällig', - 'Released on' => 'Veröffentlicht am', - 'Consume 1 #1 of #2' => 'Verbrauche 1 #1 von #2' + 'Heat remote control' => 'Fernbedienung Heizung' ); diff --git a/public/viewjs/batterytracking.js b/public/viewjs/batterytracking.js index c7dba710..d5ae0459d 100644 --- a/public/viewjs/batterytracking.js +++ b/public/viewjs/batterytracking.js @@ -10,7 +10,7 @@ Grocy.Api.Get('batteries/track-charge-cycle/' + jsonForm.battery_id + '?tracked_time=' + $('#tracked_time').val(), function(result) { - toastr.success('Tracked charge cylce of battery ' + batteryDetails.battery.name + ' on ' + $('#tracked_time').val()); + toastr.success(L('Tracked charge cylce of battery #1 on #2', batteryDetails.battery.name, $('#tracked_time').val())); $('#battery_id').val(''); $('#battery_id_text_input').focus(); diff --git a/public/viewjs/consume.js b/public/viewjs/consume.js index db0ff57b..8b761aa2 100644 --- a/public/viewjs/consume.js +++ b/public/viewjs/consume.js @@ -16,7 +16,7 @@ Grocy.Api.Get('stock/consume-product/' + jsonForm.product_id + '/' + jsonForm.amount + '?spoiled=' + spoiled, function(result) { - toastr.success('Removed ' + jsonForm.amount + ' ' + productDetails.quantity_unit_stock.name + ' of ' + productDetails.product.name + ' from stock'); + toastr.success(L('Removed #1 #2 of #3 from stock', jsonForm.amount, productDetails.quantity_unit_stock.name, productDetails.product.name)); $('#amount').val(1); $('#product_id').val(''); diff --git a/public/viewjs/habittracking.js b/public/viewjs/habittracking.js index 8c66a3ee..46dbc8a5 100644 --- a/public/viewjs/habittracking.js +++ b/public/viewjs/habittracking.js @@ -10,7 +10,7 @@ Grocy.Api.Get('habits/track-habit-execution/' + jsonForm.habit_id + '?tracked_time=' + $('#tracked_time').val(), function(result) { - toastr.success('Tracked execution of habit ' + habitDetails.habit.name + ' on ' + $('#tracked_time').val()); + toastr.success(L('Tracked execution of habit #1 on #2', habitDetails.habit.name, $('#tracked_time').val())); $('#habit_id').val(''); $('#habit_id_text_input').focus(); diff --git a/public/viewjs/inventory.js b/public/viewjs/inventory.js index 030ed5cd..340aad75 100644 --- a/public/viewjs/inventory.js +++ b/public/viewjs/inventory.js @@ -32,7 +32,7 @@ ); } - toastr.success('Stock amount of ' + productDetails.product.name + ' is now ' + jsonForm.new_amount.toString() + ' ' + productDetails.quantity_unit_stock.name); + toastr.success(L('Stock amount of #1 is now #2 #3', productDetails.product.name, jsonForm.new_amount, productDetails.quantity_unit_stock.name)); if (addBarcode !== undefined) { diff --git a/public/viewjs/purchase.js b/public/viewjs/purchase.js index cc01d098..c49fed8f 100644 --- a/public/viewjs/purchase.js +++ b/public/viewjs/purchase.js @@ -34,7 +34,7 @@ ); } - toastr.success('Added ' + amount + ' ' + productDetails.quantity_unit_stock.name + ' of ' + productDetails.product.name + ' to stock'); + toastr.success(L('Added #1 #2 of #3 to stock', amount, productDetails.quantity_unit_stock.name, productDetails.product.name)); if (addBarcode !== undefined) { diff --git a/public/viewjs/stockoverview.js b/public/viewjs/stockoverview.js index f24a0eec..54ec210d 100644 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -27,7 +27,7 @@ $(document).on('click', '.product-consume-button', function(e) $('#product-' + productId + '-amount').text(newAmount); } - toastr.success('Removed 1 ' + productQuName + ' of ' + productName + ' from stock'); + toastr.success(L('Removed #1 #2 of #3 from stock', 1, productQuName, productName)); }, function(xhr) {