Update of /cvsroot/phpweather/phpweather
In directory usw-pr-cvs1:/tmp/cvs-serv494
Modified Files:
phpweather.php
Log Message:
Added support for Danish. We'll have to figure out a way so that this
can be done automatically.
Index: phpweather.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/phpweather.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- phpweather.php 2001/06/29 11:51:40 1.8
+++ phpweather.php 2001/06/30 19:23:18 1.9
@@ -50,11 +50,16 @@
require_once(PHPWEATHER_BASE_DIR . '/locales/locale_en.php');
$this->output = new locale_en($this->properties);
break;
+ case 'da':
+ require_once(PHPWEATHER_BASE_DIR . '/locales/locale_da.php');
+ $this->output = new locale_da($this->properties);
+ break;
case 'hu':
+ require_once(PHPWEATHER_BASE_DIR . '/locales/locale_hu.php');
$this->output = new locale_hu($this->properties);
break;
default:
- $this->error('language not recognized: <code>' . $new_langauge . '</code> -
using <code>en</code>.');
+ $this->error('language not recognized: <code>' . $new_language . '</code> -
+using <code>en</code>.');
$this->set_language('en');
break;
}
_______________________________________________
PHPWeather-checkins mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/phpweather-checkins