Add tests for German dates, enable splitting of 5 digit timespans
This commit is contained in:
@ -431,7 +431,11 @@ final class NodaTimeAutotranslater {
|
||||
foreach (self::LANGS_TO_CE_FORMAT as $tLang => $ceFormat) {
|
||||
|
||||
if ($suffixMode === 2) {
|
||||
$ceIndicatorsToRemove = explode("%s", self::LANGS_TO_CE_FORMAT[$tLang]);
|
||||
$year = self::getTranslations($timeInfoToCopy)[$tLang];
|
||||
foreach ($ceIndicatorsToRemove as $ceIndicatorToRemove) {
|
||||
$year = str_replace($ceIndicatorToRemove, "", $year);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($start === $end) {
|
||||
|
Reference in New Issue
Block a user