INTRODUCTION
------------
Current Maintainer: Koosha Hosseiny <info@koosha.cc> lo2y4 at D.O
Datex and related module will help to create a better multilingual website for
languages needing a Jalali calendar instead of default Gregorian calendar.
- Datex API: is the base module, And used by other modules to localize dates.
On it's own, It would do nothing.
- Datex: When enabled, Will convert all dates to Jalali before display in
page.
- Datex_date For Jalali support in date module, This module should be enabled
It supports "views" too. Currently only "select" widget is supported but a
popup widget will be added soon.
Since there is not a good "hook" in Drupal's core to alter dates and their
format, Some extra effort is needed to get "datex" module working. datex_date
will work out of the box though.
There are two methods available for datex:
- Converting dates to Jalali in theming layer. Using this method, You won't
have to patch the core, But you will might miss Jalali date in some places
It's been tried to keep it as good as possible in non-patching mode: Support
of jalali date in views, in node edit form, scheduler module and...
If you encounter no problem using this mode, This is the recomended (and
default) method.
- Patching core: There is a patch file provided within this module, If you
apply it on 'common.inc' file, You get localized date everywhere.
This patch adds a hook to core for altering format_date result with smallest
footprint.
Keep in mind that hacking core is a *very bad* practice, So decide for yourself.
INSTALLATION
------------
Download module from http://drupal.org/project/datex and put it in your
sites/all/modules folder of your Drupal installation. Then enable it.
You could use drush too!
If you read above and want to apply the patch, Locate the patch file in
module's folder "drupal-jalali_support-0-0.patch", and apply it to file
"includes/common.inc".
Instructions about patching files is at drupal.org.
Now visit the configuration forms and configure the modules to your needs.
They are located at
- admin/config/regional/date-time/datex_api
- admin/config/regional/date-time/datex
View source
-
- INTRODUCTION
- ------------
-
- Current Maintainer: Koosha Hosseiny lo2y4 at D.O
-
- Datex and related module will help to create a better multilingual website for
- languages needing a Jalali calendar instead of default Gregorian calendar.
-
- - Datex API: is the base module, And used by other modules to localize dates.
- On it's own, It would do nothing.
-
- - Datex: When enabled, Will convert all dates to Jalali before display in
- page.
-
- - Datex_date For Jalali support in date module, This module should be enabled
- It supports "views" too. Currently only "select" widget is supported but a
- popup widget will be added soon.
-
-
- Since there is not a good "hook" in Drupal's core to alter dates and their
- format, Some extra effort is needed to get "datex" module working. datex_date
- will work out of the box though.
-
-
- There are two methods available for datex:
-
- - Converting dates to Jalali in theming layer. Using this method, You won't
- have to patch the core, But you will might miss Jalali date in some places
- It's been tried to keep it as good as possible in non-patching mode: Support
- of jalali date in views, in node edit form, scheduler module and...
- If you encounter no problem using this mode, This is the recomended (and
- default) method.
-
- - Patching core: There is a patch file provided within this module, If you
- apply it on 'common.inc' file, You get localized date everywhere.
- This patch adds a hook to core for altering format_date result with smallest
- footprint.
-
- Keep in mind that hacking core is a *very bad* practice, So decide for yourself.
-
- INSTALLATION
- ------------
-
- Download module from http://drupal.org/project/datex and put it in your
- sites/all/modules folder of your Drupal installation. Then enable it.
- You could use drush too!
-
- If you read above and want to apply the patch, Locate the patch file in
- module's folder "drupal-jalali_support-0-0.patch", and apply it to file
- "includes/common.inc".
- Instructions about patching files is at drupal.org.
-
- Now visit the configuration forms and configure the modules to your needs.
- They are located at
- - admin/config/regional/date-time/datex_api
- - admin/config/regional/date-time/datex