Solution for the translation of the month
-
Hi folks,
like a lot of you, I had a problem with the translation of the months. Here is the solution :
Open this two files :
/plugins/age-verify/functions.php
/plugins/age-verify/includes/functions.phpIn both of them, replace
$form .= '<p><select name="av_verify_m" id="av_verify_m">'; foreach ( range( 1, 12 ) as $month ) : $month_name = date( 'F', mktime( 0, 0, 0, $month, 1 ) ); $form .= '<option value="' . $month . '">' . $month_name . '</option>'; endforeach;
By
foreach ( range( 1, 12 ) as $month ) : setlocale(LC_TIME, 'fr_FR'); $month_name = ucfirst( utf8_encode( strftime( '%B', mktime( 0, 0, 0, $month, 1 ) ) ) ); $form .= '<option value="' . $month . '">' . $month_name . '</option>'; endforeach;
I hope it was helpful for you ??
Note : if this solution doesn’t work for you, I will not be able to help you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Solution for the translation of the month’ is closed to new replies.