fixed double-translation of country-names

This commit is contained in:
Ralf Becker 2004-03-22 08:00:06 +00:00
parent 68fc63f2a6
commit 9ec5c51938

View File

@ -625,11 +625,10 @@
$name = 'country'; $name = 'country';
} }
$str = '<select name="'.$name.'">'."\n" $str = '<select name="'.$name.'">'."\n"
. ' <option value=" "'.($selected == ' '?' selected':'').'>Select One</option>'."\n"; . ' <option value=" "'.($selected == ' '?' selected':'').'>'.lang('Select One').'</option>'."\n";
reset($this->country_array); foreach($this->country_array as $key => $value)
while(list($key,$value) = each($this->country_array))
{ {
$str .= ' <option value="'.$key.'"'.($selected == $key?' selected':'') . '>'.lang($value).'</option>'."\n"; $str .= ' <option value="'.$key.'"'.($selected == $key?' selected':'') . '>'.$value.'</option>'."\n";
} }
$str .= '</select>'."\n"; $str .= '</select>'."\n";
return $str; return $str;