2

I am using the Month calendar. I would like to display the months and days in Arabic language. Can anyone help me with this?


Can you please guide me how to call the arabic calendar?

1 Answer 1

2

For maximum control over the data and markup of a calendar, you should use the {exp:calendar:cal} tag instead of the {exp:calendar:month}. The latter is a shortcut to the former. Please see the advanced example in the documentation: http://www.solspace.com/docs/calendar/month//#examples

You may also need to translate the language file in Calendar under /system/expressionengine/third_party/calendar/language/english/lang.calendar.php. Of course, instead of "english" you might want to create a separate "arabic" folder containing lang.calendar.php, to have /system/expressionengine/third_party/calendar/language/arabic/lang.calendar.php

4
  • Thank you for your reply. I follwed the steps but I dont know how to call the arabic calendar. Can you please guide me how to call the arabic calendar?
    – Seama
    Dec 10, 2013 at 7:04
  • 1
    The above enables you to localize Calendar (eg. display a Gregorian calendar in Arabic) and customize the markup. However, Calendar only supports the Gregorian calendar. Are you trying to create a non-Gregorian calendar? If so, this isn't supported by Calendar.
    – Solspace
    Dec 16, 2013 at 20:53
  • That's a good question, by "the Arabic calendar" @Seama may have been referring to Muslims' Hijri calendar. Interesting.
    – notacouch
    Dec 17, 2013 at 23:07
  • 1
    I translated the Gregorian calendar in to Arabic. My website is bilingual. By default the english calendar is shown. I would like the Arabic Calendar to be displayed when the language is switched to Arabic
    – Seama
    Dec 19, 2013 at 5:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.