Zidani
Zidani

Hello I want to change date format from english to arabic.

post.published_at|date("F jS, Y") }}

mjauvin
mjauvin

ok, and what's the problem?

Zidani
Zidani

marc.jauvin24240 said:

ok, and what's the problem?

i'm translating a template from english to arabic, how can i let the date appear in arabic not english, sorry i'm new to Octobercms.

mjauvin
mjauvin

I'm missing information. You want to change the date FORMAT or the month name in Arabic? Give an example of what you currently get and what you want.

Zidani
Zidani

marc.jauvin24240 said:

I'm missing information. You want to change the date FORMAT or the month name in Arabic? Give an example of what you currently get and what you want.

I want to change the month name with this function but i don't know where to add it, i tried DateTime.php but with no luck.

Function : https://pastebin.com/PE3K4Yz2 DateTime.php : https://pastebin.com/3SZCap9i

1-5 of 5