phpweather-checkins Mailing List for PHP Weather
Brought to you by:
iridium
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(1) |
Feb
(1) |
Mar
(184) |
Apr
(31) |
May
(45) |
Jun
(15) |
Jul
(11) |
Aug
(40) |
Sep
(19) |
Oct
(8) |
Nov
(6) |
Dec
(17) |
2003 |
Jan
(5) |
Feb
|
Mar
(12) |
Apr
(5) |
May
(2) |
Jun
(3) |
Jul
(3) |
Aug
(3) |
Sep
(17) |
Oct
(10) |
Nov
|
Dec
(4) |
2004 |
Jan
(21) |
Feb
(11) |
Mar
|
Apr
|
May
(3) |
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
(4) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Max H. <ir...@us...> - 2006-03-09 18:32:24
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19082 Modified Files: phpweather.php stations.csv test.php Log Message: A selection of fixes, thanks all Index: phpweather.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/phpweather.php,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- phpweather.php 30 Jan 2004 20:46:36 -0000 1.39 +++ phpweather.php 9 Mar 2006 18:32:09 -0000 1.40 @@ -196,7 +196,7 @@ for ($i = 0; $i < $num_parts; $i++) { $part = $parts[$i]; - if (ereg('RMK|TEMPO|BECMG|INTER', $part)) { + if (ereg('RMK|AFT|TEMPO|BECMG|INTER', $part)) { /* The rest of the METAR is either a remark or temporary * information. We keep the remark. */ @@ -809,7 +809,7 @@ if($i<$num_parts-1) $part2 = $parts[$i+1]; else $part2 = ''; - if ($part=='RMK') { + if ($part=='RMK' || $part=='AFT') { /* The rest of the TAF is either a remark or temporary * information. We keep the remark. */ Index: stations.csv =================================================================== RCS file: /cvsroot/phpweather/phpweather/stations.csv,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- stations.csv 29 May 2004 16:08:35 -0000 1.13 +++ stations.csv 9 Mar 2006 18:32:09 -0000 1.14 @@ -1,5613 +1,2535 @@ -# Comments start with *one* hash-mark (#). The countries are -# surrounded by *two* marks. They start with a ISO 3166-1-Alpha-2 code -# taken from -# -# http://www.iso.org/iso/en/prods-services/iso3166ma/index.html -# -# Original list made by Sven-Erik Andersen <sve...@an...>. - - -## AF;Afghanistan ## -OAFZ;Faizabad [...8117 lines suppressed...] +OYHD;Hodeidah +OYMB;Marib +OYSH;Sa'Ada / Sadah +OYSN;Sana'A +OYSY;Sayun +OYSQ;Socotra +OYTZ;Taiz + +## ZM;Zambia ## +FLLI;Livingstone +FLLS;Lusaka Internationalairport +FLMF;Mfuwe +FLND;Ndola + +## ZW;Zimbabwe ## +FVCZ;Buffalo Range +FVBU;Bulawayo Airport +FVTL;Gweru +FVHA;Harare Kutsaga +FVMV;Masvingo Index: test.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/test.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- test.php 7 Oct 2003 22:31:54 -0000 1.8 +++ test.php 9 Mar 2006 18:32:09 -0000 1.9 @@ -43,7 +43,7 @@ <?php if (!empty($metar)) { - $weather->set_metar($metar); + $weather->set_taf($metar); require(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php"); require(PHPWEATHER_BASE_DIR . "/output/pw_images.php"); @@ -53,19 +53,20 @@ echo "<h2>Report made by <code>$type</code></h2>\n"; - echo "<p>\n" . $text->print_pretty() . "</p>\n"; + echo "<p>\n" . $text->print_taf() . "</p>\n"; echo "<h2>Images selected by <code>pw_images</code></h2>\n"; - + /* $icons = new pw_images($weather); echo '<p><img src="'.$icons->get_sky_image().'" /> '; echo '<img src="'.$icons->get_winddir_image().'" /> '; echo '<img src="'.$icons->get_temp_image().'" /></p>'; + */ echo "<h2>The decoded METAR follows</h2>\n"; echo "<pre>\n"; - print_r($weather->decode_metar()); + print_r($weather->decode_taf()); echo "</pre>\n"; } |
From: Max H. <ir...@us...> - 2006-03-09 18:32:14
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19082/output Modified Files: pw_text.php Log Message: A selection of fixes, thanks all Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- pw_text.php 13 Jan 2005 23:17:39 -0000 1.25 +++ pw_text.php 9 Mar 2006 18:32:10 -0000 1.26 @@ -637,7 +637,7 @@ function print_pretty_time($time) { $minutes_old = round((time() - $time)/60); if ($minutes_old > 60) { - $hours = round((time() - $time)/3600); + $hours = floor((time() - $time)/3600); $minutes = $minutes_old % 60; if ($minutes < 1) { $minutes = ''; |
From: Martin G. <gim...@us...> - 2005-04-18 16:22:45
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4572 Modified Files: pw_text_pt.php Log Message: The class actually produced Spanish output! Why wasn't this discovered earlier!? Anyway, it should be fixed now. Index: pw_text_pt.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text_pt.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- pw_text_pt.php 18 Jan 2005 17:29:42 -0000 1.2 +++ pw_text_pt.php 18 Apr 2005 16:22:35 -0000 1.3 @@ -18,6 +18,11 @@ * @param array This is just passed on to pw_text(). */ function pw_text_pt($weather, $input = array()) { + /* We run the parent constructor. This will define Spanish + * strings for the $this->strings array, so we have to do this + * first, and then override the contents where appropriate. */ + $this->pw_text_es($weather, $input); + $this->strings['charset'] = 'ISO-8859-1'; $this->strings['no_data'] = 'Dado não disponiveis para %s%s%s.'; $this->strings['list_sentences_and'] = ' e '; @@ -167,8 +172,6 @@ $this->strings['runway_visibility'] = ' A visibilidade era '; $this->strings['runway_for_runway'] = ' para a estrada '; - /* We run the parent constructor */ - $this->pw_text($weather, $input); } } |
From: Martin G. <gim...@us...> - 2005-01-18 17:30:08
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26743/output Modified Files: pw_text_pt.php Log Message: The Portuguese language finished off the constructor by converting to Spanish... fixed. This closes #1104428. Index: pw_text_pt.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text_pt.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- pw_text_pt.php 1 Jun 2004 20:39:54 -0000 1.1 +++ pw_text_pt.php 18 Jan 2005 17:29:42 -0000 1.2 @@ -10,7 +10,7 @@ * @link http://gamboa.eth.pt/ My homepage. * @version pw_text_pt.php,v 1.4 2002/08/28 21:13:40 gimpster Exp */ -class pw_text_pt extends pw_text_es { +class pw_text_pt extends pw_text { /** * This constructor provides all the strings used. @@ -168,7 +168,7 @@ $this->strings['runway_for_runway'] = ' para a estrada '; /* We run the parent constructor */ - $this->pw_text_es($weather, $input); + $this->pw_text($weather, $input); } } |
From: Martin G. <gim...@us...> - 2005-01-13 23:17:50
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30358/output Modified Files: pw_text.php Log Message: Removed a leeding zero in the wind direction. Closes #1082695. Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- pw_text.php 11 Feb 2004 14:02:17 -0000 1.24 +++ pw_text.php 13 Jan 2005 23:17:39 -0000 1.25 @@ -713,7 +713,7 @@ $wind_str .= $this->strings['wind_from'] . $this->properties['mark_begin'] . $dir_str . $this->properties['mark_end'] . ' (' . - $this->properties['mark_begin'] . $deg . '°' . + $this->properties['mark_begin'] . ($deg * 1) . '°' . $this->properties['mark_end'] . ')'; if (!empty($var_beg)) { |
From: Martin G. <gim...@us...> - 2005-01-13 23:17:03
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30107/output Added Files: pw_text_vi.php pw_text_ro.php Log Message: Added Vietnamese and Romanian translations made by Tran The Trung and Strainu Ion respectively. --- NEW FILE --- <?php // -*- coding: utf-8 -*- require_once(PHPWEATHER_BASE_DIR . '/output/pw_text.php'); /** * Provides all the strings needed by pw_text to produce Vietnamese * output. * Lưu tất cả há»i thoại trong pw_text * Ļ tạo ra giao tiếp Tiếng Viá»t. * * @author Trần Thế Trung <tt...@ho...> * @version pw_text_vi.php,v 1.0 2004/11/02 */ class pw_text_vi extends pw_text { /** * This constructor provides all the strings used. * * @param array This is just passed on to pw_text(). */ function pw_text_vi($weather, $input = array()) { $this->strings['charset'] = 'UTF-8'; $this->strings['no_data'] = 'Rất tiếc là không có dữ liá»u cho %s%s%s.'; $this->strings['list_sentences_and'] = ' và '; $this->strings['list_sentences_comma'] = ', '; $this->strings['list_sentences_final_and'] = ', và '; $this->strings['location'] = 'Bản tin thá»i tiết cá»§a %s%s%s.'; $this->strings['minutes'] = ' phút'; $this->strings['time_format'] = 'Bản tin nháºn İợc từ %s trưá»c Ä¢y, tại %s%s%s UTC.'; $this->strings['time_minutes'] = 'và %s%s%s phút'; $this->strings['time_one_hour'] = '%s%s giá» %s'; $this->strings['time_several_hours'] = '%s%s%s giá» %s'; $this->strings['time_a_moment'] = 'má»t lúc'; $this->strings['meters_per_second'] = ' mét trên giây'; $this->strings['miles_per_hour'] = ' dặm trên giá»'; $this->strings['meter'] = ' mét'; $this->strings['meters'] = ' mét'; $this->strings['feet'] = ' feet Anh'; $this->strings['kilometers'] = ' kilomét'; $this->strings['miles'] = ' dặm'; $this->strings['and'] = ' và '; $this->strings['plus'] = ' cá»ng '; $this->strings['with'] = ' vá»i '; $this->strings['wind_blowing'] = 'Gió thá»i vá»i váºn tá»c '; $this->strings['wind_with_gusts'] = ' gió thá»i mạnh từng cÆ¡n '; $this->strings['wind_from'] = ' từ hưá»ng '; $this->strings['wind_variable'] = ' hưá»ng %sthay Ä»Âi%.'; $this->strings['wind_varying'] = ', thay Ä»Âi giữa %s%s%s (%s%s°%s) và %s%s%s (%s%s°%s)'; $this->strings['wind_calm'] = 'Gió %sdá»u%s'; $this->strings['wind_dir'] = array( 'Bắc', 'Bắc/Ä´ng Bắc', 'Ä´ng Bắc', 'Ä´ng/Ä´ng Bắc', 'Ä´ng', 'Ä´ng/Ä´ng Nam', 'Ä´ng Nam', 'Nam/Ä´ng Nam', 'Nam', 'Nam/Tây Nam', 'Tây Nam', 'Tây/Tây Nam', 'Tây', 'Tây/Tây Bắc', 'Tây Bắc', 'Bắc/Tây Bắc', 'Bắc'); $this->strings['wind_dir_short'] = array( 'B', 'BÄB', 'ÄB', 'ÄÄB', 'Ä', 'ÄÄN', 'ÄN', 'NÄN', 'N', 'NTN', 'TN', 'TTN', 'T', 'TTB', 'TB', 'BTB', 'B'); $this->strings['wind_dir_short_long'] = array( 'B' => 'Bắc', 'ÄB' => 'Ä´ng Bắc', 'Ä' => 'Ä´ng', 'ÄN' => 'Ä´ng Nam', 'N' => 'Nam', 'TN' => 'Tây Nam', 'T' => 'Tây', 'TB' => 'Tây Bắc' ); $this->strings['temperature'] = 'Nhiá»t Ļ Äo trong bóng râm '; $this->strings['dew_point'] = ', Äiá»m sương '; $this->strings['altimeter'] = 'Ãp suất khà quyá»n '; $this->strings['hPa'] = ' hPa'; $this->strings['inHg'] = ' inHg'; $this->strings['rel_humidity'] = 'Ļ ẩm tương Ä»Âi '; $this->strings['feelslike'] = 'Nhiá»t Ļ cảm nháºn giá»ng '; $this->strings['cloud_group_beg'] = 'Mây á» cấp '; $this->strings['cloud_group_end'] = '.'; $this->strings['cloud_clear'] ='Trá»i %squang%s.'; $this->strings['cloud_height'] = ' ỠĻ cao '; $this->strings['cloud_overcast'] ='Trá»i %scó mây%s ỠĻ cao '; $this->strings['cloud_vertical_visibility'] = '%sTầm nhìn thẳng Ä»©ng%s là '; $this->strings['cloud_condition'] = array( 'SKC' => 'quang', 'CLR' => 'quang', 'FEW' => '1 ĺ¿n 2/8', 'SCT' => '3 ĺ¿n 4/8', 'BKN' => '5 ĺ¿n 7/8', 'OVC' => '8/8'); $this->strings['cumulonimbus'] = ' mây tÃch'; $this->strings['towering_cumulus'] = ' mây tầng'; $this->strings['cavok'] = ' không có mây dưá»i %s và không có mây tầng'; $this->strings['currently'] = 'Hiá»n giá» có '; $this->strings['weather'] = array( '-' => ' nhẹ', ' ' => ' trung bình ', '+' => ' mạnh ', 'VC' => ' gần', 'PR' => ' má»t phần', 'BC' => ' dải', 'MI' => ' má»ng', 'DR' => ' Äang di chuyá»n', 'BL' => ' Äang thá»i', 'SH' => ' mưa to', 'TS' => ' bão', 'FZ' => ' giá buá»t', 'DZ' => ' mưa bụi', 'RA' => ' mưa', 'SN' => ' tuyết', 'SG' => ' tuyết hạt', 'IC' => ' tuyết tinh thá»', 'PL' => ' mưa Ä¡ nhá» hạt', 'GR' => ' mưa Ä¡', 'GS' => ' mưa Ä¡ nhẹ', 'UP' => ' không rõ', 'BR' => ' sương nhẹ', 'FG' => ' sương mù', 'FU' => ' khói', 'VA' => ' tro bụi núi lá»a', 'DU' => ' bụi bao phá»§', 'SA' => ' cát bụi', 'HZ' => ' khói sương', 'PY' => ' mưa rà o nhẹ', 'PO' => ' gió xoáy bụi', 'SQ' => ' mưa rà o', 'FC' => ' vòi rá»ng', 'SS' => ' bão bụi'); $this->strings['visibility'] = 'Tầm nhìn chung '; $this->strings['visibility_greater_than'] = 'trên '; $this->strings['visibility_less_than'] = 'dưá»i '; $this->strings['visibility_to'] = 'ĺ¿n '; $this->strings['runway_upward_tendency'] = ' avec tendance à l\'%amélioration%s'; $this->strings['runway_downward_tendency'] = ' vá»i xu hưá»ng %sgiảm dần%s'; $this->strings['runway_no_tendency'] = ' không có xu hưá»ng %srõ rá»t%s'; $this->strings['runway_between'] = 'giữa '; $this->strings['runway_left'] = ' trái'; $this->strings['runway_central'] = ' giữa'; $this->strings['runway_right'] = ' phải'; $this->strings['runway_visibility'] = 'Tầm nhìn là '; $this->strings['runway_for_runway'] = ' cho İá»ng bÄng '; /* We run the parent constructor */ $this->pw_text($weather, $input); } } ?> --- NEW FILE --- <?php require_once(PHPWEATHER_BASE_DIR . '/output/pw_text.php'); /** * Provides all the strings needed by pw_text to produce Romanian * output. * Contine toate replicile necesare pt a obtine * un text in romana * * @author Strainu <st...@st...> * @link http://www.strainu.tk My homepage. * @version pw_text_ro.php,v 1.0 2004/12/29 16:53:40 gimpster Exp */ class pw_text_ro extends pw_text { /** * This constructor provides all the strings used. * * @param array This is just passed on to pw_text(). */ function pw_text_ro($weather, $input = array()) { $this->strings['charset'] = 'ISO-8859-2'; $this->strings['no_data'] = 'Ne pare rau, dar nu exista informatii despre %s%s%s.'; $this->strings['list_sentences_and'] = ' si '; $this->strings['list_sentences_comma'] = ', '; $this->strings['list_sentences_final_and'] = ', si '; $this->strings['location'] = 'Buletinul pentru %s%s%s.'; $this->strings['minutes'] = ' minute'; $this->strings['time_format'] = 'Buletinul a fost facut acum %s , la %s%s%s UTC.'; $this->strings['time_minutes'] = 'si %s%s%s minute'; $this->strings['time_one_hour'] = '%so%s ora %s'; $this->strings['time_several_hours'] = '%s%s%s ore %s'; $this->strings['time_a_moment'] = 'un moment'; $this->strings['meters_per_second'] = ' metri pe secunda'; $this->strings['miles_per_hour'] = ' mile pe ora'; $this->strings['meter'] = ' metri'; $this->strings['meters'] = ' metri'; $this->strings['feet'] = ' picioare'; $this->strings['kilometers'] = ' kilometri'; $this->strings['miles'] = ' mile'; $this->strings['and'] = ' si '; $this->strings['plus'] = ' plus '; $this->strings['with'] = ' cu '; $this->strings['wind_blowing'] = 'Vantul sufla cu viteza de '; $this->strings['wind_with_gusts'] = ' cu rafale de pana la '; $this->strings['wind_from'] = ' din '; $this->strings['wind_variable'] = ' de directie %svariabila%.'; $this->strings['wind_varying'] = ', variand intre %s%s%s (%s%s°%s) si %s%s%s (%s%s°%s)'; $this->strings['wind_calm'] = 'Vantul era %scalm%s'; $this->strings['wind_dir'] = array( 'Nord', 'Nord/Nord-est', 'Nord-est', 'Est/Nord-est', 'Est', 'Est/Sud-est', 'Sud-est', 'Sud/Sud-est', 'Sud', 'Sud/Sud-Vest', 'Sud-Vest', 'Vest/Sud-Vest', 'Vest', 'Vest/Nord-Vest', 'Nord-Vest', 'Nord/Nord-Vest', 'Nord'); $this->strings['wind_dir_short'] = array( 'N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSV', 'SV', 'VSV', 'V', 'VNV', 'NV', 'NNV', 'N'); $this->strings['wind_dir_short_long'] = array( 'N' => 'nord', 'NE' => 'nord-est', 'E' => 'est', 'SE' => 'sud-est', 'S' => 'sud', 'SO' => 'sud-ouest', 'V' => 'Vest', 'NV' => 'nord-vest' ); $this->strings['temperature'] = 'Temperatura era de '; $this->strings['dew_point'] = ', cu un maxim de '; $this->strings['altimeter'] = 'Presiunea atmosferica era de '; $this->strings['hPa'] = ' hPa'; $this->strings['inHg'] = ' inHg'; $this->strings['rel_humidity'] = 'Umiditatea relativa era de '; $this->strings['feelslike'] = 'Temperatura aparenta era de '; $this->strings['cloud_group_beg'] = 'Erau '; $this->strings['cloud_group_end'] = '.'; $this->strings['cloud_clear'] = 'Cerul era %ssenin%s.'; $this->strings['cloud_height'] = ' nebulozitati la altitudinea de '; $this->strings['cloud_overcast'] = 'Cerul era %sacoperit%s de la altitudinea de '; $this->strings['cloud_vertical_visibility'] = ' %sVizibilitatea verticala%s era de '; $this->strings['cloud_condition'] = array( 'SKC' => 'senin', 'CLR' => 'senin', 'FEW' => '1 la 2/8', 'SCT' => '3 la 4/8', 'BKN' => '5 la 7/8', 'OVC' => '8/8'); $this->strings['cumulonimbus'] = ' cumulonimbus'; $this->strings['towering_cumulus'] = ' cumulus congestus'; $this->strings['cavok'] = ' fara nori mai jos de %s si fara cumulonimbus'; $this->strings['currently'] = 'In acest moment '; $this->strings['weather'] = array( '-' => ' usor/usoara ', ' ' => ' moderat(a) ', '+' => ' puternic(a) ', 'VC' => ' in vecinatate', 'PR' => ' partial(a)', 'BC' => ' formatiuni noroase', 'MI' => ' putin dense', 'DR' => ' derivant', 'BL' => ' dezvoltandu-se', 'SH' => ' averse de', 'TS' => ' furtuna', 'FZ' => ' chiciura', 'DZ' => ' burnita', 'RA' => ' ploaie', 'SN' => ' zapada', 'SG' => ' grindina marunta', 'IC' => ' cristale de gheata', 'PL' => ' granule de ghiata', 'GR' => ' grindina', 'GS' => ' grindina fina fine', 'UP' => ' necunoscut', 'BR' => ' bruma', 'FG' => ' ceata', 'FU' => ' fum', 'VA' => ' cenusa vulcanica', 'DU' => ' praf imprastiat', 'SA' => ' nisip', 'HZ' => ' bruma', 'PY' => ' picaturi', 'PO' => ' vartejuri de nisip', 'SQ' => ' graunte', 'FC' => ' tornada', 'SS' => ' furtuna de nisip/praf'); $this->strings['visibility'] = 'Vizibilitatea globala era de '; $this->strings['visibility_greater_than'] = 'mai mare de '; $this->strings['visibility_less_than'] = 'mai mica de '; $this->strings['visibility_to'] = ' la '; $this->strings['runway_upward_tendency'] = ' cu tendinta de %sameliorare%s'; $this->strings['runway_downward_tendency'] = ' cu tendinta de %sdeteriorare%s'; $this->strings['runway_no_tendency'] = ' fara tendinta %sdistinctiva%s'; $this->strings['runway_between'] = 'intre '; $this->strings['runway_left'] = ' stanga'; $this->strings['runway_central'] = ' centrala'; $this->strings['runway_right'] = ' dreapta'; $this->strings['runway_visibility'] = 'Vizibilitatea era de '; $this->strings['runway_for_runway'] = ' pentru pista '; /* We run the parent constructor */ $this->pw_text($weather, $input); } } ?> |
From: Martin G. <gim...@us...> - 2005-01-13 23:17:02
|
Update of /cvsroot/phpweather/phpweather/doc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30107/doc/src Modified Files: contributors-body.texi Log Message: Added Vietnamese and Romanian translations made by Tran The Trung and Strainu Ion respectively. Index: contributors-body.texi =================================================================== RCS file: /cvsroot/phpweather/phpweather/doc/src/contributors-body.texi,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- contributors-body.texi 17 Jun 2004 12:54:14 -0000 1.6 +++ contributors-body.texi 13 Jan 2005 23:16:51 -0000 1.7 @@ -188,4 +188,12 @@ Contributed a Portugues translation. +@item Tran The Trung + +Submitted a Vietnamese translation. + +@item Strainu Ion + +Made a Romanian translation. + @end table |
From: Martin G. <gim...@us...> - 2004-06-17 13:10:52
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29063 Modified Files: data_retrieval.php Log Message: Don't display all sorts of nasty error messages if the connection cannot be established --- this error condition is already handled at other places in the script. Index: data_retrieval.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/data_retrieval.php,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- data_retrieval.php 10 May 2004 09:00:26 -0000 1.40 +++ data_retrieval.php 17 Jun 2004 13:10:43 -0000 1.41 @@ -181,14 +181,14 @@ if ($this->properties['use_proxy']) { /* We use a proxy */ - $fp = fsockopen($this->properties['proxy_host'], - $this->properties['proxy_port']); + $fp = @fsockopen($this->properties['proxy_host'], + $this->properties['proxy_port']); $request = "GET http://$host$location $request" . "Host: $host\r\n" . "Content-Type: text/html\r\n" . "Connection: Close\r\n\r\n"; } else { - $fp = fsockopen($host, 80); + $fp = @fsockopen($host, 80); $request = "GET $location $request" . "Host: $host\r\n" . "Content-Type: text/html\r\n" . |
From: Martin G. <gim...@us...> - 2004-06-17 12:57:36
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18351 Modified Files: VERSION ChangeLog Log Message: ChangeLog entries from 2.2.1 to 2.2.2. Index: VERSION =================================================================== RCS file: /cvsroot/phpweather/phpweather/VERSION,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- VERSION 3 Feb 2004 16:33:35 -0000 1.13 +++ VERSION 17 Jun 2004 12:57:24 -0000 1.14 @@ -1 +1 @@ -2.2.1 +2.2.2 Index: ChangeLog =================================================================== RCS file: /cvsroot/phpweather/phpweather/ChangeLog,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ChangeLog 3 Feb 2004 16:37:04 -0000 1.15 +++ ChangeLog 17 Jun 2004 12:57:24 -0000 1.16 @@ -1,3 +1,90 @@ +2004-06-17 12:54 Martin Geisler <gim...@gi...> + + * doc/src/contributors-body.texi: + + Fixed plain @. + +2004-06-17 12:31 Martin Geisler <gim...@gi...> + + * index.php: + + Remove any extra spaces in those two variables. + +2004-06-01 20:39 Martin Geisler <gim...@gi...> + + * doc/src/contributors-body.texi, output/pw_text_pt.php: + + Added a Portuguese translation made by Cláudio Gamboa. + +2004-06-01 20:30 Martin Geisler <gim...@gi...> + + * db/pw_db_null.php: + + The third field should be trimmed to remove the added padding. + +2004-05-29 16:08 Martin Geisler <gim...@gi...> + + * stations.csv, doc/src/contributors-body.texi: + + Update of the Brazillian stations. + +2004-05-10 09:00 Martin Geisler <gim...@gi...> + + * data_retrieval.php: + + Fix for bug report #951022 --- no initialization of $metar_time + when no METAR is received. + +2004-02-22 12:18 Max Hammond <ma...@fl...> + + * output/pw_text_en_US.php: + + Past tense + +2004-02-11 15:04 Martin Geisler <gim...@gi...> + + * doc/src/contributors-body.texi: + + Let's not forget Nick Crossland (ncrossland) for making the British + English translation. + +2004-02-11 14:40 Martin Geisler <gim...@gi...> + + * config/make_config.php: + + This will detect when session.auto_start is turned on, and abort so + that the user doesn't see a bunch of errors. Closes #816921. + +2004-02-11 14:08 Martin Geisler <gim...@gi...> + + * languages.php, pw_utilities.php, output/pw_text_en.php, + output/pw_text_en_GB.php, output/pw_text_en_US.php: + + Added a British English translation from Nick Crossland + (ncrossland), and reworked the object hiarachy to support dialects + within a language. + + The idea is that pw_text_en_US contains the code and pw_text_en_GB + extends this class to overrides a few strings. I've left a + pw_text_en class that can be used as an alias for pw_text_en_US. + + The function get_languages in pw_utilities has been adjusted + accordingly. + +2004-02-11 14:02 Martin Geisler <gim...@gi...> + + * output/pw_text.php: + + Use plural form of 'meter' here, this closes #891081 at + SourceForge, thanks goes to Nick Crossland (ncrossland) for + spotting this. + +2004-02-03 16:37 etienne_t + + * ChangeLog: + + Entries from the 2.1.2 release + 2004-02-03 16:33 etienne_t * VERSION: |
From: Martin G. <gim...@us...> - 2004-06-17 12:54:23
|
Update of /cvsroot/phpweather/phpweather/doc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15564/doc/src Modified Files: contributors-body.texi Log Message: Fixed plain @. Index: contributors-body.texi =================================================================== RCS file: /cvsroot/phpweather/phpweather/doc/src/contributors-body.texi,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- contributors-body.texi 1 Jun 2004 20:39:54 -0000 1.5 +++ contributors-body.texi 17 Jun 2004 12:54:14 -0000 1.6 @@ -74,7 +74,7 @@ Made the Hungarian translation for PHP Weather. He has also corrected tons of spelling errors. -@item Johnny Funder @email{jh...@na...} +@item Johnny Funder @email{jhf@@naviair.dk} Lots of explanations and suggestions. He also gave a much simpler formula for calculating the relative humidity. |
From: Martin G. <gim...@us...> - 2004-06-17 12:31:34
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26722 Modified Files: index.php Log Message: Remove any extra spaces in those two variables. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.42 retrieving revision 1.43 diff -u -3 -r1.42 -r1.43 --- index.php 3 Jan 2004 18:38:07 -0000 1.42 +++ index.php 17 Jun 2004 12:31:25 -0000 1.43 @@ -42,13 +42,13 @@ if (empty($HTTP_GET_VARS['cc'])) { $cc = ''; } else { - $cc = stripslashes($HTTP_GET_VARS['cc']); + $cc = trim(stripslashes($HTTP_GET_VARS['cc'])); } if (empty($HTTP_GET_VARS['icao'])) { $icao = ''; } else { - $icao = stripslashes($HTTP_GET_VARS['icao']); + $icao = trim(stripslashes($HTTP_GET_VARS['icao'])); } $languages = get_languages('text'); |
From: Martin G. <gim...@us...> - 2004-06-01 20:40:04
|
Update of /cvsroot/phpweather/phpweather/doc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16451/doc/src Modified Files: contributors-body.texi Log Message: Added a Portuguese translation made by Cláudio Gamboa. Index: contributors-body.texi =================================================================== RCS file: /cvsroot/phpweather/phpweather/doc/src/contributors-body.texi,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- contributors-body.texi 29 May 2004 16:08:36 -0000 1.4 +++ contributors-body.texi 1 Jun 2004 20:39:54 -0000 1.5 @@ -184,4 +184,8 @@ Updated the Brazillian stations in the @file{stations.csv} file. +@item Cl@'audio Gamboa + +Contributed a Portugues translation. + @end table |
From: Martin G. <gim...@us...> - 2004-06-01 20:40:04
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16451/output Added Files: pw_text_pt.php Log Message: Added a Portuguese translation made by Cláudio Gamboa. --- NEW FILE --- <?php require_once(PHPWEATHER_BASE_DIR . '/output/pw_text_es.php'); /** * Provides all the strings needed by pw_text to produce Portuguese * output. * * @author Gamboa <ga...@et...> * @link http://gamboa.eth.pt/ My homepage. * @version pw_text_pt.php,v 1.4 2002/08/28 21:13:40 gimpster Exp */ class pw_text_pt extends pw_text_es { /** * This constructor provides all the strings used. * * @param array This is just passed on to pw_text(). */ function pw_text_pt($weather, $input = array()) { $this->strings['charset'] = 'ISO-8859-1'; $this->strings['no_data'] = 'Dado não disponiveis para %s%s%s.'; $this->strings['list_sentences_and'] = ' e '; $this->strings['list_sentences_comma'] = ', '; $this->strings['list_sentences_final_and'] = ', e '; $this->strings['location'] = 'Informação meteorológica para %s%s%s.'; $this->strings['minutes'] = ' minutos'; $this->strings['time_format'] = ' A informação foi feita há %s, às %s%s%s UTC.'; $this->strings['time_minutes'] = 'e %s%s%s minutos'; $this->strings['time_one_hour'] = '%suma%s hora %s'; $this->strings['time_several_hours'] = '%s%s%s horas %s'; $this->strings['time_a_moment'] = 'um momento'; $this->strings['meters_per_second'] = ' m/s'; $this->strings['miles_per_hour'] = ' milhas por hora'; $this->strings['meter'] = ' metros'; $this->strings['meters'] = ' metros'; $this->strings['feet'] = ' pés'; $this->strings['kilometers'] = ' kilómetros'; $this->strings['miles'] = ' milhas'; $this->strings['and'] = ' e '; $this->strings['plus'] = ' ademá de '; $this->strings['with'] = ' com '; $this->strings['wind_blowing'] = ' O vento soprava a uma velocidade de '; $this->strings['wind_with_gusts'] = ' com rajadas de '; $this->strings['wind_from'] = ' do '; $this->strings['wind_variable'] = ' com %sdirecção variavel%s'; $this->strings['wind_varying'] = ', variando entre %s%s%s (%s%s%s) e %s%s%s (%s%s%s)'; $this->strings['wind_calm'] = ' O ar estava %scalmo%s'; $this->strings['wind_dir'] = array( 'norte', 'norte-nordeste', 'nordeste', 'este-nordeste', 'este', 'este-sudeste', 'sudeste', 'sul-sudeste', 'sul', 'sul-sudoeste', 'sudoeste', 'oeste-sudoeste', 'oeste', 'oeste-noroeste', 'noroeste', 'norte-noroeste', 'norte'); $this->strings['wind_dir_short'] = array( 'N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW', 'N'); $this->strings['wind_dir_short_long'] = array( 'N' => 'norte', 'NE' => 'nordeste', 'E' => 'este', 'SE' => 'sudeste', 'S' => 'sul', 'SW' => 'sudoeste', 'W' => 'oeste', 'NW' => 'noroeste' ); $this->strings['temperature'] = ' A temperatura era '; $this->strings['dew_point'] = ', com um ponto de orvalho de '; $this->strings['altimeter'] = ' A pressão atmosférica era '; $this->strings['hPa'] = ' hPa'; $this->strings['inHg'] = ' inHg'; $this->strings['rel_humidity'] = ' Havia uma humidade relativa do '; $this->strings['feelslike'] = ' A sensaço térmica era de '; $this->strings['cloud_group_beg'] = ' Enquanto a nubolosidade, '; $this->strings['cloud_group_end'] = '.'; $this->strings['cloud_clear'] = ' O céu estava %slimpo%s.'; $this->strings['cloud_height'] = ' a uma altitude de '; $this->strings['cloud_overcast'] = 'céu %snublado%s a partir dos '; $this->strings['cloud_vertical_visibility'] = 'a %svisibilidade vertical%s era '; $this->strings['cloud_condition'] = array( 'SKC' => 'limpo', 'CLR' => 'limpo', 'FEW' => 'algumas nuvens', 'SCT' => 'nuvens dispersas', 'BKN' => 'nubolosidade descontinua', 'OVC' => 'nublado'); $this->strings['cumulonimbus'] = ' tipo cumulonimbos'; //towering_cumulus son nubes de desarrollo vertical (cumulus congestus) $this->strings['towering_cumulus'] = ' tipo cúmulos'; $this->strings['cavok'] = ' sem nuvens por baixo de %s e sem presença de cumulusnimbos'; $this->strings['currently'] = ' Actualmente '; $this->strings['weather'] = array( '-' => ' leve', ' ' => ' moderada ', '+' => ' forte ', 'VC' => ' nas proximidades', 'PR' => ' parcial', 'BC' => ' bancos de', 'MI' => ' baixa', 'DR' => ' de tendencia descendente', 'BL' => ' soprando', 'SH' => ' chuviscos,', 'TS' => ' trovoada', 'FZ' => ' geada', 'DZ' => ' garúa', 'RA' => ' chuva', 'SN' => ' neve', 'SG' => ' neve fina', 'IC' => ' cristais de gelo', 'PL' => ' gelo granulado', 'GR' => ' granizo', 'GS' => ' granizo pequeno', 'UP' => ' desconhecido', 'BR' => ' neblina', 'FG' => ' nevoa', 'FU' => ' fumo', 'VA' => ' cinza vulcanica', 'DU' => ' poeira', 'SA' => ' areia', 'HZ' => ' embaciado', 'PY' => ' rocío', 'PO' => ' provavel aparição de remoinhos de pó ou areia', 'SQ' => ' trovoadas', 'FC' => ' tornados/furacões', 'SS' => ' tempestade de areia ou pó'); $this->strings['visibility'] = ' Naquele momento a visibilidade global era '; $this->strings['visibility_greater_than'] = 'maior de '; $this->strings['visibility_less_than'] = 'menor de '; $this->strings['visibility_to'] = ' de '; $this->strings['runway_upward_tendency'] = ' com tendencia a %subir%s'; $this->strings['runway_downward_tendency'] = ' com tendencia a %sbaixar%s'; $this->strings['runway_no_tendency'] = ' %ssem%s tendencia marcada'; $this->strings['runway_between'] = 'entre '; $this->strings['runway_left'] = ' equerda'; $this->strings['runway_central'] = ' central'; $this->strings['runway_right'] = ' direita'; $this->strings['runway_visibility'] = ' A visibilidade era '; $this->strings['runway_for_runway'] = ' para a estrada '; /* We run the parent constructor */ $this->pw_text_es($weather, $input); } } ?> |
From: Martin G. <gim...@us...> - 2004-06-01 20:31:01
|
Update of /cvsroot/phpweather/phpweather/db In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14238/db Modified Files: pw_db_null.php Log Message: The third field should be trimmed to remove the added padding. Index: pw_db_null.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/db/pw_db_null.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- pw_db_null.php 30 Jan 2004 20:46:36 -0000 1.6 +++ pw_db_null.php 1 Jun 2004 20:30:53 -0000 1.7 @@ -183,7 +183,7 @@ $left = ceil(($left+$right)/2); } else { $left = $right; - $result = array($data[1], $data[2], $data[3]); + $result = array($data[1], $data[2], rtrim($data[3])); } } fclose($fp); |
From: Martin G. <gim...@us...> - 2004-05-29 16:08:48
|
Update of /cvsroot/phpweather/phpweather/doc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25455/doc/src Modified Files: contributors-body.texi Log Message: Update of the Brazillian stations. Index: contributors-body.texi =================================================================== RCS file: /cvsroot/phpweather/phpweather/doc/src/contributors-body.texi,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- contributors-body.texi 11 Feb 2004 15:04:05 -0000 1.3 +++ contributors-body.texi 29 May 2004 16:08:36 -0000 1.4 @@ -74,7 +74,7 @@ Made the Hungarian translation for PHP Weather. He has also corrected tons of spelling errors. -@item Johnny Funder +@item Johnny Funder @email{jh...@na...} Lots of explanations and suggestions. He also gave a much simpler formula for calculating the relative humidity. @@ -180,4 +180,8 @@ Made a British English translation. +@item Jos@'e de @'Avila Junior + +Updated the Brazillian stations in the @file{stations.csv} file. + @end table |
From: Martin G. <gim...@us...> - 2004-05-29 16:08:47
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25455 Modified Files: stations.csv Log Message: Update of the Brazillian stations. Index: stations.csv =================================================================== RCS file: /cvsroot/phpweather/phpweather/stations.csv,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- stations.csv 30 Dec 2003 16:06:54 -0000 1.12 +++ stations.csv 29 May 2004 16:08:35 -0000 1.13 @@ -372,107 +372,161 @@ FBTS;Tsabong FBTE;Tshane -## BR;Brazil ## -SBAF;Afonsos Aeroporto -SBAT;Alta Floresta Aeroporto -SBHT;Altamira -SBAN;Anapolis Braz-Afb -SBAR;Aracaju Aeroporto -SBBG;Bage Aeroporto -SBBQ;Barbacena -SWBC;Barcelos -SBBW;Barra Do Garcas -SBBU;Bauru -SBBE;Belem Aeroporto -SBCF;Belo Horizonte -SBBH;Belo Horizonte Aeroporto -SBBC;Benjamin Constant -SBBV;Boa Vista Aeropor-To -SBLP;Bom Jesus Da Lapa -SBBR;Brasilia Aeroporto -SBKG;Campina Grande -SBKP;Campinas Aeroporto -SBCG;Campo Grande Aeroporto -SBCP;Campos -SBCV;Caravelas Aeropor-To -SBAA;Conceicao Do Araguaia -SBCR;Corumba -SBCZ;Cruzeiro Do Sul -SBCY;Cuiaba Aeroporto -SBBI;Curitiba -SBCT;Curitiba Aeroporto -SBEG;Eduardo Gomes International -SBFN;Fernando De Noronha -SBFL;Florianopolis Aeroporto -SBFZ;Fortaleza Aeropor-To -SBFI;Foz Do Iguacu Aeroporto -SBGL;Galeao -SBGA;Gama -SBGO;Goiania Aeroporto -SBGW;Guaratingueta -SBGR;Guarulhos Civ / Mil -SBYA;Iauarete -SBIL;Ilheus Aeroporto -SBIZ;Imperatriz -SBIH;Itaituba -SBEK;Jacareacanga -SBJP;Joao Pessoa -SBJF;Juiz De Fora -SBLO;Londrina Aeroporto -SBME;Macae -SBMQ;Macapa -SBMO;Maceio Aeroporto -SBMN;Manaus Aeroporto -SBMY;Manicore -SBMA;Maraba -SBCI;Maranhao / Carolina Airport -SBMG;Maringa -SBMT;Marte Civ / Mil -SBMS;Mocoro / 17 Rosado -SBMK;Montes Claros -SBNT;Natal Aeroporto -SBOI;Oiapoque -SBPG;Paranagua -SBPB;Parnaiba Aeroporto -SBPF;Passo Fundo -SBUF;Paulo Afonso -SBPK;Pelotas -SBPL;Petrolina Aeropor-To -SBYS;Pirassununga -SBPC;Pocos De Caldas -SBPP;Ponta Pora Aeropor-To -SBCO;Porto Alegre -SBPA;Porto Alegre Aero-Porto -SBPN;Porto Nacional Aeroporto -SBPV;Porto Velho Aeroporto -SBDN;Presidente Prudente -SBRF;Recife Aeroporto -SBRS;Resende -SBJR;Rio / Jacarepagua -SBRB;Rio Branco -SBRJ;Rio De Janeiro Aeroporto -SBES;S. P. Aldeia Aerodrome -SBSV;Salvador Aeroporto -SBSC;Santa Cruz Aeropor-To -SBSM;Santa Maria Aero-Porto -SBSN;Santarem-Aeroporto -SBST;Santos Aeroporto -SBSA;Sao Carlos -SBUA;Sao Gabriel Da Cachoeira -SBSJ;Sao Jose Dos Campo -SBSL;Sao Luiz Aeroporto -SBSP;Sao Paulo Aeropor-To -SBTT;Tabatinga -SBTK;Tarauaca -SBTF;Tefe -SBTE;Teresina Aeroporto -SBTU;Tucurui -SBUR;Uberaba -SBUG;Uruguaiana Aeroporto -SBVH;Vilhena Aeroporto -SBVT;Vitoria Aeroporto -SBQV;Vitoria Da Conquista -SBXV;Xavantina +# Updated list made by José Ávila <du...@ig...> +# +# Source: Brazilian Rotaer +# Date: 20/May/2004 +# +# Note: All data was translated to Brazilian Portuguese. +# This data will must replace the previous data of +# PHP Weather (There are some errors at BR section). + + +## BR;Brasil ## +SBAA;Aeroporto Conceição do Araguaia (Conceição do Araguaia/PA) +SBAF;Campo Délio Jardim de Mattos (Rio de Janeiro/RJ) +SBAM;Aeroporto Amapá (Amapá/AP) +SBAN;Base Aérea de Anápolis (Anápolis/GO) +SBAQ;Aeroporto Araraquara (Araraquara/SP) +SBAR;Aeroporto Santa Maria (Aracaju/SE) +SBAS;Aeroporto Assis (Assis/SP) +SBAT;Aeroporto Alta Floresta (Alta Floresta/MT) +SBAU;Aeroporto Araçatuba (Araçatuba/SP) +SBAV;Aeroporto Usina Porto Primavera (Rosana/SP) +SBAX;Aeroporto Araxá (Araxá/MG) +SBBE;Aeroporto Internacional Val de Cães (Belém/PA) +SBBG;Aeroporto Internacional Comandante Gustavo Kraemer (Bagé/RS) +SBBH;Aeroporto Pampulha (Belo Horizonte/MG) +SBBI;Aeroporto Bacacheri (Curitiba/PR) +SBBQ;Aeroporto Major Brigadeiro Doorgal Borges (Barbacena/MG) +SBBR;Aeroporto Internacional Pres. Juscelino Kubitschek (Brasília/DF) +SBBT;Aeroporto Chafei Amsei (Barretos/SP) +SBBU;Aeroporto Bauru (Bauru/SP) +SBBV;Aeroporto Internacional Boa Vista (Boa Vista/RR) +SBBW;Aeroporto Barra do Garças (Barra do Garças/MT) +SBBZ;Aeroporto Umberto Modiano (Armação de Búzios/RJ) +SBCA;Aeroporto Cascavel (Cascavel/PR) +SBCB;Aeroporto Cabo Frio (Cabo Frio/RJ) +SBCC;Aeroporto Cachimbo (Novo Progresso/PA) +SBCF;Aeroporto Internacional Tancredo Neves (Confins - Belo Horizonte/MG) +SBCG;Aeroporto Internacional Campo Grande (Campo Grande/MS) +SBCH;Aeroporto Chapecó (Chapecó/SC) +SBCI;Aeroporto Carolina (Carolina/MA) +SBCJ;Aeroporto Carajás (Parauapebas/PA) +SBCM;Aeroporto Forquilhinha (Criciúma/SC) +SBCO;Aeroporto Canoas (Porto Alegre/RS) +SBCP;Aeroporto Bartolomeu Lisandro (Campos dos Goytacazes/RJ) +SBCR;Aeroporto Internacional Corumbá (Corumbá/MS) +SBCT;Aeroporto Internacional Afonso Pena (Curitiba/PR) +SBCV;Aeroporto Caravelas (Caravelas/BA) +SBCX;Campo dos Bugres (Caxias do Sul/RS) +SBCY;Aeroporto Internacional Marechal Rondon (Cuiabá/MT) +SBCZ;Aeroporto Internacional Cruzeiro do Sul (Cruzeiro do Sul/AC) +SBDN;Aeroporto Presidente Prudente (Presidente Prudente/SP) +SBEG;Aeroporto Internacional Eduardo Gomes (Manaus/AM) +SBEK;Aeroporto Jacareacanga (Jacareacanga/PA) +SBES;Aeroporto São Pedro da Aldeia (São Pedro da Aldeia/RJ) +SBFI;Aeroporto Internacional Cataratas (Foz do Iguaçu/PR) +SBFL;Aeroporto Internacional Hercílio Luz (Florianópolis/SC) +SBFN;Aeroporto Fernando de Noronha (Fernando de Noronha/PE) +SBFS;Aeroporto HELPN São Tomé (Campos dos Goytacazes/RJ) +SBFT;Aeroporto Fronteira (Fronteira/MG) +SBFU;Aeroporto Furnas (São José da Barra/MG) +SBFZ;Aeroporto Internacional Pinto Martins (Fortaleza/CE) +SBGL;Aeroporto Internacional Galeão - Antônio Carlos Jobim (Rio de Janeiro/RJ) +SBGM;Aeroporto Guajará-mirim (Guajará-mirim/RO) +SBGO;Aeroporto Santa Genoveva (Goiânia/GO) +SBGR;Aeroporto Internacional Guarulhos (São Paulo/SP) +SBGU;Aeroporto Tancredo Thomás de Faria (Guarapuava/PR) +SBGV;Aeroporto Governador Valadares (Governador Valadares/MG) +SBGW;Aeroporto Guaratinguetá (Guaratinguetá/SP) +SBHT;Aeroporto Altamira (Altamira/PA) +SBIC;Aeroporto Itacoatiara (Itacoatiara/AM) +SBIH;Aeroporto Itaituba (Itaituba/PA) +SBIL;Aeroporto Ilhéus (Ilhéus/BA) +SBIP;Aeroporto Usiminas (Santana do Paraíso/MG) +SBIT;Aeroporto Hidroelétrica (Itumbiara/GO) +SBIZ;Aeroporto Imperatriz (Imperatriz/MA) +SBJC;Aeroporto Júlio Cesar (Belém/PA) +SBJF;Aeroporto Francisco de Assis (Juiz de Fora/MG) +SBJP;Aeroporto Internacional Pres. Castro Pinto (João Pessoa/PB) +SBJR;Aeroporto Jacarepaguá (Rio de Janeiro/RJ) +SBJU;Aeroporto Cariri (Juazeiro do Norte/CE) +SBJV;Aeroporto Joinville (Joinville/SC) +SBKG;Aeroporto João Suassuna (Campina Grande/PB) +SBKP;Aeroporto Internacional Viracopos (Campinas/SP) +SBLJ;Aeroporto Lages (Lages/SC) +SBLN;Aeroporto Lins (Lins/SP) +SBLO;Aeroporto Londrina (Londrina/PR) +SBLP;Aeroporto Bom Jesus da Lapa (Bom Jesus da Lapa/BA) +SBLS;Aeroporto Lagoa Santa (Lagoa Santa/MG) +SBMA;Aeroporto Marabá (Marabá/PA) +SBMC;Aeroporto Minaçu (Minaçu/GO) +SBMD;Aeroporto Monte dourado (Almeirim/PA) +SBME;Aeroporto Macaé (Macaé/RJ) +SBMG;Aeroporto Regional de Maringá (Maringá/PR) +SBMK;Aeroporto Montes Claros (Montes Claros/MG) +SBML;Aeroporto Marília (Marília/SP) +SBMM;Aeroporto Plataforma P-20 (Macaé/RJ) +SBMN;Aeroporto Ponta Pelada (Manaus/AM) +SBMO;Aeroporto Internacional Zumbi dos Palmares (Maceió/AL) +SBMQ;Aeroporto Internacional Macapá (Macapá/AP) +SBMS;Aeroporto Dix-sept Rosado (Mossoró/RN) +SBMT;Campo de Marte (São Paulo/SP) +SBMY;Aeroporto Manicoré (Manicoré/AM) +SBNF;Aeroporto Navegantes - Itajaí (Navegantes/SC) +SBNM;Aeroporto Santo Ângelo (Santo Ângelo/RS) +SBNT;Aeroporto Augusto Severo (Natal/RN) +SBOI;Aeroporto Oiapoque (Oiapoque/AP) +SBPA;Aeroporto Internacional Salgado Filho (Porto Alegre/RS) +SBPB;Aeroporto Parnaíba (Parnaíba/PI) +SBPC;Aeroporto Poços de Caldas (Poços de Caldas/MG) +SBPF;Aeroporto Lauro Kurtz (Passo Fundo/RS) +SBPK;Aeroporto Internacional Pelotas (Pelotas/RS) +SBPL;Aeroporto Petrolina (Petrolina/PE) +SBPM;Aeroporto Tocantins (Palmas/TO) +SBPN;Aeroporto Porto Nacional (Porto Nacional/TO) +SBPP;Aeroporto Internacional Ponta Porã (Ponta Porã/MS) +SBPR;Aeroporto Carlos Prates (Belo Horizonte/MG) +SBPS;Aeroporto Porto Seguro (Porto Seguro/BA) +SBPV;Aeroporto Internacional Governador Jorge Teixeira de Oliveira (Porto Velho/RO) +SBQV;Aeroporto Vitória da Conquista (Vitória da Conquista/BA) +SBRB;Aeroporto Internacional Presidente Médici (Rio Branco/AC) +SBRF;Aeroporto Internacional Guararapes (Recife/PE) +SBRG;Aeroporto Rio Grande (Rio Grande/RS) +SBRJ;Aeroporto Santos Dumont (Rio de Janeiro/RJ) +SBRP;Aeroporto Leite Lopes (Ribeirão Preto/SP) +SBSC;Aeroporto Santa Cruz (Rio de Janeiro/RJ) +SBSJ;Aeroporto São José dos Campos (São José dos Campos/SP) +SBSL;Aeroporto Marechal Cunha Machado (São Luís/MA) +SBSM;Aeroporto Santa Maria (Santa Maria/RS) +SBSN;Aeroporto Santarém (Santarém/PA) +SBSP;Aeroporto Internacional Congonhas (São Paulo/SP) +SBSR;Aeroporto São José do Rio Preto (São José do Rio Preto/SP) +SBST;Base Aérea de Guarujá (Guarujá/SP) +SBSV;Aeroporto Internacional deputado Luís Eduardo Magalhães (Salvador/BA) +SBTA;Base de Aviação de Taubaté (Taubaté/SP) +SBTB;Aeroporto Trombetas (Oriximiná/PA) +SBTC;Aeroporto Hotel Transamérica (Una/BA) +SBTD;Aeroporto Toledo (Toledo/PR) +SBTE;Aeroporto Senador Petrônio Portella (Teresina/PI) +SBTF;Aeroporto Tefé (Tefé/AM) +SBTK;Aeroporto Tarauacá (Tarauacá/AC) +SBTL;Aeroporto Telêmaco Borba (Telêmaco Borba/PR) +SBTS;Aeroporto Tiriós (Óbidos/PA) +SBTT;Aeroporto Internacional Tabatinga (Tabatinga/AM) +SBTU;Aeroporto Tucuruí (Tucuruí/PA) +SBUA;Aeroporto São Gabriel da Cachoeira (São Gabriel da Cachoeira/AM) +SBUF;Aeroporto Paulo Afonso (Paulo Afonso/BA) +SBUG;Aeroporto Internacional Rubem Berta (Uruguaiana/RS) +SBUL;Aeroporto Uberlândia (Uberlândia/MG) +SBUP;Aeroporto Urubupungá (Castilho/SP) +SBUR;Aeroporto Uberaba (Uberaba/MG) +SBVG;Aeroporto Major Brigadeiro Trompowsky (Varginha/MG) +SBVH;Aeroporto Vilhena (Vilhena/RO) +SBVT;Aeroporto Goiabeiras (Vitória/ES) +SBYA;Aeroporto Iauaretê (São Gabriel da Cachoeira/AM) +SBYS;Campo Fontenelle (Pirassununga/SP) ## IO;British Indian Ocean Territory ## FJDG;Diego Garcia |
From: Martin G. <gim...@us...> - 2004-05-10 09:00:37
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30968 Modified Files: data_retrieval.php Log Message: Fix for bug report #951022 --- no initialization of $metar_time when no METAR is received. Index: data_retrieval.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/data_retrieval.php,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- data_retrieval.php 30 Jan 2004 20:46:36 -0000 1.39 +++ data_retrieval.php 10 May 2004 09:00:26 -0000 1.40 @@ -417,6 +417,8 @@ $metar = $this->metar; } $timestamp = time() - $this->properties['cache_timeout'] + 600; + /* We don't have a METAR, so let's date it way back to 1970. */ + $metar_time = 0; } /* We then cache the METAR in our database */ |
From: Max H. <ir...@us...> - 2004-02-22 12:31:21
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4440 Modified Files: pw_text_en_US.php Log Message: Past tense Index: pw_text_en_US.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text_en_US.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- pw_text_en_US.php 11 Feb 2004 14:08:16 -0000 1.1 +++ pw_text_en_US.php 22 Feb 2004 12:18:35 -0000 1.2 @@ -98,7 +98,7 @@ $this->strings['hPa'] = ' hPa'; $this->strings['inHg'] = ' inHg'; $this->strings['rel_humidity'] = 'The relative humidity was '; - $this->strings['feelslike'] = 'The temperature feels like '; + $this->strings['feelslike'] = 'The temperature felt like '; $this->strings['cloud_group_beg'] = 'There were '; $this->strings['cloud_group_end'] = '.'; $this->strings['cloud_clear'] = 'The sky was %sclear%s.'; |
From: Martin G. <gim...@us...> - 2004-02-11 15:08:18
|
Update of /cvsroot/phpweather/phpweather/doc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3979/doc/src Modified Files: contributors-body.texi Log Message: Let's not forget Nick Crossland (ncrossland) for making the British English translation. Index: contributors-body.texi =================================================================== RCS file: /cvsroot/phpweather/phpweather/doc/src/contributors-body.texi,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- contributors-body.texi 1 Jan 2004 22:49:17 -0000 1.2 +++ contributors-body.texi 11 Feb 2004 15:04:05 -0000 1.3 @@ -176,4 +176,8 @@ Updated the South African stations in the @file{stations.csv} file. +@item Nick Crossland (ncrossland) + +Made a British English translation. + @end table |
From: Martin G. <gim...@us...> - 2004-02-11 14:45:11
|
Update of /cvsroot/phpweather/phpweather/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30399/config Modified Files: make_config.php Log Message: This will detect when session.auto_start is turned on, and abort so that the user doesn't see a bunch of errors. Closes #816921. Index: make_config.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/config/make_config.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- make_config.php 7 Oct 2003 22:31:54 -0000 1.12 +++ make_config.php 11 Feb 2004 14:40:58 -0000 1.13 @@ -1,5 +1,40 @@ <?php +if (ini_get('session.auto_start')) { + /* Sorry, no configuration builder for you... */ +?> + +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "DTD/xhtml1-transitional.dtd"> +<html> +<head> + <link rel="stylesheet" type="text/css" href="../pw_style.css" /> + <title>Configuration Builder for PHP Weather</title> +</head> +<body> + +<img src="../icons/phpweather-long-white.png" width="187" height="50" +alt="PHP Weather" align="right" /> + +<h1>Configuration Builder for PHP Weather</h1> + +<p>Sorry, but you cannot use the Configurator when PHP is configured +with <code>session.auto_start</code> turned on.</p> + +<p>See <a href="http://php.net/manual/ref.session.php">this +page</a> in the <a href="http://php.net/manual/">PHP Manual</a> for +help.</p> + +<p>You can of course still make your <code>defaults.php</code> file by +hand, just make a copy of the <code>defaults-dist.php</code> file and +then change the settings to suit your preferences. Then remove any +unchanged preferences and save it as <code>defaults.php</code>.</p> + +<?php + exit; +} + error_reporting(E_ALL); require_once('../pw_utilities.php'); @@ -487,7 +522,7 @@ <h1>Configuration Builder for PHP Weather</h1> -<p>This is the Configuretor shipped with PHP Weather.</p> +<p>This is the Configurator shipped with PHP Weather.</p> <p>Change the options below - when you're done, then press one of the 'Update Configuration' buttons. Depending on your choices, more |
From: Martin G. <gim...@us...> - 2004-02-11 14:12:29
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22354/output Modified Files: pw_text_en.php Added Files: pw_text_en_GB.php pw_text_en_US.php Log Message: Added a British English translation from Nick Crossland (ncrossland), and reworked the object hiarachy to support dialects within a language. The idea is that pw_text_en_US contains the code and pw_text_en_GB extends this class to overrides a few strings. I've left a pw_text_en class that can be used as an alias for pw_text_en_US. The function get_languages in pw_utilities has been adjusted accordingly. --- NEW FILE --- <?php require_once(PHPWEATHER_BASE_DIR . '/output/pw_text_en.php'); /** * Provides all the strings needed by pw_text to produce British * English output. * * @author Nick Crossland <ni...@ni...> * @link http://www.nickcrossland.co.uk/ My homepage. * @version pw_text_uk.php,v 1.0 2004/02/04 */ class pw_text_en_GB extends pw_text_en { /** * This constructor provides all the strings used. * * @param array This is just passed on to pw_text(). */ function pw_text_en_GB($weather, $input = array()) { /* We run the parent constructor */ $this->pw_text_en($weather, $input); /* Now override the strings with the British English spellings: */ $this->strings['meters_per_second'] = ' metres per second'; $this->strings['meter'] = ' metre'; $this->strings['meters'] = ' metres'; $this->strings['kilometers'] = ' kilometres'; } } ?> --- NEW FILE --- <?php require_once(PHPWEATHER_BASE_DIR . '/output/pw_text.php'); /** * Provides all the strings needed by pw_text to produce American * English output. * * @author Martin Geisler <gim...@gi...> * @link http://www.gimpster.com/ My homepage. * @version $Id: pw_text_en_US.php,v 1.1 2004/02/11 14:08:16 gimpster Exp $ */ class pw_text_en_US extends pw_text { /** * This constructor provides all the strings used. * * @param array This is just passed on to pw_text(). */ function pw_text_en_US($weather, $input = array()) { $this->strings['charset'] = 'ISO-8859-1'; $this->strings['no_data'] = 'Sorry! There\'s no data available for %s%s%s.'; $this->strings['list_sentences_and'] = ' and '; $this->strings['list_sentences_comma'] = ', '; $this->strings['list_sentences_final_and'] = ', and '; $this->strings['location'] = 'This is a report for %s%s%s.'; $this->strings['minutes'] = ' minutes'; $this->strings['time_format'] = 'The report was made %s ago, at %s%s%s UTC.'; $this->strings['time_minutes'] = 'and %s%s%s minutes'; $this->strings['time_one_hour'] = '%sone%s hour %s'; $this->strings['time_several_hours'] = '%s%s%s hours %s'; $this->strings['time_a_moment'] = 'a moment'; $this->strings['meters_per_second'] = ' meters per second'; $this->strings['miles_per_hour'] = ' miles per hour'; $this->strings['meter'] = ' meter'; $this->strings['meters'] = ' meters'; $this->strings['feet'] = ' feet'; $this->strings['kilometers'] = ' kilometers'; $this->strings['miles'] = ' miles'; $this->strings['and'] = ' and '; $this->strings['plus'] = ' plus '; $this->strings['with'] = ' with '; $this->strings['wind_blowing'] = 'The wind was blowing at a speed of '; $this->strings['wind_with_gusts'] = ' with gusts up to '; $this->strings['wind_from'] = ' from '; $this->strings['wind_variable'] = ' from %svariable%s directions.'; $this->strings['wind_varying'] = ', varying between %s%s%s (%s%s°%s) and %s%s%s (%s%s°%s)'; $this->strings['wind_calm'] = 'The wind was %scalm%s'; $this->strings['wind_dir'] = array( 'north', 'north/northeast', 'northeast', 'east/northeast', 'east', 'east/southeast', 'southeast', 'south/southeast', 'south', 'south/southwest', 'southwest', 'west/southwest', 'west', 'west/northwest', 'northwest', 'north/northwest', 'north'); $this->strings['wind_dir_short'] = array( 'N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW', 'N'); $this->strings['wind_dir_short_long'] = array( 'N' => 'north', 'NE' => 'northeast', 'E' => 'east', 'SE' => 'southeast', 'S' => 'south', 'SW' => 'southwest', 'W' => 'west', 'NW' => 'northwest' ); $this->strings['temperature'] = 'The temperature was '; $this->strings['dew_point'] = ', with a dew-point at '; $this->strings['altimeter'] = 'The atmospheric pressure was '; $this->strings['hPa'] = ' hPa'; $this->strings['inHg'] = ' inHg'; $this->strings['rel_humidity'] = 'The relative humidity was '; $this->strings['feelslike'] = 'The temperature feels like '; $this->strings['cloud_group_beg'] = 'There were '; $this->strings['cloud_group_end'] = '.'; $this->strings['cloud_clear'] = 'The sky was %sclear%s.'; $this->strings['cloud_height'] = ' clouds at a height of '; $this->strings['cloud_overcast'] = 'The sky was %sovercast%s from a height of '; $this->strings['cloud_vertical_visibility'] = 'a %svertical visibility%s of '; $this->strings['cloud_condition'] = array( 'SKC' => 'clear', 'CLR' => 'clear', 'FEW' => 'a few', 'SCT' => 'scattered', 'BKN' => 'broken', 'OVC' => 'overcast'); $this->strings['cumulonimbus'] = ' cumulonimbus'; $this->strings['towering_cumulus'] = ' towering cumulus'; $this->strings['cavok'] = ' no clouds below %s and no cumulonimbus clouds'; $this->strings['currently'] = 'Currently '; $this->strings['weather'] = array( '-' => ' light', ' ' => ' moderate ', '+' => ' heavy ', 'VC' => ' in the vicinity', 'PR' => ' partial', 'BC' => ' patches of', 'MI' => ' shallow', 'DR' => ' low drifting', 'BL' => ' blowing', 'SH' => ' showers of', 'TS' => ' thunderstorm', 'FZ' => ' freezing', 'DZ' => ' drizzle', 'RA' => ' rain', 'SN' => ' snow', 'SG' => ' snow grains', 'IC' => ' ice crystals', 'PL' => ' ice pellets', 'GR' => ' hail', 'GS' => ' small hail', 'UP' => ' unknown', 'BR' => ' mist', 'FG' => ' fog', 'FU' => ' smoke', 'VA' => ' volcanic ash', 'DU' => ' widespread dust', 'SA' => ' sand', 'HZ' => ' haze', 'PY' => ' spray', 'PO' => ' well-developed dust/sand whirls', 'SQ' => ' squalls', 'FC' => ' funnel cloud tornado waterspout', 'SS' => ' sandstorm/duststorm'); $this->strings['visibility'] = 'The overall visibility was '; $this->strings['visibility_greater_than'] = 'greater than '; $this->strings['visibility_less_than'] = 'less than '; $this->strings['visibility_to'] = ' to the '; $this->strings['runway_upward_tendency'] = ' with an %supward%s tendency'; $this->strings['runway_downward_tendency'] = ' with a %sdownward%s tendency'; $this->strings['runway_no_tendency'] = ' with %sno distinct%s tendency'; $this->strings['runway_between'] = 'between '; $this->strings['runway_left'] = ' left'; $this->strings['runway_central'] = ' central'; $this->strings['runway_right'] = ' right'; $this->strings['runway_visibility'] = 'The visibility was '; $this->strings['runway_for_runway'] = ' for runway '; /* We run the parent constructor */ $this->pw_text($weather, $input); } } ?> Index: pw_text_en.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text_en.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- pw_text_en.php 20 Oct 2002 15:57:15 -0000 1.9 +++ pw_text_en.php 11 Feb 2004 14:08:16 -0000 1.10 @@ -1,173 +1,26 @@ <?php -require_once(PHPWEATHER_BASE_DIR . '/output/pw_text.php'); +require_once(PHPWEATHER_BASE_DIR . '/output/pw_text_en_US.php'); /** - * Provides all the strings needed by pw_text to produce English - * output. + * Alias for the English output. * * @author Martin Geisler <gim...@gi...> * @link http://www.gimpster.com/ My homepage. * @version $Id$ */ -class pw_text_en extends pw_text { +class pw_text_en extends pw_text_en_US { /** * This constructor provides all the strings used. * - * @param array This is just passed on to pw_text(). + * @param array This is just passed on to pw_text_en_US(). */ function pw_text_en($weather, $input = array()) { - $this->strings['charset'] = 'ISO-8859-1'; - $this->strings['no_data'] = 'Sorry! There\'s no data available for %s%s%s.'; - $this->strings['list_sentences_and'] = ' and '; - $this->strings['list_sentences_comma'] = ', '; - $this->strings['list_sentences_final_and'] = ', and '; - $this->strings['location'] = 'This is a report for %s%s%s.'; - $this->strings['minutes'] = ' minutes'; - $this->strings['time_format'] = 'The report was made %s ago, at %s%s%s UTC.'; - $this->strings['time_minutes'] = 'and %s%s%s minutes'; - $this->strings['time_one_hour'] = '%sone%s hour %s'; - $this->strings['time_several_hours'] = '%s%s%s hours %s'; - $this->strings['time_a_moment'] = 'a moment'; - $this->strings['meters_per_second'] = ' meters per second'; - $this->strings['miles_per_hour'] = ' miles per hour'; - $this->strings['meter'] = ' meter'; - $this->strings['meters'] = ' meters'; - $this->strings['feet'] = ' feet'; - $this->strings['kilometers'] = ' kilometers'; - $this->strings['miles'] = ' miles'; - $this->strings['and'] = ' and '; - $this->strings['plus'] = ' plus '; - $this->strings['with'] = ' with '; - $this->strings['wind_blowing'] = 'The wind was blowing at a speed of '; - $this->strings['wind_with_gusts'] = ' with gusts up to '; - $this->strings['wind_from'] = ' from '; - $this->strings['wind_variable'] = ' from %svariable%s directions.'; - $this->strings['wind_varying'] = ', varying between %s%s%s (%s%s°%s) and %s%s%s (%s%s°%s)'; - $this->strings['wind_calm'] = 'The wind was %scalm%s'; - $this->strings['wind_dir'] = array( - 'north', - 'north/northeast', - 'northeast', - 'east/northeast', - 'east', - 'east/southeast', - 'southeast', - 'south/southeast', - 'south', - 'south/southwest', - 'southwest', - 'west/southwest', - 'west', - 'west/northwest', - 'northwest', - 'north/northwest', - 'north'); - $this->strings['wind_dir_short'] = array( - 'N', - 'NNE', - 'NE', - 'ENE', - 'E', - 'ESE', - 'SE', - 'SSE', - 'S', - 'SSW', - 'SW', - 'WSW', - 'W', - 'WNW', - 'NW', - 'NNW', - 'N'); - $this->strings['wind_dir_short_long'] = array( - 'N' => 'north', - 'NE' => 'northeast', - 'E' => 'east', - 'SE' => 'southeast', - 'S' => 'south', - 'SW' => 'southwest', - 'W' => 'west', - 'NW' => 'northwest' - ); - $this->strings['temperature'] = 'The temperature was '; - $this->strings['dew_point'] = ', with a dew-point at '; - $this->strings['altimeter'] = 'The atmospheric pressure was '; - $this->strings['hPa'] = ' hPa'; - $this->strings['inHg'] = ' inHg'; - $this->strings['rel_humidity'] = 'The relative humidity was '; - $this->strings['feelslike'] = 'The temperature feels like '; - $this->strings['cloud_group_beg'] = 'There were '; - $this->strings['cloud_group_end'] = '.'; - $this->strings['cloud_clear'] = 'The sky was %sclear%s.'; - $this->strings['cloud_height'] = ' clouds at a height of '; - $this->strings['cloud_overcast'] = 'The sky was %sovercast%s from a height of '; - $this->strings['cloud_vertical_visibility'] = 'a %svertical visibility%s of '; - $this->strings['cloud_condition'] = - array( - 'SKC' => 'clear', - 'CLR' => 'clear', - 'FEW' => 'a few', - 'SCT' => 'scattered', - 'BKN' => 'broken', - 'OVC' => 'overcast'); - $this->strings['cumulonimbus'] = ' cumulonimbus'; - $this->strings['towering_cumulus'] = ' towering cumulus'; - $this->strings['cavok'] = ' no clouds below %s and no cumulonimbus clouds'; - $this->strings['currently'] = 'Currently '; - $this->strings['weather'] = - array( - '-' => ' light', - ' ' => ' moderate ', - '+' => ' heavy ', - 'VC' => ' in the vicinity', - 'PR' => ' partial', - 'BC' => ' patches of', - 'MI' => ' shallow', - 'DR' => ' low drifting', - 'BL' => ' blowing', - 'SH' => ' showers of', - 'TS' => ' thunderstorm', - 'FZ' => ' freezing', - 'DZ' => ' drizzle', - 'RA' => ' rain', - 'SN' => ' snow', - 'SG' => ' snow grains', - 'IC' => ' ice crystals', - 'PL' => ' ice pellets', - 'GR' => ' hail', - 'GS' => ' small hail', - 'UP' => ' unknown', - 'BR' => ' mist', - 'FG' => ' fog', - 'FU' => ' smoke', - 'VA' => ' volcanic ash', - 'DU' => ' widespread dust', - 'SA' => ' sand', - 'HZ' => ' haze', - 'PY' => ' spray', - 'PO' => ' well-developed dust/sand whirls', - 'SQ' => ' squalls', - 'FC' => ' funnel cloud tornado waterspout', - 'SS' => ' sandstorm/duststorm'); - $this->strings['visibility'] = 'The overall visibility was '; - $this->strings['visibility_greater_than'] = 'greater than '; - $this->strings['visibility_less_than'] = 'less than '; - $this->strings['visibility_to'] = ' to the '; - $this->strings['runway_upward_tendency'] = ' with an %supward%s tendency'; - $this->strings['runway_downward_tendency'] = ' with a %sdownward%s tendency'; - $this->strings['runway_no_tendency'] = ' with %sno distinct%s tendency'; - $this->strings['runway_between'] = 'between '; - $this->strings['runway_left'] = ' left'; - $this->strings['runway_central'] = ' central'; - $this->strings['runway_right'] = ' right'; - $this->strings['runway_visibility'] = 'The visibility was '; - $this->strings['runway_for_runway'] = ' for runway '; - - /* We run the parent constructor */ - $this->pw_text($weather, $input); + /* We run the parent constructor, this gives us American English + * output strings --- change this to pw_get_en_GB for British + * English strings. */ + $this->pw_text_en_US($weather, $input); } } |
From: Martin G. <gim...@us...> - 2004-02-11 14:12:27
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22354 Modified Files: languages.php pw_utilities.php Log Message: Added a British English translation from Nick Crossland (ncrossland), and reworked the object hiarachy to support dialects within a language. The idea is that pw_text_en_US contains the code and pw_text_en_GB extends this class to overrides a few strings. I've left a pw_text_en class that can be used as an alias for pw_text_en_US. The function get_languages in pw_utilities has been adjusted accordingly. Index: languages.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/languages.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- languages.php 17 Mar 2002 14:03:24 -0000 1.1 +++ languages.php 11 Feb 2004 14:08:16 -0000 1.2 @@ -24,7 +24,9 @@ 'de' => 'German', 'dz' => 'Bhutani', 'el' => 'Greek', - 'en' => 'English / American', + 'en' => 'English', + 'en_US' => 'American English', + 'en_GB' => 'British English', 'eo' => 'Esperanto', 'es' => 'Spanish', 'et' => 'Estonian', Index: pw_utilities.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/pw_utilities.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- pw_utilities.php 4 Sep 2002 21:04:41 -0000 1.7 +++ pw_utilities.php 11 Feb 2004 14:08:16 -0000 1.8 @@ -91,8 +91,8 @@ $dir = opendir(dirname(__FILE__) . '/output'); while($file = readdir($dir)) { - if (ereg("^pw_${type}_([a-z][a-z])\.php$", $file, $regs)) { - $output[$regs[1]] = $languages[$regs[1]]; + if (ereg("^pw_${type}_([a-z][a-z])(_[A-Z][A-Z])?\.php$", $file, $regs)) { + $output[$regs[1] . $regs[2]] = $languages[$regs[1] . $regs[2]]; } } closedir($dir); |
From: Martin G. <gim...@us...> - 2004-02-11 14:06:28
|
Update of /cvsroot/phpweather/phpweather/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22066/output Modified Files: pw_text.php Log Message: Use plural form of 'meter' here, this closes #891081 at SourceForge, thanks goes to Nick Crossland (ncrossland) for spotting this. Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- pw_text.php 30 Jan 2004 20:46:36 -0000 1.23 +++ pw_text.php 11 Feb 2004 14:02:17 -0000 1.24 @@ -383,7 +383,7 @@ $this->strings['cloud_condition'][$condition] . $cumulus . $this->properties['mark_end'] . $this->strings['cloud_height'] . $this->pref_units($this->properties['mark_begin'] . $meter . - $this->properties['mark_end'] . $this->strings['meter'], + $this->properties['mark_end'] . $this->strings['meters'], $this->properties['mark_begin'] . $ft . $this->properties['mark_end'] . $this->strings['feet']); |
From: Etienne T. <eti...@us...> - 2004-02-04 05:21:37
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9379 Modified Files: VERSION Log Message: This is PHP Weather version 2.2.1 Index: VERSION =================================================================== RCS file: /cvsroot/phpweather/phpweather/VERSION,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- VERSION 1 Jan 2004 23:45:31 -0000 1.12 +++ VERSION 3 Feb 2004 16:33:35 -0000 1.13 @@ -1 +1 @@ -2.2.0 +2.2.1 |
From: Etienne T. <eti...@us...> - 2004-02-04 01:59:46
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv837 Modified Files: .cvsignore Log Message: added test2.php to .cvsignore Index: .cvsignore =================================================================== RCS file: /cvsroot/phpweather/phpweather/.cvsignore,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- .cvsignore 1 Jan 2004 23:30:36 -0000 1.6 +++ .cvsignore 3 Feb 2004 16:22:10 -0000 1.7 @@ -1,3 +1,4 @@ defaults.php test.php +test2.php AUTHORS |