diff --git a/app/Libraries/Utils.php b/app/Libraries/Utils.php index cfcc97c00114..12ab7dadcc5a 100644 --- a/app/Libraries/Utils.php +++ b/app/Libraries/Utils.php @@ -620,8 +620,8 @@ class Utils private static function getMonth($offset) { - $months = [ "January", "February", "March", "April", "May", "June", - "July", "August", "September", "October", "November", "December", ]; + $months = [ "january", "february", "march", "april", "may", "june", + "july", "august", "september", "october", "november", "december", ]; $month = intval(date('n')) - 1; @@ -632,7 +632,7 @@ class Utils $month += 12; } - return $months[$month]; + return trans('texts.' . $months[$month]); } private static function getQuarter($offset) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index c59c22b37045..1df2bc2ca4d3 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -1083,6 +1083,19 @@ $LANG = array( 'view_all_help' => 'Allow user to view records they didn\'t create', 'edit_all_help' => 'Allow user to modify records they didn\'t create', 'view_payment' => 'View Payment', + + 'january' => 'January', + 'february' => 'February', + 'march' => 'March', + 'april' => 'April', + 'may' => 'May', + 'june' => 'June', + 'july' => 'July', + 'august' => 'August', + 'september' => 'September', + 'october' => 'October', + 'november' => 'November', + 'december' => 'December', );