mirror of
https://github.com/Matewoo/pdf-writer.git
synced 2026-11-18 18:52:45 +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“'
|
veggi: '„veggi“'
|
||||||
},
|
},
|
||||||
daily: {
|
daily: {
|
||||||
category: 'Tagesempfehlung',
|
category: 'Gut von gestern',
|
||||||
main: dailyData.daily_main || defaultData.dailyMain,
|
main: dailyData.daily_main || defaultData.dailyMain,
|
||||||
side: dailyData.daily_side || defaultData.dailySide,
|
side: dailyData.daily_side || defaultData.dailySide,
|
||||||
price: dailyData.daily_price || defaultData.dailyPrice,
|
price: dailyData.daily_price || defaultData.dailyPrice,
|
||||||
|
|||||||
@@ -180,12 +180,12 @@ function loadWeekData(week) {
|
|||||||
|
|
||||||
// Automatically fill meatPrice if empty
|
// Automatically fill meatPrice if empty
|
||||||
if (!meatPriceInput.value) {
|
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
|
// Automatically fill veggiPrice if empty
|
||||||
if (!veggiPriceInput.value) {
|
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) {
|
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) {
|
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;
|
if (isGerman) return text;
|
||||||
|
|
||||||
return text
|
return text
|
||||||
|
.replace('Kleine Portion', 'Small portion')
|
||||||
.replace('Großer Teller', 'Large plate')
|
.replace('Großer Teller', 'Large plate')
|
||||||
.replace('Kleiner Teller', 'Small plate')
|
.replace('Kleiner Teller', 'Small plate')
|
||||||
.replace('Mittlerer Teller', 'Medium plate');
|
.replace('Mittlerer Teller', 'Medium plate');
|
||||||
@@ -122,7 +123,7 @@ function formatDayContent(menuData, dailyData, language, germanMenuData, germanD
|
|||||||
veggi: '„veggi"'
|
veggi: '„veggi"'
|
||||||
},
|
},
|
||||||
daily: {
|
daily: {
|
||||||
category: isGerman ? 'Tagesempfehlung' : 'Daily Special',
|
category: isGerman ? 'Gut von gestern' : 'Yesterday\'s Best',
|
||||||
main: dailyData?.daily_main || defaultData.dailyMain,
|
main: dailyData?.daily_main || defaultData.dailyMain,
|
||||||
side: dailyData?.daily_side || defaultData.dailySide,
|
side: dailyData?.daily_side || defaultData.dailySide,
|
||||||
price: germanDailyData?.daily_price || defaultData.dailyPrice, // Always use German price
|
price: germanDailyData?.daily_price || defaultData.dailyPrice, // Always use German price
|
||||||
|
|||||||
Reference in New Issue
Block a user