Welcome Guest, Not a member yet? Register   Sign In
How to translate month?
#1

I have this date 3/2021, and I'm trying to translate March into "Marzo", so I did:

PHP Code:
<?= DateTime::createFromFormat('m-Y'$d->date)->format(lang('date.month', ['F']) . '/Y'?>

locale file:

PHP Code:
<?php

$months 
= [
    'March' => 'Marzo'
];

return [
    'month' => "{0}"
]; 

how can I show "Marzo"?
Reply


Messages In This Thread
How to translate month? - by sfarzoso - 04-29-2021, 02:07 AM
RE: How to translate month? - by wdeda - 04-29-2021, 06:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB