CVS: phpweather phpweather.php,1.14,1.15
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-03-16 13:55:14
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv18019 Modified Files: phpweather.php Log Message: That should have been commited a long time ago... Index: phpweather.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/phpweather.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- phpweather.php 17 Jul 2001 12:27:15 -0000 1.14 +++ phpweather.php 16 Mar 2002 13:55:11 -0000 1.15 @@ -37,10 +37,10 @@ * @access public */ function phpweather($input) { - /* We call the parent constructor. */ + /* We call the parent constructor. */ $this->metar_parser($input); - - /* We also set the language. */ + + /* We also set the language. */ $this->set_language($this->properties['language']); } @@ -70,6 +70,10 @@ case 'hu': require_once(PHPWEATHER_BASE_DIR . '/locales/locale_hu.php'); $this->output = new locale_hu($this->properties); + break; + case 'no': + require_once(PHPWEATHER_BASE_DIR . '/locales/locale_no.php'); + $this->output = new locale_no($this->properties); break; default: $this->error('language not recognized: <code>' . $new_language . '</code> - using <code>en</code>.'); |