Disallow translating as decade before 1000 CE
This commit is contained in:
1 parent
8eda7d4c7f
commit
b405855fc2
2 files changed
+45
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user