Allow automatic translations of days before 1000 CE

This commit is contained in:
2020-09-26 16:02:18 +02:00
committed by Stefan Rohde-Enslin
parent b405855fc2
commit c9d8d4bdbd
4 changed files with 133 additions and 4 deletions

View File

@ -342,7 +342,9 @@ final class NodaTimeAutotranslater {
return self::TRANSLATABLE_DECADE;
}
if (intval($zeit_ende) < 0 && intval($zeit_beginn) < 0 || intval($zeit_ende) < 1000) {
if (intval($zeit_ende) < 0 && intval($zeit_beginn) < 0
|| (intval($zeit_ende) < 1000 and trim($zeit_zaehlzeit_monat, ", .0") === "")
) {
return self::TRANSLATABLE_AS_YEAR_WITH_SUFFIX;
}
if ($zeit_ende === $zeit_beginn and trim($zeit_zaehlzeit_monat, ", .0") === "") {