republicandate: fix styling issues in FrenchMonthNames

This commit is contained in:
Kazhnuz 2018-11-07 15:56:41 +01:00
parent 23b61064ad
commit 18179c35e4

View file

@ -115,13 +115,12 @@ function romme_getArray($romme_date_string) {
return $rommeArray; return $rommeArray;
} }
function FrenchMonthNames($mo) function FrenchMonthNames($month)
{ {
/* The names have been invented by Fabre d'Églantine, a second or rather third rank poet /* The names have been invented by Fabre d'Églantine, a second or rather third rank poet
of primarily pastoral poems, with each name referring to the respective period in the agricultural year; e.g. "Vendémiaire" (approx. September) is derived from "vendange" ("harvest"), "Brumaire" (Ocotober/November) from "brume" ("fog") and so on ... */ of primarily pastoral poems, with each name referring to the respective period in the agricultural year; e.g. "Vendémiaire" (approx. September) is derived from "vendange" ("harvest"), "Brumaire" (Ocotober/November) from "brume" ("fog") and so on ... */
$monthArray = array("Vendémiaire",
$arMo = array("Vendémiaire",
"Brumaire", "Brumaire",
"Frimaire", "Frimaire",
"Nivôse", "Nivôse",
@ -134,9 +133,9 @@ of primarily pastoral poems, with each name referring to the respective period i
"Thermidor", "Thermidor",
"Fructidor", "Fructidor",
"Sansculottide") ; "Sansculottide") ;
if($mo < count($arMo)+1) if($month < count($monthArray)+1) {
return $arMo[$mo-1] ; return $monthArray[$month-1;
}
} }
function FrenchDayNames($Day) function FrenchDayNames($Day)