YAFLogo

malekmakan
  • malekmakan
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
hi all

is there any distribution or patch which is using Persian calender (shamsi or hijri) ???

if not please guide me to start coding on it. i mean where to change or create new localization specially date format

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
13 years ago

hi all

is there any distribution or patch which is using Persian calender (shamsi or hijri) ???

if not please guide me to start coding on it. i mean where to change or create new localization specially date format

Originally Posted by: malekmakan 

Kamyar already posts how implement it

http://forum.yetanotherforum.net/yaf_postst9101_persian-date.aspx 

You need the Farsi Libary 

Then in the class YafDateTime you need to Convert the Dates

 var persianDate = PersianDateConverter.ToPersianDate(dateTime);
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
13 years ago
Technically the library is under MIT and could be included in YAF. Unfortunately it needs a persian /arabic developer to check that it works. The calendar has some country related shifts.
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago

is there any distribution or patch which is using Persian calender (shamsi or hijri) ???

"malekmakan" wrote:

Not at the moment. I'm really trying to find some time to implement it. Also, The themes need to become RTL, and enhanced for Farsi support (using Font-Face or at least change all fonts to "Tahoma" ), Some changes should be made in Rich text editors, And surely, the Farsi language file is out of date and needs update.

yaf.net's source is very massive but very well written and changing the code is not hard if you're a dev. Ingo has put you on the right track. Otherwise, I'll be starting the fully Persian version in a couple of weeks. You're welcome to cooperate if you'd like.

P.S. nice to see you two Ingo and Vladimir. Say Hi to Jaben :-d


If at first you don’t succeed, call it version 1.0
malekmakan
  • malekmakan
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
i`ve just finished updating the persian language resource file . it would be so enjoyable for persian users to work with Farsi control panel as well as exterior interfaces. i mean resource file is completely translated except of HelpIndex sec.

- RTL problem already has resolved completely.(ready to use)

- Shamsi library test was OK and now we have nice edition of YAF which is supporting Persian Calender in addition to other culuters.(ready to use) furture more i wrote a snnipet to change numeric codes to farsi like numbers when selected culture is FA.

- and the most beautiful part is modifying CSS and designing a cute theme (it will be ready in next weeks)

of course there would be some problem with regard to translation in editiorial point of view. any way id be glad to tell me

about the probable mistakes...:-d

wait for persian theme....you will love it all.

Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
Just Perfect. Thanks for sharing.
If at first you don’t succeed, call it version 1.0
xiaoyuandlg
10 years ago
Seems this question concerning that if the YAF calendar containing a function of changing culture and region information  or not. A good question that I was also wondering the result. Cheers.