wrote this file. * As long as you retain this notice you can do whatever you want with this * software. If we meet some day, and you think this stuff is worth it, you can * buy me a beer in return. * Sandino Araico Sánchez * --END LICENSE--------------------------------------------------------------- * --LICENCIA EN ESPAÑOL MEXICANO---------------------------------------------- * "LA LICENCIA BEER-WARE" (traducción al español de la revisión 42-sandino-3): * Sandino Araico Sánchez escribió éste archivo. * Siempre y cuando usted retenga éste aviso (en español y en inglés) usted * puede hacer cualquier cosa con éste software. Si algún día nos encontramos y * usted piensa que éste software vale la pena, usted puede invitarme una * cerveza en recompensa. * Sandino Araico Sánchez * --FIN DE LICENCIA----------------------------------------------------------- */ # Changelog # 2002-05-02 Sandino Araico Sánchez - navegador de calendario # 2002-05-06 Sandino Araico Sánchez - dir-contents, year, minth, day, filtered if(!defined("__CALENDAR_LANG")) { define ("__CALENDAR_LANG",1); #--------------------------------------------------------------------- /* I see no reason why this should be included many times in the same * file in different languages, so I'm using constants. * If someone ever needs to use different-language-translations * either onstants should be moved to $aray or adopt the format * define('__CONSTANT_lang','value'); */ if(!defined('__CALENDAR_LANG_CONSTANTS')) { define('__CALENDAR_LANG_CONSTANTS',1); if(!defined('__CALENDAR_LANGUAGE')) define('__CALENDAR_LANGUAGE','C'); } // __CALENDAR_LANG_CONSTANTS #--------------------------------------------------------------------- include 'calendar/lang/cal-lang-'.__CALENDAR_LANGUAGE.'.inc'; #--------------------------------------------------------------------- function cal_get_month_from_number($num) { if($num<1) return; if($num>12) return; if(strlen($num)<2) $num="0$num"; return constant(__CALENDAR_LANG_MONTHS_.$num); } #--------------------------------------------------------------------- } // __CALENDAR_LANG ?>