Disallow translating as decade before 1000 CE

This commit is contained in:
2020-09-26 15:30:30 +02:00
committed by Stefan Rohde-Enslin
parent 8eda7d4c7f
commit b405855fc2
2 changed files with 45 additions and 1 deletions

View File

@ -338,7 +338,7 @@ final class NodaTimeAutotranslater {
return self::TRANSLATABLE_CENTURY;
}
if ((intval($zeit_ende) + 1) % 10 === 0 and intval($zeit_beginn) % 10 === 0) {
if ((intval($zeit_ende) + 1) % 10 === 0 and intval($zeit_beginn) % 10 === 0 and intval($zeit_beginn) > 1000) {
return self::TRANSLATABLE_DECADE;
}