astrocalc translations

pull/2389/head
Erik Andresen 2022-12-11 22:36:31 +01:00
parent 340fc06678
commit f6ee8333c4
2 changed files with 17 additions and 9 deletions

View File

@ -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(); }

View File

@ -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",