From f6ee8333c46ec812fb9291f8f577bb152ed73ee4 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sun, 11 Dec 2022 22:36:31 +0100 Subject: [PATCH] astrocalc translations --- apps/astrocalc/astrocalc-app.js | 16 ++++++++-------- lang/de_DE.json | 10 +++++++++- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/apps/astrocalc/astrocalc-app.js b/apps/astrocalc/astrocalc-app.js index 7b41ad136..6629842cf 100644 --- a/apps/astrocalc/astrocalc-app.js +++ b/apps/astrocalc/astrocalc-app.js @@ -161,8 +161,8 @@ function drawMoonPositionPage(gps, title) { function drawMoonIlluminationPage(gps, title) { const phaseNames = [ - "New Moon", "Waxing Crescent", "First Quarter", "Waxing Gibbous", - "Full Moon", "Waning Gibbous", "Last Quater", "Waning Crescent", + /*LANG*/"New Moon", /*LANG*/"Waxing Crescent", /*LANG*/"First Quarter", /*LANG*/"Waxing Gibbous", + /*LANG*/"Full Moon", /*LANG*/"Waning Gibbous", /*LANG*/"Last Quater", /*LANG*/"Waning Crescent", ]; const phase = SunCalc.getMoonIllumination(new Date()); @@ -275,15 +275,15 @@ function moonIndexPageMenu(gps) { }, "Times": () => { m = E.showMenu(); - drawMoonTimesPage(gps, "Times"); + drawMoonTimesPage(gps, /*LANG*/"Times"); }, "Position": () => { m = E.showMenu(); - drawMoonPositionPage(gps, "Position"); + drawMoonPositionPage(gps, /*LANG*/"Position"); }, "Illumination": () => { m = E.showMenu(); - drawMoonIlluminationPage(gps, "Illumination"); + drawMoonIlluminationPage(gps, /*LANG*/"Illumination"); }, "< Back": () => m = indexPageMenu(gps), }; @@ -294,12 +294,12 @@ function moonIndexPageMenu(gps) { function indexPageMenu(gps) { const menu = { "": { - "title": "Select", + "title": /*LANG*/"Select", }, - "Sun": () => { + /*LANG*/"Sun": () => { m = sunIndexPageMenu(gps); }, - "Moon": () => { + /*LANG*/"Moon": () => { m = moonIndexPageMenu(gps); }, "< Back": () => { load(); } diff --git a/lang/de_DE.json b/lang/de_DE.json index 84f29a6c2..5ae7e449f 100644 --- a/lang/de_DE.json +++ b/lang/de_DE.json @@ -193,7 +193,15 @@ "cyan": "Cyan", "orange": "Orange", "purple": "Violett", - "grey": "Grau" + "grey": "Grau", + "New Moon": "Neumond", + "Waxing Crescent": "Zunehmender Sichelmond ", + "First Quarter": "Zunehmender Halbmond", + "Waxing Gibbous": "Zunehmender Mond", + "Full Moon": "Vollmond,", + "Waning Gibbous": "Abnehmender Mond", + "Last Quater": "Abnehmender Halbmond", + "Waning Crescent": "Abnehmender Sichelmond" }, "alarm": { "//": "App-specific overrides",