CVS: phpweather/config make_config.php,1.4,1.5
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-09-02 18:17:58
|
Update of /cvsroot/phpweather/phpweather/config In directory usw-pr-cvs1:/tmp/cvs-serv26283/config Modified Files: make_config.php Log Message: Move phpweather::get_languages() to pw_utilities as this doesn't really has anything to do with the phpweather class. Updated make_config.php to use get_languages() for a dynamic list of available languages. Index: make_config.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/config/make_config.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- make_config.php 14 Jul 2002 23:02:41 -0000 1.4 +++ make_config.php 2 Sep 2002 18:17:52 -0000 1.5 @@ -2,6 +2,8 @@ error_reporting(E_ALL); +require_once('../pw_utilities.php'); + /* Require a couple of validators: */ require_once('pw_validator.php'); require_once('pw_validator_ereg.php'); @@ -103,14 +105,11 @@ $options['language'] = new pw_option_select('language', - 'PHP Weather can produce output in several languages ' . - '- please select your default from the list.', + 'PHP Weather can produce textual output using ' . + 'in several languages - please select your default ' . + 'from the list.', array(), - array('en' => 'English', - 'da' => 'Danish', - 'hu' => 'Hungarian', - 'no' => 'Norwegian', - 'es' => 'Spanish')); + get_languages('text')); $options['offset'] = new pw_option_integer('offset', |