Allow autotranslation of time spans before 1000 CE
This commit is contained in:
@ -264,10 +264,10 @@ final class NodaTimeAutotranslater {
|
||||
*/
|
||||
public static function check_translatability(string $zeit_beginn, string $zeit_ende, string $zeit_zaehlzeit_monat):int {
|
||||
|
||||
if (intval($zeit_beginn) > 1000 and $zeit_ende === "?") {
|
||||
if ($zeit_ende === "?") {
|
||||
return self::TRANSLATABLE_SINCE_START;
|
||||
}
|
||||
if (intval($zeit_ende) > 1000 and $zeit_beginn === "?") {
|
||||
if ($zeit_beginn === "?") {
|
||||
return self::TRANSLATABLE_UNTIL_END;
|
||||
}
|
||||
|
||||
@ -347,7 +347,7 @@ final class NodaTimeAutotranslater {
|
||||
*
|
||||
* @return array<string>
|
||||
*/
|
||||
public function translateYearsWithSuffix(array $timeInfo):array {
|
||||
public static function translateYearsWithSuffix(array $timeInfo):array {
|
||||
|
||||
$start = intval($timeInfo['zeit_beginn']);
|
||||
$end = intval($timeInfo['zeit_ende']);
|
||||
|
Reference in New Issue
Block a user