Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2013-04-02 16:31:38
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 278
Re: [request] Localize Calendar Date Format
Oleg, that’s cool, as I checked i didn’t find any problem except month names, where should i change the month names?
I will check if i found any problem, then i will let you know.
Thanks
Offline
Re: [request] Localize Calendar Date Format
raminrahimi wrote:
Oleg, that’s cool, as I checked i didn’t find any problem except month names, where should i change the month names?
Great! Now please go on the admin side, under Extensions
tab you will find a link etc_date
. Click on New locale
, then define some meaningful Name
(say, fa_IR
for Persian), Month names
(like Farvardin,Ordibehesht,Khordad,Tir,Mordad,Shahrevar,Mihr,Aban,Azar,Day,Bahman,Esphand
) and Weekday names
. Save, and you should be able to call <txp:etc_date calendar="jalali" lang="fa_IR" />
for Jalali dates in Persian, or even simply <txp:etc_date />
if you save fa_IR
and jalali
as Defaults
locale and calendar in etc_date
admin tab. You can set a default date format for etc_date
too.
And if you could post here the localized month/weekday names in your language(s) for future references, that would be nice. Thanks!
Offline
#15 2013-04-03 16:12:35
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 278
Re: [request] Localize Calendar Date Format
Hi thank you for your cooperation, if you could please add these names to your default latest plugin, when we installed that should automatically come.
month names:
حمل , ثور , جوزا , سرطان , اسد , سنبله , میزان , عقرب , قوس , جدی , دلو , حوت
start from حمل
Weekday names:
شنبه , یکشنبه , دوشنبه , سهشنبه , چهارشنبه , پنجشنبه , جمعه
start from شنبه it mean Saturday
Offline
Re: [request] Localize Calendar Date Format
Thank you, Ramin. I realize now that rtl languages require some additional work, and I have absolutely no experience with rtl. Back to classes…
Offline
#17 2013-04-04 19:30:02
- bashirnoori
- Member
- From: Afghanistan
- Registered: 2012-10-02
- Posts: 79
Re: [request] Localize Calendar Date Format
Ramin you are true, I need that thing if possible please help us dear Oleg
Oleg, i think you can do copy and paste those names to your source, that would be the best
Thank you
Offline
Offline
#19 2013-04-10 07:01:31
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 278
Re: [request] Localize Calendar Date Format
Thanks a lot, my problem solved and happy :)
Offline