You are here

README.txt in Calendar Systems 5

--- README  -------------------------------------------------------------

Calendar Systems

Written by Sina Salek
  http://sina.salek.ws

Requirements: Drupal 5.x



--- INSTALLATION --------------------------------------------------------

1. Install this module, if you don't know how to do it , read this : http://drupal.org/node/70151

2. Add the following code at the begining of the format_date() function in /includes/common.inc
or run the patch file located in patches/ folder in module's folder. if you don't know how to apply a patch,
there is a very good tutorial here http://drupal.org/patch/apply

  // Custom hook
  foreach (module_implements('format_date') AS $module) {
    if ($module!='date') {
        $function = $module .'_format_date';
        $r=$function($timestamp, $type , $format , $timezone);
    
        if ($r!=false) {
            return $r;
        }
    }
  }

3. Enable "Calendar Systems" under Administer > Site building > Modules. 

4. Install & Enable i18n module : http://drupal.org/project/i18n

5. Add farsi as new language

6. Change interface's language to farsi(fa), you should be able to see date(s) in Iranian format

--- Support --------------------------------------------------------

Found a bug? report it here http://drupal.org/node/add/project-issue/calendar_systems

--- CHANGELOG --------------------------------------------------------

0.4, 2009-Aug-14
----------------------
- Fixing fatal error when the cache is empty

0.4, 2009-Aug-13
----------------------
- Fixing encoding issue in iranian calendar

0.3, 2009-Aug-13
----------------------
- Fixing error in .info file

0.2, 2009-Aug-13
----------------------

- Fixing incompatibility with date module
- Adding require patch as file and also updating in readme
- Production release

0.1, 2008-Jan-26
----------------------

- Initial 0.1 release

File

README.txt
View source
  1. --- README -------------------------------------------------------------
  2. Calendar Systems
  3. Written by Sina Salek
  4. http://sina.salek.ws
  5. Requirements: Drupal 5.x
  6. --- INSTALLATION --------------------------------------------------------
  7. 1. Install this module, if you don't know how to do it , read this : http://drupal.org/node/70151
  8. 2. Add the following code at the begining of the format_date() function in /includes/common.inc
  9. or run the patch file located in patches/ folder in module's folder. if you don't know how to apply a patch,
  10. there is a very good tutorial here http://drupal.org/patch/apply
  11. // Custom hook
  12. foreach (module_implements('format_date') AS $module) {
  13. if ($module!='date') {
  14. $function = $module .'_format_date';
  15. $r=$function($timestamp, $type , $format , $timezone);
  16. if ($r!=false) {
  17. return $r;
  18. }
  19. }
  20. }
  21. 3. Enable "Calendar Systems" under Administer > Site building > Modules.
  22. 4. Install & Enable i18n module : http://drupal.org/project/i18n
  23. 5. Add farsi as new language
  24. 6. Change interface's language to farsi(fa), you should be able to see date(s) in Iranian format
  25. --- Support --------------------------------------------------------
  26. Found a bug? report it here http://drupal.org/node/add/project-issue/calendar_systems
  27. --- CHANGELOG --------------------------------------------------------
  28. 0.4, 2009-Aug-14
  29. ----------------------
  30. - Fixing fatal error when the cache is empty
  31. 0.4, 2009-Aug-13
  32. ----------------------
  33. - Fixing encoding issue in iranian calendar
  34. 0.3, 2009-Aug-13
  35. ----------------------
  36. - Fixing error in .info file
  37. 0.2, 2009-Aug-13
  38. ----------------------
  39. - Fixing incompatibility with date module
  40. - Adding require patch as file and also updating in readme
  41. - Production release
  42. 0.1, 2008-Jan-26
  43. ----------------------
  44. - Initial 0.1 release