<?php
/**
 * script for testing behaviour when locale is missing
 *
 * PHP Version 4
 *
 * @category Date
 * @package  Date_Holidays
 * @author   Carsten Lucke <luckec@tool-garage.de>
 * @license  http://www.php.net/license/3_01.txt PHP License 3.0.1
 * @version  CVS: $Id: test_missingLocale.php 240162 2007-07-22 22:24:38Z kguest $
 * @link     http://pear.php.net/package/Date_Holidays
 */
error_reporting(E_ALL);

require_once 'Date/Holidays.php';

Date_Holidays::staticSetProperty('DIE_ON_MISSING_LOCALE', true);

$germany = Date_Holidays::factory('Germany', 2004, 'fr');
$langer  = "/var/www/devel/pear/Date_Holidays/lang";
$germany->addTranslationFile($langer . '/Germany/de_DE.ini', 'de');
$germany->addTranslationFile($langer . '/Germany/fr_FR.ini', 'fr_FR');

echo '<pre> $germany->getHolidayTitles(): ';
print_r($germany->getHolidayTitles());
echo '</pre>';
?>
