You are here

README.txt in Calendar Systems 6

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

Calendar Systems

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

Requirements: Drupal 6.x



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

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

2. Add the following code at right after "function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) {" 
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, $langcode);
    
        if ($r!=false) {
            return $r;
        }
    }
  }

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

4. GoTo "Administer -> Site Configuration -> Calendar Systems" and assign calendar systems to different languages

5. Change interface's language, you should be able to see date(s) in the assinged calendar system's format

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

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

File

README.txt
View source
  1. --- README -------------------------------------------------------------
  2. Calendar Systems
  3. Written by Sina Salek
  4. http://sina.salek.ws
  5. Requirements: Drupal 6.x
  6. --- INSTALLATION --------------------------------------------------------
  7. 1. Install module, if you don't know how to do it , read this : http://drupal.org/node/70151
  8. 2. Add the following code at right after "function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) {"
  9. 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,
  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, $langcode);
  16. if ($r!=false) {
  17. return $r;
  18. }
  19. }
  20. }
  21. 3. Enable "Calendar Systems" under Administer > Site building > Modules.
  22. 4. GoTo "Administer -> Site Configuration -> Calendar Systems" and assign calendar systems to different languages
  23. 5. Change interface's language, you should be able to see date(s) in the assinged calendar system's format
  24. --- Support --------------------------------------------------------
  25. Found a bug? report it here http://drupal.org/node/add/project-issue/calendar_systems