mirror of
https://github.com/Matewoo/pdf-writer.git
synced 2026-11-18 19:02:48 +01:00
update daily special category and meal descriptions for consistency
This commit is contained in:
@@ -31,7 +31,7 @@ function loadDay(day) {
|
||||
veggi: '„veggi“'
|
||||
},
|
||||
daily: {
|
||||
category: 'Tagesempfehlung',
|
||||
category: 'Gut von gestern',
|
||||
main: dailyData.daily_main || defaultData.dailyMain,
|
||||
side: dailyData.daily_side || defaultData.dailySide,
|
||||
price: dailyData.daily_price || defaultData.dailyPrice,
|
||||
|
||||
@@ -180,12 +180,12 @@ function loadWeekData(week) {
|
||||
|
||||
// Automatically fill meatPrice if empty
|
||||
if (!meatPriceInput.value) {
|
||||
meatPriceInput.value = (dayIndex === 4) ? "9,50 € / 6,80 € - Business Lunch 7,50 € / 5,10 €" : "9,00 € / 6,30 € - Business Lunch 7,00 € / 4,90 €";
|
||||
meatPriceInput.value = (dayIndex === 4) ? "9,50 € / 6,80 € - Kleine Portion 7,50 € / 5,10 €" : "9,00 € / 6,30 € - Kleine Portion 7,00 € / 4,90 €";
|
||||
}
|
||||
|
||||
// Automatically fill veggiPrice if empty
|
||||
if (!veggiPriceInput.value) {
|
||||
veggiPriceInput.value = "8,50 € / 5,95 € - Business Lunch 6,50 € / 4,55 €";
|
||||
veggiPriceInput.value = "8,50 € / 5,95 € - Kleine Portion 6,50 € / 4,55 €";
|
||||
}
|
||||
});
|
||||
|
||||
@@ -209,11 +209,11 @@ function loadWeekData(week) {
|
||||
}
|
||||
|
||||
if (!meatPriceInput.value) {
|
||||
meatPriceInput.value = (i === 4) ? "9,50 € / 6,80 € - Business Lunch 7,50 € / 5,10 €" : "9,00 € / 6,30 € - Business Lunch 7,00 € / 4,90 €";
|
||||
meatPriceInput.value = (i === 4) ? "9,50 € / 6,80 € - Kleine Portion 7,50 € / 5,10 €" : "9,00 € / 6,30 € - Kleine Portion 7,00 € / 4,90 €";
|
||||
}
|
||||
|
||||
if (!veggiPriceInput.value) {
|
||||
veggiPriceInput.value = "8,50 € / 5,95 € - Business Lunch 6,50 € / 4,55 €";
|
||||
veggiPriceInput.value = "8,50 € / 5,95 € - Kleine Portion 6,50 € / 4,55 €";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,6 +101,7 @@ function formatDayContent(menuData, dailyData, language, germanMenuData, germanD
|
||||
if (isGerman) return text;
|
||||
|
||||
return text
|
||||
.replace('Kleine Portion', 'Small portion')
|
||||
.replace('Großer Teller', 'Large plate')
|
||||
.replace('Kleiner Teller', 'Small plate')
|
||||
.replace('Mittlerer Teller', 'Medium plate');
|
||||
@@ -122,7 +123,7 @@ function formatDayContent(menuData, dailyData, language, germanMenuData, germanD
|
||||
veggi: '„veggi"'
|
||||
},
|
||||
daily: {
|
||||
category: isGerman ? 'Tagesempfehlung' : 'Daily Special',
|
||||
category: isGerman ? 'Gut von gestern' : 'Yesterday\'s Best',
|
||||
main: dailyData?.daily_main || defaultData.dailyMain,
|
||||
side: dailyData?.daily_side || defaultData.dailySide,
|
||||
price: germanDailyData?.daily_price || defaultData.dailyPrice, // Always use German price
|
||||
|
||||
Reference in New Issue
Block a user