Replies: 4 comments 1 reply
-
|
this feature is kind of related to #5000. is there any chance to have this feature @brandonkelly? |
Beta Was this translation helpful? Give feedback.
-
|
Yep, also in the works for 3.4. |
Beta Was this translation helpful? Give feedback.
-
|
Pushing this back to 4.0, because it is going to introduce breaking changes. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @brandonkelly Not something that I personally need right now, so I hope I’m not bothering you by bringing this up on such an old post. I also know surveys show that Craft is mostly used in Europe, North America, and similar regions. But with Craft 6 coming in alpha on Laravel and potentially bringing a larger community from around the world, I think this is something that could be improved. No matter how good Craft is, lacking support for i18n features can be a reason for people to choose another CMS instead. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Craft CMS calendar is a jquery ui calendar and it only translates calendar for different languages in:
https://github.com/craftcms/cms/blob/develop/src/web/assets/datepickeri18n/DatepickerI18nAsset.php
but translation is not always useful. some authors don't know Gregorian format well.
In other content management systems like Drupal or Wordpress, we can have different calendar systems by patching core or 3rd party modules.
I tried this steps only for demonstration and i was able to show user a Persian calendar.
i found a Persian calendar library and put js and css files in @lib/datepicker-i18n
added some lines like
to DatepickerI18nAsset.php
and i have this calendar which author knows well (he sees year, month, day in Persian calendar system like 1398/07/04)

but there are some problems:
so best solution is not only allow users to picks a date in other calendar systems, also showing that selected date in another calendar systems and pass Gregorian date in background-.
at last i think that is not possible for Craft CMS team to find a robust calendar library for every calendar systems and hard code it in Craft CMS.
but maybe it is not a bad idea to:
Beta Was this translation helpful? Give feedback.
All reactions