Disallow translating as decade before 1000 CE

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

No files matched your search

+1 -1
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;
}