NEW: add common substitution __PREVIOUS_MONTH_TEXT__ (#34121)

This commit is contained in:
HENRY Florian
2025-05-13 13:29:24 +02:00
committed by GitHub
parent 394ef6329d
commit fb67acbc7b

View File

@@ -9933,6 +9933,9 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
'__YEAR__' => (string) $tmp['year'],
'__PREVIOUS_DAY__' => (string) $tmp2['day'],
'__PREVIOUS_MONTH__' => (string) $tmp3['month'],
'__PREVIOUS_MONTH_TEXT__' => $outputlangs->trans('Month'.sprintf("%02d", $tmp3['month'])),
'__PREVIOUS_MONTH_TEXT_SHORT__' => $outputlangs->trans('MonthShort'.sprintf("%02d", $tmp3['month'])),
'__PREVIOUS_MONTH_TEXT_MIN__' => $outputlangs->trans('MonthVeryShort'.sprintf("%02d", $tmp3['month'])),
'__PREVIOUS_YEAR__' => (string) ($tmp['year'] - 1),
'__NEXT_DAY__' => (string) $tmp4['day'],
'__NEXT_MONTH__' => (string) $tmp5['month'],