phpweather-checkins Mailing List for PHP Weather (Page 13)
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: Martin G. <gim...@us...> - 2002-04-07 18:31:12
|
Update of /cvsroot/phpweather/phpweather/config In directory usw-pr-cvs1:/tmp/cvs-serv8572/config Log Message: Directory /cvsroot/phpweather/phpweather/config added to the repository |
From: Martin G. <gim...@us...> - 2002-04-04 16:48:43
|
Update of /cvsroot/phpweather/phpweather-1.x In directory usw-pr-cvs1:/tmp/cvs-serv12841 Modified Files: locale_hu.inc Log Message: This is also based on the translation for 2.x, but since I don't understand a word of Hungarian, there's a good change that this isn't correct. Index: locale_hu.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_hu.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- locale_hu.inc 2 Apr 2002 22:21:26 -0000 1.3 +++ locale_hu.inc 4 Apr 2002 16:48:39 -0000 1.4 @@ -44,7 +44,7 @@ 'wind_str_calm' => '<b>nem fúj</b>', 'wind_vrb_long' => 'változó', 'wind_vrb_short' => 'VAR', - 'windchill' => ' the windchill was <b>%s</b> °C (<b>%s</b> °F) ', + 'windchill' => ' a hõérzet <b>%s</b> °C (<b>%s</b> °F) ', 'precip_last_hour' => 'az utolsó órában. ', 'precip_last_6_hours' => 'az utóbbi 3-6 órában. ', 'precip_last_24_hours' => 'az utóbbi 24 órában. ', |
From: Martin G. <gim...@us...> - 2002-04-04 16:45:15
|
Update of /cvsroot/phpweather/phpweather-1.x In directory usw-pr-cvs1:/tmp/cvs-serv11740 Modified Files: locale_no.inc Log Message: This is based on the translation for 2.x so I think OK. Index: locale_no.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_no.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- locale_no.inc 2 Apr 2002 22:21:26 -0000 1.3 +++ locale_no.inc 4 Apr 2002 16:45:12 -0000 1.4 @@ -37,7 +37,7 @@ 'wind_str_calm' => '<b>stille</b>', 'wind_vrb_long' => 'variable retninger', 'wind_vrb_short' => 'VAR', - 'windchill' => ' the windchill was <b>%s</b> °C (<b>%s</b> °F) ', + 'windchill' => ' vindfaktoren var <b>%s</b> °C (<b>%s</b> °F) ', 'precip_last_hour' => 'i den siste timen. ', 'precip_last_6_hours' => 'i de siste 3 til 6 timer. ', 'precip_last_24_hours' => 'i de siste 24 timer. ', |
From: Martin G. <gim...@us...> - 2002-04-04 16:38:15
|
Update of /cvsroot/phpweather/phpweather-1.x In directory usw-pr-cvs1:/tmp/cvs-serv9206 Modified Files: locale_es.inc Log Message: Another update thanks to the good people at sci.lang.translation. Index: locale_es.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_es.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- locale_es.inc 2 Apr 2002 22:21:26 -0000 1.3 +++ locale_es.inc 4 Apr 2002 16:38:11 -0000 1.4 @@ -4,6 +4,7 @@ * just include it in the main phpweather.inc file. * * Author: Eduardo Guilenea <ed...@gu...> + * Updates: Colman <no...@no...> */ /* Unsets old language variables and loads new ones. */ @@ -37,7 +38,7 @@ 'wind_str_calm' => '<b>calmo</b>', 'wind_vrb_long' => 'variable directions', 'wind_vrb_short' => 'VAR', - 'windchill' => ' the windchill was <b>%s</b> °C (<b>%s</b> °F) ', + 'windchill' => ' sensación térmica era de <b>%s</b> °C (<b>%s</b> °F) ', 'precip_last_hour' => 'en la última hora. ', 'precip_last_6_hours' => 'durante las últimas 3 a 6 horas. ', 'precip_last_24_hours' => 'durante las últimas 24 horas. ', |
From: Martin G. <gim...@us...> - 2002-04-03 00:51:52
|
Update of /cvsroot/phpweather/phpweather-1.x In directory usw-pr-cvs1:/tmp/cvs-serv776 Modified Files: locale_de.inc locale_es.inc locale_fr.inc locale_hu.inc locale_it.inc locale_mt.inc locale_nl.inc locale_no.inc locale_po_br.inc Log Message: Updated Portuguese (po_br) translation with a translation of 'windchill' by João Luiz <Joa...@MB...>. I asked for help in the newsgroup sci.lang.translation and he replied. I've updated the other translations by replacing 'degrees Celsius' with ' °C'. Index: locale_de.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_de.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- locale_de.inc 24 Mar 2002 20:12:24 -0000 1.3 +++ locale_de.inc 2 Apr 2002 22:21:26 -0000 1.4 @@ -43,10 +43,10 @@ 'precip_last_6_hours' => 'in den letzten 3 bis 6 Stunden. ', 'precip_last_24_hours' => 'in den letzten 24 Stunden. ', 'precip_snow' => 'Es liegen <b>%s</b> mm (<b>%s</b> inches) Schnee. ', - 'temp_min_max_6_hours' => 'Die maximale und die minimale Temperatur in den letzen 6 Stunden war <b>%s</b> und <b>%s</b> Grad Celsius (<b>%s</b> and <b>%s</b> Grad Fahrenheit).', - 'temp_max_6_hours' => 'Die maximale Temperatur in den letzen 6 Stunden war <b>%s</b> Grad Celsius (<b>%s</b> Grad Fahrenheit). ', - 'temp_min_6_hours' => 'Die minimale Temperatur in den letzen 6 Stunden war <b>%s</b> Grad Celsius (<b>%s</b> Grad Fahrenheit). ', - 'temp_min_max_24_hours' => 'Die maximale und die minimale Temperatur in den letzen 24 Stunden war <b>%s</b> und <b>%s</b> Grad Celsius (<b>%s</b> and <b>%s</b> Grad Fahrenheit). ', + 'temp_min_max_6_hours' => 'Die maximale und die minimale Temperatur in den letzen 6 Stunden war <b>%s</b> und <b>%s</b> °C (<b>%s</b> and <b>%s</b> °F).', + 'temp_max_6_hours' => 'Die maximale Temperatur in den letzen 6 Stunden war <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_6_hours' => 'Die minimale Temperatur in den letzen 6 Stunden war <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_max_24_hours' => 'Die maximale und die minimale Temperatur in den letzen 24 Stunden war <b>%s</b> und <b>%s</b> °C (<b>%s</b> and <b>%s</b> °F). ', 'runway_vis' => 'Die Sichtweite auf der Landebahn <b>%s</b> ist <b>%s</b> Meter (<b>%s</b> Fuß).', 'runway_vis_min_max' => 'Die Sichtweite auf der Landebahn <b>%s</b> variiert zwischen <b>%s</b> Metern (<b>%s</b> Fuß) und <b>%s</b> Metern (<b>%s</b> Fuß).', 'light' => 'leichter ', @@ -54,7 +54,7 @@ 'Heavy' => 'schwerer ', 'nearby' => 'nahezu ', 'current_weather' => 'Das aktuelle Wetter ist <b>%s</b>. ', - 'pretty_print_metar' => '<blockquote><p>Vor <b>%s</b> minuten, um <b>%s</b> UTC, der Wind %s in %s. Die Temperatur war <b>%s</b> Grad Celsius (<b>%s</b> degrees Fahrenheit), %s und der Luftdruck war <b>%s</b> hPa (<b>%s</b> inHg). Die relative Luftfeuchtigkeit war <b>%s%%</b>. %s %s %s %s %s %s</p></blockquote>' + 'pretty_print_metar' => '<blockquote><p>Vor <b>%s</b> minuten, um <b>%s</b> UTC, der Wind %s in %s. Die Temperatur war <b>%s</b> °C (<b>%s</b> °F), %s und der Luftdruck war <b>%s</b> hPa (<b>%s</b> inHg). Die relative Luftfeuchtigkeit war <b>%s%%</b>. %s %s %s %s %s %s</p></blockquote>' ); $wind_dir_text_short_array = array( Index: locale_es.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_es.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- locale_es.inc 24 Mar 2002 19:52:32 -0000 1.2 +++ locale_es.inc 2 Apr 2002 22:21:26 -0000 1.3 @@ -42,10 +42,10 @@ 'precip_last_6_hours' => 'durante las últimas 3 a 6 horas. ', 'precip_last_24_hours' => 'durante las últimas 24 horas. ', 'precip_snow' => 'Se observaron <b>%s</b> mm (<b>%s</b> pulgadas) de nieve sobre el suelo. ', - 'temp_min_max_6_hours' => 'La temperatura máxima y mínima registrada en las ultimas 6 horas fue de <b>%s</b> y <b>%s</b> grados Celsius (<b>%s</b> y <b>%s</b> grados Fahrenheit). ', - 'temp_max_6_hours' => 'La temperatura máxima registrada en las ultimas 6 horas fue de <b>%s</b> grados Celsius (<b>%s</b> grados Fahrenheit). ', - 'temp_min_6_hours' => 'La temperatura mínima registrada en las ultimas 6 horas fue de <b>%s</b> grados Celsius (<b>%s</b> grados Fahrenheit). ', - 'temp_min_max_24_hours' => 'La temperatura máxima y mínima registrada en las ultimas 24 horas fue de <b>%s</b> y <b>%s</b> grados Celsius (<b>%s</b> y <b>%s</b> grados Fahrenheit). ', + 'temp_min_max_6_hours' => 'La temperatura máxima y mínima registrada en las ultimas 6 horas fue de <b>%s</b> y <b>%s</b> °C (<b>%s</b> y <b>%s</b> °F). ', + 'temp_max_6_hours' => 'La temperatura máxima registrada en las ultimas 6 horas fue de <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_6_hours' => 'La temperatura mínima registrada en las ultimas 6 horas fue de <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_max_24_hours' => 'La temperatura máxima y mínima registrada en las ultimas 24 horas fue de <b>%s</b> y <b>%s</b> °C (<b>%s</b> y <b>%s</b> °F). ', 'runway_vis' => 'The visibility for runway <b>%s</b> is <b>%s</b> meters (<b>%s</b> feet).', 'runway_vis_min_max' => 'The visibility for runway <b>%s</b> varies between <b>%s</b> meters (<b>%s</b> feet) and <b>%s</b> meters (<b>%s</b> feet).', 'light' => 'Ligero ', @@ -53,7 +53,7 @@ 'Heavy' => 'Severo ', 'nearby' => 'Cercano ', 'current_weather' => 'El clima actual es <b>%s</b>. ', - 'pretty_print_metar' => '<blockquote><p><b>%s</b> minutos atrás, de las <b>%s</b> UTC, el viento %s en %s. La temperatura era de <b>%s</b> grados Celsius (<b>%s</b> grados Fahrenheit), %s y la presión de <b>%s</b> hectopascales (hPa) (<b>%s</b> milibares (inHg)). La humedad relativa era de <b>%s%%</b>. %s %s %s %s %s</p></blockquote>' + 'pretty_print_metar' => '<blockquote><p><b>%s</b> minutos atrás, de las <b>%s</b> UTC, el viento %s en %s. La temperatura era de <b>%s</b> °C (<b>%s</b> °F), %s y la presión de <b>%s</b> hectopascales (hPa) (<b>%s</b> milibares (inHg)). La humedad relativa era de <b>%s%%</b>. %s %s %s %s %s</p></blockquote>' ); $wind_dir_text_short_array = array( Index: locale_fr.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_fr.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- locale_fr.inc 24 Mar 2002 19:52:32 -0000 1.2 +++ locale_fr.inc 2 Apr 2002 22:21:26 -0000 1.3 @@ -42,10 +42,10 @@ 'precip_last_6_hours' => 'au cours des 3 à 6 dernières heures. ', 'precip_last_24_hours' => 'au cours des dernières 24 heures. ', 'precip_snow' => 'Il y a une épaisseur de <b>%s</b> mm (<b>%s</b> inches) de neige au sol. ', - 'temp_min_max_6_hours' => 'Les températures maximales et minimales pour les 6 dernières heures étaient de <b>%s</b> et <b>%s</b> degrés Celsius (<b>%s</b> et <b>%s</b> degrés Fahrenheit).', - 'temp_max_6_hours' => 'La température maximale pour les 6 dernières heures était de <b>%s</b> degrés Celsius (<b>%s</b> degrés Fahrenheit). ', - 'temp_min_6_hours' => 'La température minimale pour les 6 dernières heures était de <b>%s</b> degrés Celsius (<b>%s</b> degrés Fahrenheit). ', - 'temp_min_max_24_hours' => 'Les températures maximales et minimales pour les dernières 24 heures étaient de <b>%s</b> et <b>%s</b> degrés Celsius (<b>%s</b> et <b>%s</b> degrés Fahrenheit). ', + 'temp_min_max_6_hours' => 'Les températures maximales et minimales pour les 6 dernières heures étaient de <b>%s</b> et <b>%s</b> °C (<b>%s</b> et <b>%s</b> °F).', + 'temp_max_6_hours' => 'La température maximale pour les 6 dernières heures était de <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_6_hours' => 'La température minimale pour les 6 dernières heures était de <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_max_24_hours' => 'Les températures maximales et minimales pour les dernières 24 heures étaient de <b>%s</b> et <b>%s</b> °C (<b>%s</b> et <b>%s</b> °F). ', 'runway_vis' => 'The visibility for runway <b>%s</b> is <b>%s</b> meters (<b>%s</b> feet).', 'runway_vis_min_max' => 'The visibility for runway <b>%s</b> varies between <b>%s</b> meters (<b>%s</b> feet) and <b>%s</b> meters (<b>%s</b> feet).', 'light' => 'Léger ', @@ -53,7 +53,7 @@ 'Heavy' => 'Fort ', 'nearby' => 'Proche de ', 'current_weather' => 'La météo actuelle est <b>%s</b>. ', - 'pretty_print_metar' => '<blockquote><p>Il y a <b>%s</b> minutes, à <b>%s</b> UTC, le vent %s à %s. La température était de <b>%s</b> degrés Celsius (<b>%s</b> degrés Fahrenheit), %s et la pression atmosphérique était de <b>%s</b> hPa (<b>%s</b> inHg). Il y avait une humidité relative de <b>%s%%</b>. %s %s %s %s %s</p></blockquote>' + 'pretty_print_metar' => '<blockquote><p>Il y a <b>%s</b> minutes, à <b>%s</b> UTC, le vent %s à %s. La température était de <b>%s</b> °C (<b>%s</b> °F), %s et la pression atmosphérique était de <b>%s</b> hPa (<b>%s</b> inHg). Il y avait une humidité relative de <b>%s%%</b>. %s %s %s %s %s</p></blockquote>' ); $wind_dir_text_short_array = array( Index: locale_hu.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_hu.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- locale_hu.inc 24 Mar 2002 19:52:32 -0000 1.2 +++ locale_hu.inc 2 Apr 2002 22:21:26 -0000 1.3 @@ -49,10 +49,10 @@ 'precip_last_6_hours' => 'az utóbbi 3-6 órában. ', 'precip_last_24_hours' => 'az utóbbi 24 órában. ', 'precip_snow' => '<b>%s</b> mm (<b>%s</b> inch) hó van a felszínen. ', - 'temp_min_max_6_hours' => 'A legmagasabb és legalacsonyabb hõmérsékletek az utóbbi 6 órában: <b>%s</b> és <b>%s</b> Celsius fok(<b>%s</b> és <b>%s</b> Fahrenheit fok).', - 'temp_max_6_hours' => 'A legmagasabb hõmérséklet az utóbbi 6 órában: <b>%s</b> Celsius fok (<b>%s</b> Fahrenheit fok). ', - 'temp_min_6_hours' => 'A legalacsonyabb hõmérséklet az utóbbi 6 órában: <b>%s</b> Celsius fok (<b>%s</b> Fahrenheit fok). ', - 'temp_min_max_24_hours' => 'A legmagasabb és legalacsonyabb hõmérséklet az utóbbi 24 órában: <b>%s</b> és <b>%s</b> Celsius fok (<b>%s</b> és <b>%s</b> Fahrenheit fok). ', + 'temp_min_max_6_hours' => 'A legmagasabb és legalacsonyabb hõmérsékletek az utóbbi 6 órában: <b>%s</b> és <b>%s</b> °C (<b>%s</b> és <b>%s</b> °F).', + 'temp_max_6_hours' => 'A legmagasabb hõmérséklet az utóbbi 6 órában: <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_6_hours' => 'A legalacsonyabb hõmérséklet az utóbbi 6 órában: <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_max_24_hours' => 'A legmagasabb és legalacsonyabb hõmérséklet az utóbbi 24 órában: <b>%s</b> és <b>%s</b> °C (<b>%s</b> és <b>%s</b> °F). ', 'runway_vis' => 'A <b>%s</b> kifutópálya láthatósága, <b>%s</b> m (<b>%s</b> láb).', 'runway_vis_min_max' => 'A <b>%s</b> kifutópálya láthatósága változó <b>%s</b> m (<b>%s</b> láb) és <b>%s</b> m (<b>%s</b> láb) között.', 'light' => 'könnyû ', @@ -61,8 +61,8 @@ 'nearby' => 'közeli ', 'current_weather' => 'A pillanatnyi idõjárási jellemzõ: <b>%s</b>. ', 'pretty_print_metar' => '<blockquote><p><b>%s</b> perccel ezelõtt, -<b>%s</b> UTC-kor, a szél %s (%s). A hõmérséklet <b>%s</b> Celsius fok -(<b>%s</b> Fahrenheit fok), %s a légnyomás <b>%s</b> hPa (<b>%s</b> +<b>%s</b> UTC-kor, a szél %s (%s). A hõmérséklet <b>%s</b> °C +(<b>%s</b> °F), %s a légnyomás <b>%s</b> hPa (<b>%s</b> Hgmm). Relatív páratartalom <b>%s%%</b>. %s %s %s %s %s %s</p></blockquote>' ); Index: locale_it.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_it.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- locale_it.inc 25 Mar 2002 13:08:53 -0000 1.3 +++ locale_it.inc 2 Apr 2002 22:21:26 -0000 1.4 @@ -42,10 +42,10 @@ 'precip_last_6_hours' => 'nelle ultime 3 fino 6 ore. ', 'precip_last_24_hours' => 'nelle ultime 24 ore. ', 'precip_snow' => 'Ci sono <b>%s</b> mm (<b>%s</b> pollici) di neve sul suolo. ', - 'temp_min_max_6_hours' => 'La temperatura massima nelle ultime 6 ore era <b>%s</b> e <b>%s</b> gradi Celsius (<b>%s</b> and <b>%s</b> gradi Fahrenheit).', - 'temp_max_6_hours' => 'La temperatura massima nelle ultime 6 ore era <b>%s</b> gradi Celsius (<b>%s</b> gradi Fahrenheit). ', - 'temp_min_6_hours' => 'La temperatura minima nelle ultime 6 ore era <b>%s</b> gradi Celsius (<b>%s</b> gradi Fahrenheit). ', - 'temp_min_max_24_hours' => 'Le temperature massima e minima nelle ultime 24 ore erano <b>%s</b> e <b>%s</b> gradi Celsius (<b>%s</b> e <b>%s</b> gradi Fahrenheit). ', + 'temp_min_max_6_hours' => 'La temperatura massima nelle ultime 6 ore era <b>%s</b> e <b>%s</b> °C (<b>%s</b> and <b>%s</b> °F).', + 'temp_max_6_hours' => 'La temperatura massima nelle ultime 6 ore era <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_6_hours' => 'La temperatura minima nelle ultime 6 ore era <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_max_24_hours' => 'Le temperature massima e minima nelle ultime 24 ore erano <b>%s</b> e <b>%s</b> °C (<b>%s</b> e <b>%s</b> °F). ', 'runway_vis' => 'La visibilitá sulla pista <b>%s</b> é <b>%s</b> metri (<b>%s</b> feet).', 'runway_vis_min_max' => 'La visibilitá sulla pista <b>%s</b> varia tra <b>%s</b> metri(<b>%s</b> piedi) e<b>%s</b> metri (<b>%s</b> piedi).', 'light' => 'Lampi ', @@ -53,7 +53,7 @@ 'Heavy' => 'Intenso ', 'nearby' => 'Vicino ', 'current_weather' => 'Le condizioni attuali sono <b>%s</b>. ', - 'pretty_print_metar' => '<blockquote><p><b>%s</b> minuti fa, alle <b>%s</b> UTC, il vento era %s in %s. La temperatura era <b>%s</b> gradi Celsius (<b>%s</b> gradi Fahrenheit), %s e la pressione era <b>%s</b> hPa (<b>%s</b> inHg). Umiditá relativa era <b>%s%%</b>. %s %s %s %s %s %s</p></blockquote>' + 'pretty_print_metar' => '<blockquote><p><b>%s</b> minuti fa, alle <b>%s</b> UTC, il vento era %s in %s. La temperatura era <b>%s</b> °C (<b>%s</b> °F), %s e la pressione era <b>%s</b> hPa (<b>%s</b> inHg). Umiditá relativa era <b>%s%%</b>. %s %s %s %s %s %s</p></blockquote>' ); $wind_dir_text_short_array = array( Index: locale_mt.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_mt.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- locale_mt.inc 24 Mar 2002 19:52:32 -0000 1.2 +++ locale_mt.inc 2 Apr 2002 22:21:26 -0000 1.3 @@ -45,10 +45,10 @@ 'precip_last_6_hours' => 'fl-ahhar 3 sa 6 sieghat. ', 'precip_last_24_hours' => 'fl-ahhar 24 siegha. ', 'precip_snow' => 'Hemm <b>%s</b> mm (<b>%s</b> pulzieri) ta\' borra fl-art. ', - 'temp_min_max_6_hours' => 'L-inqas u l-ghola temperaturi fl-ahhar 6 sieghat kienu <b>%s</b> u <b>%s</b> grad Celsius (<b>%s</b> u <b>%s</b> grad Fahrenheit).', - 'temp_max_6_hours' => 'L-ghola temperatura fl-ahhar 6 sieghat kienet <b>%s</b> grad Celsius (<b>%s</b> grad Fahrenheit). ', - 'temp_min_6_hours' => 'L-inqas temperatura fl-ahhar 6 sieghat kienet <b>%s</b> grad Celsius (<b>%s</b> grad Fahrenheit). ', - 'temp_min_max_24_hours' => 'L-inqas u l-ghola temperaturi fl-ahhar 24 siegha kienu <b>%s</b> u <b>%s</b> grad Celsius (<b>%s</b> u <b>%s</b> grad Fahrenheit).', + 'temp_min_max_6_hours' => 'L-inqas u l-ghola temperaturi fl-ahhar 6 sieghat kienu <b>%s</b> u <b>%s</b> °C (<b>%s</b> u <b>%s</b> °F).', + 'temp_max_6_hours' => 'L-ghola temperatura fl-ahhar 6 sieghat kienet <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_6_hours' => 'L-inqas temperatura fl-ahhar 6 sieghat kienet <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_max_24_hours' => 'L-inqas u l-ghola temperaturi fl-ahhar 24 siegha kienu <b>%s</b> u <b>%s</b> °C (<b>%s</b> u <b>%s</b> °F).', 'runway_vis' => 'Il-vizibilita\' ghar-runway <b>%s</b> hija ta\' <b>%s</b> metri (<b>%s</b> piedi).', 'runway_vis_min_max' => 'Il-vizibilita\' ghar-runway <b>%s</b> tvarja bejn <b>%s</b> metri (<b>%s</b> piedi) u <b>%s</b> metri (<b>%s</b> piedi).', 'light' => 'Hafif ', @@ -56,7 +56,7 @@ 'Heavy' => 'Qawwi ', 'nearby' => 'Qrib ', 'current_weather' => 'It-temp bhalissa huwa <b>%s</b>. ', - 'pretty_print_metar' => '<blockquote><p><b>%s</b> minuti ilu, ghall-habta ta\' <b>%s</b> UTC, ir-rih kien %s gewwa %s. It-temperatura kienet <b>%s</b> grad Celsius (<b>%s</b> grad Fahrenheit), %s u l-pressjoni kienet <b>%s</b> hPa (<b>%s</b> inHg). L-umdita\' kienet <b>%s%%</b>. %s %s %s %s %s %s</p></blockquote>' + 'pretty_print_metar' => '<blockquote><p><b>%s</b> minuti ilu, ghall-habta ta\' <b>%s</b> UTC, ir-rih kien %s gewwa %s. It-temperatura kienet <b>%s</b> °C (<b>%s</b> °F), %s u l-pressjoni kienet <b>%s</b> hPa (<b>%s</b> inHg). L-umdita\' kienet <b>%s%%</b>. %s %s %s %s %s %s</p></blockquote>' ); $wind_dir_text_short_array = array( Index: locale_nl.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_nl.inc,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- locale_nl.inc 26 Mar 2002 10:44:53 -0000 1.4 +++ locale_nl.inc 2 Apr 2002 22:21:26 -0000 1.5 @@ -56,18 +56,18 @@ 'sneeuw op de grond. ', 'temp_min_max_6_hours' => 'De maximum en minumum temperaturen over ' . 'de laatste 6 uur waren <b>%s</b> en ' . - '<b>%s</b> graden Celsius (<b>%s</b> en ' . - ' <b>%s</b> graden Fahrenheit).', + '<b>%s</b> °C (<b>%s</b> en ' . + ' <b>%s</b> °F).', 'temp_max_6_hours' => 'De maximum temperatuur over de laatste 6 ' . - 'uur was <b>%s</b> graden Celsius ' . - '(<b>%s</b> graden Fahrenheit). ', + 'uur was <b>%s</b> °C ' . + '(<b>%s</b> °F). ', 'temp_min_6_hours' => 'De minumum temperatuur over de laatste 6 ' . - 'uur was <b>%s</b> graden Celsius ' . - '(<b>%s</b> graden Fahrenheit). ', + 'uur was <b>%s</b> °C ' . + '(<b>%s</b> °F). ', 'temp_min_max_24_hours' => 'De maximum en minumum temperaturen over ' . 'de laatste 24 uur waren <b>%s</b> en ' . - '<b>%s</b> graden Celsius (<b>%s</b> en ' . - '<b>%s</b> graden Fahrenheit). ', + '<b>%s</b> °C (<b>%s</b> en ' . + '<b>%s</b> °F). ', 'runway_vis' => 'De zichtbare baanlengte voor startbaan ' . '<b>%s</b> is <b>%s</b> meter (<b>%s</b> voet).', 'runway_vis_min_max' => 'De zichtbare baanlengte voor startbaan ' . @@ -81,8 +81,8 @@ 'current_weather' => 'Het huidige weer is <b>%s</b>. ', 'pretty_print_metar' => '<blockquote><p><b>%s</b> minuten geleden, ' . 'om <b>%s</b> UTC, de wind blies %s nabij %s. ' . - 'De temperatuur was <b>%s</b> graden Celsius ' . - '(<b>%s</b> graden Fahrenheit), %s en de ' . + 'De temperatuur was <b>%s</b> °C ' . + '(<b>%s</b> °F), %s en de ' . 'barometerdruk was <b>%s</b> hPa (<b>%s</b> ' . 'inHg). De relatieve vochtigheid was ' . '<b>%s%%</b>. %s %s %s %s %s</p></blockquote>'); Index: locale_no.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_no.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- locale_no.inc 24 Mar 2002 19:52:32 -0000 1.2 +++ locale_no.inc 2 Apr 2002 22:21:26 -0000 1.3 @@ -42,10 +42,10 @@ 'precip_last_6_hours' => 'i de siste 3 til 6 timer. ', 'precip_last_24_hours' => 'i de siste 24 timer. ', 'precip_snow' => 'Det er <b>%s</b> mm (<b>%s</b> tommer) snø på bakken. ', - 'temp_min_max_6_hours' => 'Maksimum og minimum temperaturen for de siste 6 timer var <b>%s</b> og <b>%s</b> grader Celsius (<b>%s</b> og <b>%s</b> grader Fahrenheit).', - 'temp_max_6_hours' => 'Maksimum temperaturen for de siste 6 timer var <b>%s</b> grader Celsius (<b>%s</b> grader Fahrenheit). ', - 'temp_min_6_hours' => 'Minimum temperaturen for de siste 6 timer var <b>%s</b> grader Celsius (<b>%s</b> grader Fahrenheit). ', - 'temp_min_max_24_hours' => 'Maksimum og minimum temperaturen for de siste 24 timer var <b>%s</b> og <b>%s</b> grader Celsius (<b>%s</b> og <b>%s</b> grader Fahrenheit). ', + 'temp_min_max_6_hours' => 'Maksimum og minimum temperaturen for de siste 6 timer var <b>%s</b> og <b>%s</b> °C (<b>%s</b> og <b>%s</b> °F).', + 'temp_max_6_hours' => 'Maksimum temperaturen for de siste 6 timer var <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_6_hours' => 'Minimum temperaturen for de siste 6 timer var <b>%s</b> °C (<b>%s</b> °F). ', + 'temp_min_max_24_hours' => 'Maksimum og minimum temperaturen for de siste 24 timer var <b>%s</b> og <b>%s</b> °C (<b>%s</b> og <b>%s</b> °F). ', 'runway_vis' => 'The visibility for runway <b>%s</b> is <b>%s</b> meters (<b>%s</b> feet).', 'runway_vis_min_max' => 'The visibility for runway <b>%s</b> varies between <b>%s</b> meters (<b>%s</b> feet) and <b>%s</b> meters (<b>%s</b> feet).', 'light' => 'Lett ', @@ -53,7 +53,7 @@ 'Heavy' => 'Kraftig ', 'nearby' => 'Nær ', 'current_weather' => 'Nåværende vær er <b>%s</b>. ', - 'pretty_print_metar' => '<blockquote><p><b>%s</b> minutter siden, klokka <b>%s</b> UTC, blåste vinden %s i %s. Temperaturen var <b>%s</b> grader Celsius (<b>%s</b> grader Fahrenheit), %s og lufttrykket var <b>%s</b> hPa (<b>%s</b> inHg). Den relative luftfuktigheten var <b>%s%%</b>. %s %s %s %s %s</p></blockquote>' + 'pretty_print_metar' => '<blockquote><p><b>%s</b> minutter siden, klokka <b>%s</b> UTC, blåste vinden %s i %s. Temperaturen var <b>%s</b> °C (<b>%s</b> °F), %s og lufttrykket var <b>%s</b> hPa (<b>%s</b> inHg). Den relative luftfuktigheten var <b>%s%%</b>. %s %s %s %s %s</p></blockquote>' ); Index: locale_po_br.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_po_br.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- locale_po_br.inc 24 Mar 2002 19:52:32 -0000 1.2 +++ locale_po_br.inc 2 Apr 2002 22:21:26 -0000 1.3 @@ -1,10 +1,11 @@ <?php /* - * This file holds the Brazilian Portuguese translation of PHP Weather. To -use it, - * just include it in the main phpweather.inc file. + * This file holds the Brazilian Portuguese translation of PHP Weather. + * To use it, just include it in the main phpweather.inc file. * * Author: Murilo Pinto <eml...@em...> + * + * Updates by: João Luiz <Joa...@MB...> */ /* Unsets old language variables and loads new ones. */ @@ -47,22 +48,20 @@ 'wind_str_calm' => '<b>calmo</b>', 'wind_vrb_long' => 'direção variável', 'wind_vrb_short' => 'VAR', - 'windchill' => ' the windchill was <b>%s</b> °C (<b>%s</b> °F) ', + 'windchill' => ' a sensação térmica era de <b>%s</b> °C (<b>%s</b> °F) ', 'precip_last_hour' => 'na última hora. ', 'precip_last_6_hours' => 'nas últimas 3 a 6 horas. ', 'precip_last_24_hours' => 'na últimas horas 24 horas. ', 'precip_snow' => 'Há <b>%s</b> mm (<b>%s</b> polegadas) de neve no solo. ', 'temp_min_max_6_hours' => 'As temperaturas máxima e mínima nas últimas 6 -horas foram <b>%s</b> e <b>%s</b> graus Celsius (<b>%s</b> e <b>%s</b> graus -Fahrenheit).', +horas foram <b>%s</b> e <b>%s</b> °C (<b>%s</b> e <b>%s</b> °F).', 'temp_max_6_hours' => 'A temperatura máxima nas últimas 6 horas foi -<b>%s</b> graus Celsius (<b>%s</b> graus Fahrenheit). ', +<b>%s</b> °C (<b>%s</b> °F). ', 'temp_min_6_hours' => 'A temperatura mínima nas últimas 6 horas foi -<b>%s</b> graus Celsius (<b>%s</b> graus Fahrenheit). ', +<b>%s</b> °C (<b>%s</b> °F). ', 'temp_min_max_24_hours' => 'As temperaturas máxima e mínima nas últimas 6 -horas foram <b>%s</b> e <b>%s</b> graus Celsius (<b>%s</b> e <b>%s</b> graus -Fahrenheit). ', +horas foram <b>%s</b> e <b>%s</b> °C (<b>%s</b> e <b>%s</b> °F). ', 'runway_vis' => 'A visibilidade para decolagem <b>%s</b> é <b>%s</b> metros (<b>%s</b> pés).', 'runway_vis_min_max' => 'A visibilidade no Aeroporto de <b>%s</b> varia @@ -73,8 +72,7 @@ 'nearby' => 'Próximo de ', 'current_weather' => 'Tempo atual é <b>%s</b>. ', 'pretty_print_metar' => '<blockquote><p><b>%s</b> minutos atrás, às -<b>%s</b> UTC, o vento estava %s em %s. A temperatura era de <b>%s</b> graus -Celsius (<b>%s</b> graus Fahrenheit), %s e a pressão do ar estava em <b>%s</b> +<b>%s</b> UTC, o vento estava %s em %s. A temperatura era de <b>%s</b> °C (<b>%s</b> °F), %s e a pressão do ar estava em <b>%s</b> hPa (<b>%s</b> inHg). A umidade relativa era de <b>%s%%</b>. %s %s %s %s %s %s</p></blockquote>' ); |
From: Martin G. <gim...@us...> - 2002-03-29 16:08:06
|
Update of /cvsroot/phpweather/phpweather/docs/ps In directory usw-pr-cvs1:/tmp/cvs-serv14350/ps Modified Files: phpweather-a4.ps phpweather-letter.ps Log Message: Updated documentation. --- BINARY FILE --- --- BINARY FILE --- |
From: Martin G. <gim...@us...> - 2002-03-29 16:08:04
|
Update of /cvsroot/phpweather/phpweather/docs/pdf In directory usw-pr-cvs1:/tmp/cvs-serv14350/pdf Modified Files: phpweather-a4.pdf phpweather-letter.pdf Log Message: Updated documentation. --- BINARY FILE --- --- BINARY FILE --- |
From: Martin G. <gim...@us...> - 2002-03-29 15:18:34
|
Update of /cvsroot/phpweather/phpweather/docs/src/latex In directory usw-pr-cvs1:/tmp/cvs-serv2784 Modified Files: databases.tex installation.tex intro.tex main.tex translation.tex Log Message: Various updated. Index: databases.tex =================================================================== RCS file: /cvsroot/phpweather/phpweather/docs/src/latex/databases.tex,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- databases.tex 11 Mar 2002 16:50:08 -0000 1.1 +++ databases.tex 29 Mar 2002 15:18:31 -0000 1.2 @@ -1,53 +1,53 @@ % -*- mode: latex; tex-main-file: "phpweather-a4" -*- \chapter{Database Backends} -As it takes about a second to retreive a \metar, \phpw supports -caching. \phpw supports several different database backends and it's +As it takes about a second to retreive a METAR, \pw supports +caching. \pw supports several different database backends and it's easy to write support for a new one. \section{What's In a Database Backend?} Each database backend is implemented through a separate class which -extends \class{pw\_db\_common}. This is convenient, as -\class{db\_common} has some properties needed by almost every back -end, most notably \variable{\$}{link\_id}. +extends \class{pw_db_common}. This is convenient, as +\class{db_common} has some properties needed by almost every back +end, most notably \var{$}{link_id}. It is up to the backend to decide how it will implement the functions -needed by \phpw, but it is required that each back-end has the +needed by \pw, but it is required that each back-end has the following methods: \begin{description} -\item[\function{connect}] This will be called whenever the script +\item[\func{connect}] This will be called whenever the script needs to make sure that we're connected. It must return true if a connection is established, and false otherwise. -\item[\function{insert\_metar}] This is called when a new \metar should +\item[\func{insert_metar}] This is called when a new METAR should be inserted into the cache. -\item[\function{update\_metar}] If the \metar is already in the cache, -this function will be called instead of \function{insert\_metar}. +\item[\func{update_metar}] If the METAR is already in the cache, +this function will be called instead of \func{insert_metar}. -\item[\function{get\_metar}] This function should return the \metar -report for a given \icao. If the \metar isn't found in the cache, it +\item[\func{get_metar}] This function should return the METAR +report for a given \icao. If the METAR isn't found in the cache, it should just return an empty string. -\item[\function{get\_countries}] This function returns a list of all -countries that have airports producing \metar reports. +\item[\func{get_countries}] This function returns a list of all +countries that have airports producing METAR reports. -\item[\function{get\_icaos}] Once you've selected a country, you'll +\item[\func{get_icaos}] Once you've selected a country, you'll use this function to get a list of all airports in that country. \end{description} \section{Writing a New Back-end} -If you use \phpw on a system where you don't have access to one of the +If you use \pw on a system where you don't have access to one of the databases already supported, you could write support for your own database. You should start by taking one of the existing back-ends, and use that as a template. If your database understands SQL, then use a back-end -like \class{db\_mysql} as your template, as it also uses SQL. +like \class{db_mysql} as your template, as it also uses SQL. Then go through the file, and adopt the functions to your database. When you're done, send your file to Index: installation.tex =================================================================== RCS file: /cvsroot/phpweather/phpweather/docs/src/latex/installation.tex,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- installation.tex 11 Mar 2002 16:50:08 -0000 1.2 +++ installation.tex 29 Mar 2002 15:18:31 -0000 1.3 @@ -1,27 +1,28 @@ +% -*- mode: latex; tex-main-file: "phpweather-a4" -*- \chapter{Installation} -It's quite easy to install \phpw. You have to start by going to -\url{http://www.sourceforge.net/phpweather/} and downloading \phpw. -Decompress the file in a directory on the webserver then load the file +It's quite easy to install \pw. You have to start by going to +\url{http://www.phpweather.net} and downloading \pw. Decompress the +file in a directory on the webserver then load the file \filename{demo.php} in your favorite browser. That's it. You should see a page that lets you chose a country with an airport -that makes a \metar. There is about 3,000 airports in 192 countries -that make a \metar each hour so the chance of finding one near your is +that makes a METAR. There is about 3,000 airports in 192 countries +that make a METAR each hour so the chance of finding one near your is rather good. \section{Further Tweaking} -What you've just seen is \phpw in it's default form. You can (and +What you've just seen is \pw in it's default form. You can (and should) change a couple of things. You use the Configurator to do the configuration. So load the file called \filename{configurator.php} and see what happens. You should be presented with a page with a lot of drop-down boxed that let you choose numerous things. If you can, you should use the -Configurator to configure \phpw as it will ensure that you select -valid options. +Configurator to configure \pw as it will ensure that you select valid +options. Index: intro.tex =================================================================== RCS file: /cvsroot/phpweather/phpweather/docs/src/latex/intro.tex,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- intro.tex 18 Jul 2001 10:39:28 -0000 1.2 +++ intro.tex 29 Mar 2002 15:18:31 -0000 1.3 @@ -1,12 +1,12 @@ -\chapter*{Introduction} - -This is a guide as to how you should use \phpw. +% -*- mode: latex; tex-main-file: "phpweather-a4" -*- +\chapter*{Introduction} +This is a guide as to how you should use \pw. -\section*{What is \phpw?} +\section*{What is \pw?} -\phpw is script written in PHP that can decode a METAR. The +\pw is script written in PHP that can decode a METAR. The METAR is fetched from the web and cached, so that the script runs faster the second time someone asks for that particular METAR. About 3000 airports from around the world makes these @@ -20,8 +20,8 @@ \section*{Output} - \phpw produces a special kind of output known as \emph{pretty - print}. It looks roughly like this: +\pw produces a special kind of output known as \emph{pretty + print}. It looks roughly like this: \begin{quote} This is a report for \emph{Aalborg, Denmark}. The report was made Index: main.tex =================================================================== RCS file: /cvsroot/phpweather/phpweather/docs/src/latex/main.tex,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- main.tex 11 Mar 2002 16:50:08 -0000 1.5 +++ main.tex 29 Mar 2002 15:18:31 -0000 1.6 @@ -5,6 +5,7 @@ % This sets the font to Palatino. %\renewcommand{\rmdefault}{ppl} %\usepackage{palatcm} +%\usepackage{palatino} \usepackage{xspace,graphicx} \usepackage[bf]{caption2} @@ -16,9 +17,11 @@ \newcommand{\Email}{\begingroup \urlstyle{rm}\Url} \newcommand{\email}[1]{\Email{<#1>}} -\newcommand{\function}[1]{\textsf{#1(~)}% - \index{#1@\textsf{#1(~)}}% - \index{Functions!#1@\textsf{#1(~)}} } +\newcommand{\Func}{\begingroup \urlstyle{sf}\Url} +\newcommand{\func}[1]{\Func{#1()}% + \index{#1@\protect\Func{#1()}}% + \index{Functions!#1@\protect\Func{#1()}}% +} %\newcommand{\functiondef}[1]{\textsf{#1}} %\newcommand{\funcdesclabel}[1]{\emph{#1:}} @@ -35,22 +38,25 @@ %} %\newcommand{\classdef}[1]{\textsf{#1}} -\newcommand{\class}[1]{\textsf{#1}% - \index{#1@\textsf{#1}}% - \index{Classes!#1@\textsf{#1}}} +\newcommand{\Class}{\begingroup \urlstyle{sf}\Url} +\newcommand{\class}[1]{\Class{#1}% + \index{#1@\protect\Class{#1}}% + \index{Classes!#1@\protect\Class{#1}}% +} -\newcommand{\variable}[2]{\textsf{\textbf{#1#2}}% - \index{#2@\textsf{\textbf{\protect\makebox[0cm][r]{#1}#2}}}% - \index{Variables!#2@\textsf{\textbf{\protect\makebox[0cm][r]{#1}#2}}}} +\newcommand{\Var}{\begingroup \urlstyle{tt}\Url} +\newcommand{\var}[2]{\Var{#1#2}% + \index{#2@\protect\makebox[0cm][r]{\protect\Var{#1}}\protect\Var{#2}}% + \index{Variables!#2@\protect\makebox[0cm][r]{\protect\Var{#1}}\protect\Var{#2}}% +} %\newcommand{\icao}[1]{\textsf{#1}} -\newcommand{\code}[1]{\texttt{#1}} +%\newcommand{\code}[1]{\textsf{#1}} +\newcommand{\code}{\begingroup \urlstyle{sf}\Url} \newcommand{\filename}{\begingroup \urlstyle{tt}\Url} -\newcommand{\phpw}{PHP Weather\xspace} -\newcommand{\metar}{\textsc{metar}\xspace} -\newcommand{\icao}{\textsc{icao}\xspace} +\newcommand{\pw}{PHP Weather\xspace} %\usepackage[colorlinks, % linkcolor=blue, @@ -61,10 +67,10 @@ \hyphenation{mail-ling-list pre-ci-pi-ta-ti-on sto-red} -\title{\phpw Usage Guide} +\title{\pw Usage Guide} \author{Martin Geisler \email{gim...@gi...}\thanks{I would -like to thank all the people who have helped me make \phpw. See the +like to thank all the people who have helped me make \pw. See the file \texttt{AUTHORS} for a list.}} \begin{document} @@ -75,16 +81,16 @@ \begin{quote} - Copyright \copyright\ 2001 Martin Geisler. - - Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU Free Documentation License, - Version 1.1 or any later version published by the Free Software - Foundation; with no Invariant Sections, no Front-Cover Texts and - no Back-Cover Texts. A copy of the license is included in the - section entitled ``GNU Free Documentation License'' on - page~\pageref{chap:fdl}. - + Copyright \copyright\ 2001 Martin Geisler. + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation License, + Version 1.1 or any later version published by the Free Software + Foundation; with no Invariant Sections, no Front-Cover Texts and no + Back-Cover Texts. A copy of the license is included in the section + entitled ``GNU Free Documentation License'' on + page~\pageref{chap:fdl}. + \end{quote} \tableofcontents @@ -99,6 +105,8 @@ \include{databases} \include{translation} + +\include{decoded} %\include{apidoc} Index: translation.tex =================================================================== RCS file: /cvsroot/phpweather/phpweather/docs/src/latex/translation.tex,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- translation.tex 11 Mar 2002 16:50:08 -0000 1.2 +++ translation.tex 29 Mar 2002 15:18:31 -0000 1.3 @@ -1,12 +1,12 @@ % -*- mode: latex; tex-main-file: "phpweather-a4" -*- \chapter{Translation} -It is quite easy to translate \phpw into another language. This chaper +It is quite easy to translate \pw into another language. This chaper will teach you how. \section{The Locales} -All the words and sentences used by \phpw is stored in special files +All the words and sentences used by \pw is stored in special files called \emph{locales}. You'll find these files in the directory \filename{PHPWEATHER_BASE_DIR/locales}. Each file is named after a scheme like this \filename{locale_xx.php} where \filename{xx} @@ -17,7 +17,7 @@ \section{Making a New Locale} -To translation \phpw into a new language you have to make a new +To translation \pw into a new language you have to make a new locale. This is done by following these steps: \begin{enumerate} @@ -35,8 +35,8 @@ This involves the following steps: \begin{enumerate} -\item Changing the lines that defines the constant \code{LOCALE\_EN} so -that it defines \code{LOCALE\_XX} instead. +\item Changing the lines that defines the constant \code{LOCALE_EN} so +that it defines \code{LOCALE_XX} instead. \item Changing the comment from talking about English output to your native tounge. @@ -50,20 +50,20 @@ \item You can leave the line with \code{@version} intact. It will be updated automatically when the file is put under version control. -\item Changing the line with \code{class locale\_en} into \code{class -locale\_xx} instead. +\item Changing the line with \code{class locale_en} into \code{class +locale_xx} instead. \end{enumerate} \item Here comes the difficult part: Translate every string in the file, but leave all occurrences of \code{\%s} intact. It is these codes that will be replaced by the actual numbers and strings when -\phpw is executed. +\pw is executed. Here's an example: \code{\%s mm (\%s inches)} becomes ``12.7 mm (0.5 -inches)''. This string is then used in the next piece: \code{There was -\%s of precipitation}, which then becomes ``There was 12.7 mm (0.5 -inches) of precipitation''. I hope you get the idea. +inches)''. This string is used in the next piece: \code{There was \%s +of precipitation}, which then becomes ``There was 12.7 mm (0.5 inches) +of precipitation''. I hope you get the idea. \item Remember to translate all special charecters (things like \ae, \'e, \aa, \"o, etc) to their HTML-entities. Use my list of @@ -78,7 +78,7 @@ \end{enumerate} -That's it --- you've now translated \phpw! +That's it --- you've now translated \pw! \section{Going Further} @@ -87,10 +87,10 @@ might not have been easy for you to make a good translation. But what if you could change the strings completely? -The good news is: ``You can!'' Now that \phpw uses objects it's +The good news is: ``You can!'' Now that \pw uses objects it's possible for the translator to change almost every aspect of the translation. This can be done, because the translation you've made is -the definition of a class called \class{locale\_xx} +the definition of a class called \class{locale_xx} where \code{xx} is the country-code. To be continued\ldots |
From: Martin G. <gim...@us...> - 2002-03-29 15:18:14
|
Update of /cvsroot/phpweather/phpweather/docs/src/latex In directory usw-pr-cvs1:/tmp/cvs-serv2613 Added Files: decoded.tex Log Message: A description of the decoded METAR array. --- NEW FILE --- \chapter{The Decoded METAR} When \pw has fetched a METAR is has to decode it before you can use it for anything interesting. This is done as needed when you call the \func{pretty_print} method or if you call the \func{decode_metar} method explicitly. \section{Structure of the Decoded METAR Array} The return value of the \func{decode_metar} method is an array that contains the decoded METAR. The array is a multidimensional associative array, which means that each key either refers to a value or to another associative array. If the METAR lacks a given part, then the corresponding entry in the array will be left out. This means, that you'll have to check each entry with \func{empty} before you use it, otherwise you see warnings from PHP, if you've set the error reporting level high enough. The following entries is always part of a METAR report, and is therefore always part of the decoded METAR array: \begin{description} \item[\code{type}] This can either be \code{METAR} or \code{SPECI} and denotes the type of the report. This isn't used for anything. \item[\code{metar}] The raw METAR report. \item[\code{icao}] The ICAO of the station which made the report. \item[\code{location}] The English name of the station. \item[\code{time}] A UNIX timestamp corresponding to the time of the report. \end{description} The following entries are optional: \begin{description} \item[\code{report_mod}] A report modifier which gives information about how the report was made: \code{AUTO} for a fully automated report with no human intervention or \code{COR} for a corrected report. It's supposed to be part of all METARs, but experience shows that it's not. \item[\code{wind}] This is an array with information about the wind. The \code{deg} entry tells you the direction of the wind as compass-direction. If the wind came from variable directions, then will be the string \code{VRB}. The \code{meters_per_second}, \code{miles_per_hour}, and \code{knots} entries tells you the wind speed in various units. If gust was observer, there will be three extra entries: \code{gust_meters_per_second}, \code{gust_miles_per_hour}, and \code{gust_knots}. If the wind was varying, then two extra entries are present: \code{var_beg} and \code{var_end}. Both of these entries contain a compass-direction \item[\code{visibility}] This is an array with visibility information. Each entry in the array is a separate visibility group. Each visibility group contains a \code{prefix} which can be \code{-1}, \code{0}, or \code{1} which tells you if the visibility reported is ``less than'', ``normal'', or ``greater than'' respectively. The visibility itself is stored in the \code{meter}, \code{km}, \code{ft}, and \code{miles} entries. There is an optional entry \code{dir} for a direction --- if there's no direction, then the visibility refers to the overall visibility. \item[\code{runway}] This is an array of runway groups. Each entry is a separate group. The groups contain an \code{nr} entry and an optional \code{approach} entry which tells you the runway-number and the approach respectively. The approach is one of \code{L}, \code{C}, or \code{R} for ``left'', ``center'', or ``right'' respectively. The visibility information can either be a single value or a pair of values in case of varying conditions. If there's only a single value, then \code{meter} and \code{ft} holds the visibility, an optional \code{prefix} can be \code{-1} if range is less than the lowest reportable value or \code{1} if greater than the greatest reportable value. A \code{tendency} entry holds either \code{D}, \code{N} or \code{U} for ``downward tendency'', ``no distinct tendency'', or ``upward tendency'' respectively. (Why can't I find this information any longer in Chapter 12 of the Federal Meteorological Handbook No.~1?) \item[\code{weather}] This holds the current weather phenomena and is one of the most interesting groups. It's an array of weather groups. Each group contains a \code{proximity} entry which can be either \code{VC} for phenomena in the vicinity or the empty string otherwise. Next comes the \code{intensity}. This can be \code{-} for light phenomena, the empty string for moderate phenomena, or \code{+} for heavy phenomena. This is followed by a \code{descriptor}, a \code{precipitation}, a \code{obscuration}, and finally a \code{other} entry. These entries contain the actual data found in the METAR. This means that it's up to the application to decode these symbols further, so that \code{RA} becomes ``rain'' and so on. \item[\code{clouds}] This is an array of cloud groups. Each group has a \code{condition} entry which can be either \code{CAVOK} for no clouds and no significant weather, \code{VV} for ``vertical visibility'', \code{FEW} for ``few clouds'', \code{SCT} for ``scattered clouds'', \code{BKN} for ``broken clouds'', \code{OVC} for ``overcast'', and \code{SKC} and \code{CLR} for ``clear sky''. The condition \code{CAVOK} is a bit special, because if it's present, then the \code{condition} entry will be the only entry in the cloud group. The other conditions will be part of a larger array with an optional \code{cumulus} entry denoting the presence of cumulonimbus (\code{CB}) or towering cumulus (\code{TCU}) clouds. There will also be \code{meter} and \code{ft} entries with the height of the clouds. If the clouds are below the station, then the height will be stored as \code{nil}. Theres an optional \code{prefix} with the usual meaning. \item[\code{temperature}] This is the temperature group. It's an array with two or four entries: \code{temp_c} and \code{temp_f} is always present and is the temperature in degrees Celsius and Fahrenheit respectively. If information about the dew-point is present, then \code{dew_c} and \code{dew_f} will be added to the array. \item[\code{temp_min_max}] Some stations report the minimum and maximum temperature over various timescales. The temperatures are stored in \code{min6h_c}, \code{min6h_f}, \code{max6h_c} and \code{max6h_f} for the temperatures in the last 6~hours, and in \code{min24h_c}, \code{min24h_f}, \code{max24h_c} and \code{max24h_f} for the temperatures in the last 24~hours \item[\code{altimeter}] This is the air pressure measured in various units. The array has these entries: \code{inhg}, \code{mmhg}, \code{hpa}, and \code{atm}. \item[\code{precipitation}] This is an array which stores the precipitation measured over various timescales. The entries \code{mm} and \code{in} contains the precipitation during the last hour, entries \code{mm_h6} and \code{in_6h} store the amount of precipitation in the last 3--6~hours and finally there's \code{mm_24h} and \code{in_24h} with the precipitation measured over the last 24~hours. If there has been snowfall, then that will be reported in the \code{snow_mm} and \code{snow_in} entries. All the entries can contain the special value \code{-1} which means that there was only a trace of precipitation. \item[\code{remarks}] Anything which isn't recognized is added to this entry. \end{description} |
From: Martin G. <gim...@us...> - 2002-03-29 13:51:58
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv13943 Modified Files: phpweather.php Log Message: Cleanups. I'm was looking through the code to document the $decoded_metar array and found a lot of cruft. Index: phpweather.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/phpweather.php,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- phpweather.php 27 Mar 2002 20:16:00 -0000 1.21 +++ phpweather.php 29 Mar 2002 13:51:55 -0000 1.22 @@ -161,17 +161,9 @@ */ function decode_metar() { /* initialization */ - $cloud_group_nr = 0; - $weather_group_nr = 0; - $visibility_group_nr = 0; - $runway_group_nr = 0; $temp_visibility_miles = ''; $decoded_metar['remarks'] = ''; - /* There should always be at least one cloud-group, even if it's - empty. */ - $decoded_metar['clouds'][] = array(); - $decoded_metar['metar'] = $this->get_metar(); $decoded_metar['location'] = $this->get_location(); @@ -197,11 +189,12 @@ * Type of Report: SPECI */ $decoded_metar['type'] = 'SPECI'; - } elseif (ereg('^[A-Z]{4}$', $part) && ! isset($decoded_metar['station'])) { + } elseif (ereg('^[A-Z]{4}$', $part) && + empty($decoded_metar['icao'])) { /* * Station Identifier */ - $decoded_metar['station'] = $part; + $decoded_metar['icao'] = $part; } elseif (ereg('([0-9]{2})([0-9]{2})([0-9]{2})Z', $part, $regs)) { /* * Date and Time of Report. @@ -224,7 +217,7 @@ } else { $month = gmdate('n'); } - $decoded_metar['time'] = gmmktime($regs[2]+$this->properties['offset'], $regs[3], 0, $month, $regs[1], gmdate('Y')); + $decoded_metar['time'] = gmmktime($regs[2] + $this->properties['offset'], $regs[3], 0, $month, $regs[1], gmdate('Y')); } elseif (ereg('(AUTO|COR|RTD|CC[A-Z]|RR[A-Z])', $part, $regs)) { /* @@ -262,190 +255,150 @@ /* * Variable wind-direction */ - - $decoded_metar['wind']['var_beg'] = $regs[1]; + $decoded_metar['wind']['var_beg'] = $regs[1]; $decoded_metar['wind']['var_end'] = $regs[2]; } elseif(ereg('^([0-9]{4})([NS]?[EW]?)$', $part, $regs)) { - /* * Visibility in meters (4 digits only) */ - - if ($regs[1] == '0000') { - + unset($group); + + if ($regs[1] == '0000') { /* Special low value */ - $decoded_metar['visibility'][$visibility_group_nr]['prefix'] = -1; /* Less than */ - - $decoded_metar['visibility'][$visibility_group_nr]['meter'] = 50; - $decoded_metar['visibility'][$visibility_group_nr]['km'] = 0.05; - $decoded_metar['visibility'][$visibility_group_nr]['ft'] = 164; - $decoded_metar['visibility'][$visibility_group_nr]['miles'] = 0.031; + $group['prefix'] = -1; /* Less than */ + $group['meter'] = 50; + $group['km'] = 0.05; + $group['ft'] = 164; + $group['miles'] = 0.031; } elseif ($regs[1] == '9999') { - /* Special high value */ - - $decoded_metar['visibility'][$visibility_group_nr]['prefix'] = 1; - /* Greater than */ - - $decoded_metar['visibility'][$visibility_group_nr]['meter'] = 10000; - $decoded_metar['visibility'][$visibility_group_nr]['km'] = 10; - $decoded_metar['visibility'][$visibility_group_nr]['ft'] = 32800; - $decoded_metar['visibility'][$visibility_group_nr]['miles'] = 6.2; + $group['prefix'] = 1; + $group['meter'] = 10000; + $group['km'] = 10; + $group['ft'] = 32800; + $group['miles'] = 6.2; } else { - /* Normal visibility, returned in both small and large units. */ - - $decoded_metar['visibility'][$visibility_group_nr]['km'] = number_format($regs[1]/1000, 1); - $decoded_metar['visibility'][$visibility_group_nr]['miles'] = number_format($regs[1]/1609.344, 1); - $decoded_metar['visibility'][$visibility_group_nr]['meter'] = $regs[1] * 1; - $decoded_metar['visibility'][$visibility_group_nr]['ft'] = round($regs[1] * 3.28084); + $group['prefix'] = 0; + $group['km'] = number_format($regs[1]/1000, 1); + $group['miles'] = number_format($regs[1]/1609.344, 1); + $group['meter'] = $regs[1] * 1; + $group['ft'] = round($regs[1] * 3.28084); } if (!empty($regs[2])) { - $decoded_metar['visibility'][$visibility_group_nr]['dir'] = $regs[2]; + $group['dir'] = $regs[2]; } - - /* We increment $visibility_group_nr so that it's ready for - the next group. */ - $visibility_group_nr++; + $decoded_metar['visibility'][] = $group; } elseif (ereg('^[0-9]$', $part)) { - /* * Temp Visibility Group, single digit followed by space. */ - - $temp_visibility_miles = $part; - } elseif (ereg('^M?(([0-9]?)[ ]?([0-9])(/?)([0-9]*))SM$', $temp_visibility_miles . ' ' . $part, $regs)) { - + $temp_visibility_miles = $part; + } elseif (ereg('^M?(([0-9]?)[ ]?([0-9])(/?)([0-9]*))SM$', + $temp_visibility_miles . ' ' . $part, $regs)) { /* * Visibility Group */ - + unset($group); + if ($regs[4] == '/') { $vis_miles = $regs[2] + $regs[3]/$regs[5]; } else { $vis_miles = $regs[1]; } if ($regs[0][0] == 'M') { - /* Prefix - less than */ - - $decoded_metar['visibility'][$visibility_group_nr]['prefix'] = -1; /* Less than */ - + $group['prefix'] = -1; + } else { + $group['prefix'] = 0; } /* The visibility measured in miles */ - - $decoded_metar['visibility'][$visibility_group_nr]['miles'] = number_format($vis_miles, 1); + $group['miles'] = number_format($vis_miles, 1); /* The visibility measured in feet */ - - $decoded_metar['visibility'][$visibility_group_nr]['ft'] = round($vis_miles * 5280, 1); + $group['ft'] = round($vis_miles * 5280, 1); /* The visibility measured in kilometers */ - - $decoded_metar['visibility'][$visibility_group_nr]['km'] = number_format($vis_miles * 1.6093, 1); + $group['km'] = number_format($vis_miles * 1.6093, 1); /* The visibility measured in meters */ - - $decoded_metar['visibility'][$visibility_group_nr]['meter'] = round($vis_miles * 1609.3); - - /* We increment $visibility_group_nr so that it's ready for - the next group. */ - $visibility_group_nr++; + $group['meter'] = round($vis_miles * 1609.3); + $decoded_metar['visibility'][] = $group; } elseif ($part == 'CAVOK') { - - /* CAVOK: Used when the visibility is greater than 10 + /* CAVOK is used when the visibility is greater than 10 * kilometers, the lowest cloud-base is at 5000 feet or more - * and there is no significant weather. + * and there is no significant weather. */ - - /* Greater than */ - $decoded_metar['visibility'][$visibility_group_nr]['prefix'] = 1; - - $decoded_metar['visibility'][$visibility_group_nr]['km'] = 10; - $decoded_metar['visibility'][$visibility_group_nr]['meter'] = 10000; - $decoded_metar['visibility'][$visibility_group_nr]['miles'] = 6.2; - $decoded_metar['visibility'][$visibility_group_nr]['ft'] = 32800; - $decoded_metar['cloud_group1']['condition'] = 'CAVOK'; + unset($group); + $group['prefix'] = 1; + $group['km'] = 10; + $group['meter'] = 10000; + $group['miles'] = 6.2; + $group['ft'] = 32800; + $decoded_metar['visibility'][] = $group; + $decoded_metar['clouds'][]['condition'] = 'CAVOK'; - /* We increment $visibility_group_nr so that it's ready for - the next group. */ - $visibility_group_nr++; - - } elseif (ereg('^R([0-9]{2})([RLC]?)/([MP]?)([0-9]{4})([DNU]?)V?(P?)([0-9]{4})?([DNU]?)$', $part, $regs)) { - + } elseif (ereg('^R([0-9]{2})([RLC]?)/([MP]?)([0-9]{4})' . + '([DNU]?)V?(P?)([0-9]{4})?([DNU]?)$', $part, $regs)) { /* Runway-group */ - - $decoded_metar['runway'][$runway_group_nr]['nr'] = $regs[1]; + unset($group); + $group['nr'] = $regs[1]; if (!empty($regs[2])) { - $decoded_metar['runway'][$runway_group_nr]['approach'] = $regs[2]; + $group['approach'] = $regs[2]; } if (!empty($regs[7])) { - /* We have both min and max visibility since $regs[7] holds - * the max visibility. + * the max visibility. */ - if (!empty($regs[5])) { /* $regs[5] is tendency for min visibility. */ - $decoded_metar['runway'][$runway_group_nr]['min_tendency'] = $regs[5]; + $group['min_tendency'] = $regs[5]; } if (!empty($regs[8])) { /* $regs[8] is tendency for max visibility. */ - $decoded_metar['runway'][$runway_group_nr]['max_tendency'] = $regs[8]; + $group['max_tendency'] = $regs[8]; } if ($regs[3] == 'M') { - /* Less than. */ - - $decoded_metar['runway'][$runway_group_nr]['min_prefix'] = -1; + $group['min_prefix'] = -1; } - $decoded_metar['runway'][$runway_group_nr]['min_meter'] = $regs[4] * 1; - $decoded_metar['runway'][$runway_group_nr]['min_ft'] = round($regs[4] * 3.2808); + $group['min_meter'] = $regs[4] * 1; + $group['min_ft'] = round($regs[4] * 3.2808); if ($regs[6] == 'P') { - /* Greater than. */ - - $decoded_metar['runway'][$runway_group_nr]['max_prefix'] = 1; + $group['max_prefix'] = 1; } - $decoded_metar['runway'][$runway_group_nr]['max_meter'] = $regs[7] * 1; - $decoded_metar['runway'][$runway_group_nr]['max_ft'] = round($regs[7] * 3.2808); + $group['max_meter'] = $regs[7] * 1; + $group['max_ft'] = round($regs[7] * 3.2808); } else { - /* We only have a single visibility. */ if (!empty($regs[5])) { /* $regs[5] holds the tendency for visibility. */ - $decoded_metar['runway'][$runway_group_nr]['tendency'] = $regs[5]; + $group['tendency'] = $regs[5]; } if ($regs[3] == 'M') { - /* Less than. */ - - $decoded_metar['runway'][$runway_group_nr]['prefix'] = -1; + $group['prefix'] = -1; } elseif ($regs[3] == 'P') { - /* Greater than. */ - - $decoded_metar['runway'][$runway_group_nr]['prefix'] = 1; + $group['prefix'] = 1; } - $decoded_metar['runway'][$runway_group_nr]['meter'] = $regs[4] * 1; - $decoded_metar['runway'][$runway_group_nr]['ft'] = round($regs[4] * 3.2808); + $group['meter'] = $regs[4] * 1; + $group['ft'] = round($regs[4] * 3.2808); } - - /* We increment $runway_group_nr so that it's ready for the - next group. */ - $runway_group_nr++; - + $decoded_metar['runway'][] = $group; + } elseif (ereg('^(VC)?' . /* Proximity */ '(-|\+)?' . /* Intensity */ '(MI|PR|BC|DR|BL|SH|TS|FZ)?' . /* Descriptor */ @@ -453,99 +406,67 @@ '(BR|FG|FU|VA|DU|SA|HZ|PY)?' . /* Obscuration */ '(PO|SQ|FC|SS)?$', /* Other */ $part, $regs)) { - /* * Current weather-group. */ - - $decoded_metar['weather'][$weather_group_nr]['proximity'] = $regs[1]; - $decoded_metar['weather'][$weather_group_nr]['intensity'] = $regs[2]; - $decoded_metar['weather'][$weather_group_nr]['descriptor'] = $regs[3]; - $decoded_metar['weather'][$weather_group_nr]['precipitation'] = $regs[4]; - $decoded_metar['weather'][$weather_group_nr]['obscuration'] = $regs[6]; - $decoded_metar['weather'][$weather_group_nr]['other'] = $regs[7]; - - - /* We increment $weather_group_nr so that it's ready for the - next group. */ - $weather_group_nr++; + $decoded_metar['weather'][] = + array('proximity' => $regs[1], + 'intensity' => $regs[2], + 'descriptor' => $regs[3], + 'precipitation' => $regs[4], + 'obscuration' => $regs[6], + 'other' => $regs[7]); } elseif ($part == 'SKC' || $part == 'CLR') { - /* Cloud-group */ + $decoded_metar['clouds'][]['condition'] = $part; - - - /* Again we have to translate the code-characters to a - * meaningful string. - */ - - $decoded_metar['clouds'][ $cloud_group_nr]['condition'] = $part; - - /* We increment $cloud_group_nr so that it's ready for the - next group. */ - $cloud_group_nr++; - - } elseif (ereg('^(VV|FEW|SCT|BKN|OVC)([0-9]{3}|///)(CB|TCU)?$', $part, $regs)) { - + } elseif (ereg('^(VV|FEW|SCT|BKN|OVC)([0-9]{3}|///)' . + '(CB|TCU)?$', $part, $regs)) { /* We have found (another) a cloud-layer-group. */ - - $decoded_metar['clouds'][$cloud_group_nr]['condition'] = $regs[1]; + unset($group); + + $group['condition'] = $regs[1]; if (!empty($regs[3])) { - $decoded_metar['clouds'][$cloud_group_nr]['cumulus'] = $regs[3]; + $group['cumulus'] = $regs[3]; } if ($regs[2] == '000') { - /* '000' is a special height. */ - - $decoded_metar['clouds'][$cloud_group_nr]['ft'] = 100; - $decoded_metar['clouds'][$cloud_group_nr]['meter'] = 30; - $decoded_metar['clouds'][$cloud_group_nr]['prefix'] = -1; /* Less than */ + $group['ft'] = 100; + $group['meter'] = 30; + $group['prefix'] = -1; /* Less than */ } elseif ($regs[2] == '///') { - /* '///' means height nil */ - - $decoded_metar['clouds'][$cloud_group_nr]['ft'] = 'nil'; - $decoded_metar['clouds'][$cloud_group_nr]['meter'] = 'nil'; + $group['ft'] = 'nil'; + $group['meter'] = 'nil'; } else { - $decoded_metar['clouds'][$cloud_group_nr]['ft'] = $regs[2] *100; - $decoded_metar['clouds'][$cloud_group_nr]['meter'] = round($regs[2] * 30.48); + $group['ft'] = $regs[2] *100; + $group['meter'] = round($regs[2] * 30.48); } - - /* We increment $cloud_group_nr so that it's ready for the - next group. */ - $cloud_group_nr++; + $decoded_metar['clouds'][] = $group; } elseif (ereg('^(M?[0-9]{2})/(M?[0-9]{2})?$', $part, $regs)) { - /* * Temperature/Dew Point Group. - * - * The temperature and dew-point measured in Celsius and Fahrenheit. */ - $decoded_metar['temperature']['temp_c'] = round(strtr($regs[1], 'M', '-')); $decoded_metar['temperature']['temp_f'] = round(strtr($regs[1], 'M', '-') * (9/5) + 32); if (!empty($regs[2])) { - $decoded_metar['temperature']['dew_c'] = round(strtr($regs[2], 'M', '-')); - $decoded_metar['temperature']['dew_f'] = round(strtr($regs[2], 'M', '-') * (9/5) + 32); + $decoded_metar['temperature']['dew_c'] = round(strtr($regs[2], 'M', '-')); + $decoded_metar['temperature']['dew_f'] = round(strtr($regs[2], 'M', '-') * (9/5) + 32); } } elseif(ereg('A([0-9]{4})', $part, $regs)) { - /* * Altimeter. * The pressure measured in inHg. */ - $decoded_metar['altimeter']['inhg'] = number_format($regs[1]/100, 2); /* The pressure measured in mmHg, hPa and atm */ - $decoded_metar['altimeter']['mmhg'] = number_format($regs[1] * 0.254, 1, '.', ''); $decoded_metar['altimeter']['hpa'] = round($regs[1] * 0.33864); $decoded_metar['altimeter']['atm'] = number_format($regs[1] * 3.3421e-4, 3, '.', ''); } elseif(ereg('Q([0-9]{4})', $part, $regs)) { - /* * Altimeter. * The specification doesn't say anything about @@ -553,11 +474,9 @@ */ /* The pressure measured in hPa */ - $decoded_metar['altimeter']['hpa'] = round($regs[1]); /* The pressure measured in mmHg, inHg and atm */ - $decoded_metar['altimeter']['mmhg'] = number_format($regs[1] * 0.75006, 1, '.', ''); $decoded_metar['altimeter']['inhg'] = number_format($regs[1] * 0.02953, 2); $decoded_metar['altimeter']['atm'] = number_format($regs[1] * 9.8692e-4, 3, '.', ''); @@ -566,7 +485,6 @@ /* * Temperature/Dew Point Group, coded to tenth of degree Celsius. */ - $this->store_temp($regs[1] / 10, $decoded_metar['temperature']['temp_c'], $decoded_metar['temperature']['temp_f']); @@ -582,7 +500,6 @@ /* * 6 hour maximum temperature Celsius, coded to tenth of degree */ - $this->store_temp($regs[1] / 10, $decoded_metar['temp_min_max']['max6h_c'], $decoded_metar['temp_min_max']['max6h_f']); @@ -648,7 +565,6 @@ /* * Snow depth in inches */ - if ($regs[1] == '0000') { $decoded_metar['precipitation']['snow_in'] = -1; $decoded_metar['precipitation']['snow_mm'] = -1; @@ -662,7 +578,6 @@ * If we couldn't match the group, we assume that it was a * remark. */ - $decoded_metar['remarks'] .= ' ' . $part; } } @@ -670,7 +585,6 @@ /* * Relative humidity */ - if (!empty($decoded_metar['temperature']['temp_c']) && !empty($decoded_metar['temperature']['dew_c'])) { @@ -703,7 +617,7 @@ } /* Finally we store our decoded METAR in $this->decoded_metar so - * that other methods can use it. + * that other methods can use it. */ $this->decoded_metar = $decoded_metar; |
From: Max H. <ir...@us...> - 2002-03-29 00:38:22
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv18576 Modified Files: pw_text.php Log Message: new function to help customise it Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- pw_text.php 28 Mar 2002 21:18:29 -0000 1.8 +++ pw_text.php 29 Mar 2002 00:38:19 -0000 1.9 @@ -1126,6 +1126,24 @@ return gmdate('H:i \U\T\C', $data['time']); } + /** + * Extract some value from the metar. + * + * @param array Data taken from decode_metar() + * @access public + */ + function get_metar_value($index,$index2='',$index3='') { + // We use our own weather-object. + $data = $this->weather->decode_metar(); + if ($index3){ + return $data[$index][$index2][$index3]; + } elseif ($index2) { + return $data[$index][$index2]; + } else { + return $data[$index]; + } + } + /** * Makes a short weather-report in a table. |
From: Max H. <ir...@us...> - 2002-03-29 00:16:33
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv12745 Modified Files: style.css Log Message: A happy median. Allows for relative control without confusing nested elements Index: style.css =================================================================== RCS file: /cvsroot/phpweather/web/style.css,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- style.css 28 Mar 2002 22:12:30 -0000 1.2 +++ style.css 29 Mar 2002 00:16:29 -0000 1.3 @@ -8,7 +8,7 @@ body { background: white; color: black; - font-size: 13px; + font-size: small; } dt { |
From: Max H. <ir...@us...> - 2002-03-28 22:12:32
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv12168 Modified Files: style.css Log Message: Making font smaller Index: style.css =================================================================== RCS file: /cvsroot/phpweather/web/style.css,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- style.css 18 Mar 2002 17:36:04 -0000 1.1 +++ style.css 28 Mar 2002 22:12:30 -0000 1.2 @@ -8,6 +8,7 @@ body { background: white; color: black; + font-size: 13px; } dt { |
From: Max H. <ir...@us...> - 2002-03-28 22:12:04
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv12037 Modified Files: index.php Log Message: tweak Index: index.php =================================================================== RCS file: /cvsroot/phpweather/web/index.php,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- index.php 28 Mar 2002 16:24:32 -0000 1.21 +++ index.php 28 Mar 2002 22:12:00 -0000 1.22 @@ -81,8 +81,9 @@ <p>If you're interested in obtaining PHP Weather, then go to the <a href="http://sourceforge.net/project/showfiles.php?group_id=23245">download -area at SourceForge</a> for released files. If you want to download -the latest CVS code, then try our <a href="downloads/">daily CVS +area at SourceForge</a> for released files.</p> +<p>If you want to download +the latest code in CVS (untested!), then try our <a href="downloads/">daily CVS snapshot</a>.</p> <p>PHP Weather helps you do this on your webpages:</p> |
From: Max H. <ma...@fl...> - 2002-03-28 21:54:29
|
I'm aware that it doesn't actually do anything with the language default, but there's no reason not to do nothing with norwegian also :P Max > Modified Files: > configurator.php > Log Message: > Added norwegian > > Index: configurator.php > =================================================================== > RCS file: /cvsroot/phpweather/phpweather/configurator.php,v > retrieving revision 1.15 > retrieving revision 1.16 > diff -u -3 -r1.15 -r1.16 > --- configurator.php 20 Mar 2002 19:26:50 -0000 1.15 > +++ configurator.php 28 Mar 2002 21:47:44 -0000 1.16 > @@ -382,9 +382,10 @@ > > $properties['language'] = > new select('language', > - array('en' => 'English', > - 'da' => 'Danish', > - 'hu' => 'Hungarian'), > + array( 'en' => 'English', > + 'da' => 'Danish', > + 'hu' => 'Hungarian', > + 'no' => 'Norwegian'), > 'PHP Weather can produce output in several languages ' . > '- please select your default from the list.'); > > > > _______________________________________________ > PHPWeather-checkins mailing list > PHP...@li... > https://lists.sourceforge.net/lists/listinfo/phpweather-checkins |
From: Max H. <ir...@us...> - 2002-03-28 21:47:51
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv4775 Modified Files: configurator.php Log Message: Added norwegian Index: configurator.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/configurator.php,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- configurator.php 20 Mar 2002 19:26:50 -0000 1.15 +++ configurator.php 28 Mar 2002 21:47:44 -0000 1.16 @@ -382,9 +382,10 @@ $properties['language'] = new select('language', - array('en' => 'English', - 'da' => 'Danish', - 'hu' => 'Hungarian'), + array( 'en' => 'English', + 'da' => 'Danish', + 'hu' => 'Hungarian', + 'no' => 'Norwegian'), 'PHP Weather can produce output in several languages ' . '- please select your default from the list.'); |
From: Max H. <ir...@us...> - 2002-03-28 21:45:00
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv3830 Modified Files: index.php Log Message: I think it's easier to follow the flow if we just do this. Also added icon Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- index.php 28 Mar 2002 15:49:09 -0000 1.29 +++ index.php 28 Mar 2002 21:44:56 -0000 1.30 @@ -9,11 +9,35 @@ $weather = new phpweather(array()); +$output = '<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "DTD/xhtml1-transitional.dtd"> +<html> +<head> + <title>PHP Weather - test</title> + <style type="text/css"> +<!-- +BODY { + font-family: Verdana, Tahoma, Geneva, Arial, Helvetica, sans-serif; + font-size: 13px; +} + --> + </style> +</head> +<body> + +<img src="icons/phpweather-long-white.gif" alt=""> +<p>This is the default test page for PHP Weather. For more information, please visit +<a href="http://www.phpweather.net">http://www.phpweather.net</a>.</p> +<p>Data is taken from the <a href="http://weather.noaa.gov">National Weather Service</a> at NOAA.</p> + +'; + if (empty($action)) { /* No action - we display a form from which the user can select a country. */ - $output = '<form action="index.php" method="get">' . "\n" . + $output .= '<form action="index.php" method="get">' . "\n" . '<p><input type="hidden" name="action" value="show_stations" /> ' . get_countries_select($weather, '') . ' <input type="submit" />' . "</p>\n</form>\n"; @@ -25,7 +49,7 @@ if (empty($icao)) $icao = ''; if (empty($language)) $language = ''; - $output = '<form action="index.php" method="get">' . "\n<p>" . + $output .= '<form action="index.php" method="get">' . "\n<p>" . '<input type="hidden" name="action" value="show_weather" /> ' . get_countries_select($weather, $cc) . get_stations_select($weather, $cc, $icao) . @@ -34,7 +58,7 @@ } elseif ($action == 'show_weather' && !empty($language)) { /* A station has just been selected - we print the weather. */ - $output = '<form action="index.php" method="get">' . "\n<p>" . + $output .= '<form action="index.php" method="get">' . "\n<p>" . '<input type="hidden" name="action" value="show_weather" /> ' . get_countries_select($weather, $cc) . get_stations_select($weather, $cc, $icao) . @@ -76,30 +100,7 @@ } else { header('Content-Type: text/html; charset=' . $text->get_charset()); } -?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "DTD/xhtml1-transitional.dtd"> -<html> -<head> - <title>PHP Weather - test</title> - <style type="text/css"> -<!-- -BODY { - font-family: Verdana, Tahoma, Geneva, Arial, Helvetica, sans-serif; - font-size: 13px; -} - --> - </style> -</head> -<body> - -<h1>PHP Weather - test</h1> -<p>This is the default test page for PHP Weather. For more information, please visit -<a href="http://www.phpweather.net">http://www.phpweather.net</a>.</p> -<p>Data is taken from the <a href="http://weather.noaa.gov">National Weather Service</a> at NOAA.</p> -<?php echo $output; $end_time = explode(' ', microtime()); |
From: Martin G. <gim...@us...> - 2002-03-28 21:18:37
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv27336 Modified Files: pw_text.php Log Message: Bad - we should never output anything directly from this method. Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- pw_text.php 28 Mar 2002 15:49:09 -0000 1.7 +++ pw_text.php 28 Mar 2002 21:18:29 -0000 1.8 @@ -998,11 +998,10 @@ * if the metar is empty. */ - printf($this->strings['no_data'], - $this->properties['mark_begin'], - $location, - $this->properties['mark_end']); - return 1; + return sprintf($this->strings['no_data'], + $this->properties['mark_begin'], + $location, + $this->properties['mark_end']); } /**************** |
From: Martin G. <gim...@us...> - 2002-03-28 16:27:49
|
Update of /cvsroot/phpweather/web/include In directory usw-pr-cvs1:/tmp/cvs-serv6454/include Modified Files: footer.php Log Message: Centering... Index: footer.php =================================================================== RCS file: /cvsroot/phpweather/web/include/footer.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- footer.php 27 Mar 2002 14:39:21 -0000 1.6 +++ footer.php 28 Mar 2002 16:17:30 -0000 1.7 @@ -8,7 +8,7 @@ src="http://sourceforge.net/sflogo.php?group_id=23245" width="88" height="31" border="0" alt="SourceForge Logo" align="right" /></a> -<p>This page was last modified on <? echo date('F jS, Y', getlastmod()) ?>.</p> +<p class="footer">This page was last modified on <? echo date('F jS, Y', getlastmod()) ?>.</p> </body> |
From: Martin G. <gim...@us...> - 2002-03-28 16:27:48
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv4809 Modified Files: index.php Log Message: I think it's time to put this one on the frontpage. The databases are updated regularly now, although they seam to be about 30 minutes behind NWS for some strange reason that I cannot figure out. So the system with cycle files are working, it just needs to be fine tuned. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/web/index.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- index.php 28 Mar 2002 14:15:29 -0000 1.19 +++ index.php 28 Mar 2002 16:16:47 -0000 1.20 @@ -1,147 +1,113 @@ <?php -require_once('include/header.php'); require_once('phpweather/phpweather.php'); require_once('phpweather/output/pw_text_en.php'); require_once('phpweather/output/pw_images.php'); require_once('phpweather/pw_utilities.php'); -?> - -<p>This is the homepage of PHP Weather at <a -href="http://www.sourceforge.net/">SourceForge</a>.</p> - -<p>If you're interested in obtaining PHP Weather, then go to the <a -href="http://sourceforge.net/project/showfiles.php?group_id=23245">download -area at SourceForge</a> for released files. If you want to download -the latest CVS code, then try our <a href="downloads/">daily CVS -snapshot</a>.</p> -<p>PHP Weather helps you do this on your webpages:</p> - -<? $weather = new phpweather(array()); -$egbe = fread(fopen('egbe.txt', 'r'),filesize('egbe.txt')); -$weather->set_metar($egbe); -$text = new pw_text_en($weather, array('mark_begin' => '<font color="blue">', - 'mark_end' => '</font>')); -$images = new pw_images($weather, array('icons_path' => 'phpweather/icons/')); - -echo '<p>Current weather for ' . $weather->get_location() . ': <br />' . - '<img src="' . $images->get_sky_image() . - '" height="50" width="80" border="1" alt="Current weather" /> ' . - '<img src="' . $images->get_winddir_image() . - '" height="40" width="40" border="1" alt="Current wind" /> ' . - '<img src="' . $images->get_temp_image() . - '" height="50" width="20" border="1" alt="Current temperature" /></p>'; - -echo "<p>A textual report looks like this:</p>\n"; - -$text->print_pretty(); - -?> -<!-- -echo "<p>Now try it yourself:</p>\n"; if (empty($action)) { /* No action - we display a form from which the user can select a country. */ - - echo ' -<p> -<form action="index.php" method="post"> -<input type="hidden" name="action" value="show_stations" /> -'; - - make_countries_select($weather, ''); - - echo ' -<input type="submit" /> -</form> -</p> -'; + + $output = '<form action="index.php" method="get">' . "\n" . + '<p><input type="hidden" name="action" value="show_stations" /> ' . + get_countries_select($weather, '') . + ' <input type="submit" />' . "</p>\n</form>\n"; } elseif ($action == 'show_stations' && !empty($cc)) { /* A country has just been selected - we make a form with all stations in that country. */ - - echo ' -<p> -<form action="index.php" method="post"> -<input type="hidden" name="action" value="show_weather" /> -'; if (empty($icao)) $icao = ''; if (empty($language)) $language = ''; - - make_countries_select($weather, $cc); - make_stations_select($weather, $cc, $icao); - make_languages_select($weather, $language); - - echo ' -<input type="submit" /> -</form> -</p> -'; + $output = '<form action="index.php" method="get">' . "\n<p>" . + '<input type="hidden" name="action" value="show_weather" /> ' . + get_countries_select($weather, $cc) . + get_stations_select($weather, $cc, $icao) . + get_languages_select($weather, $language) . + '<input type="submit" />' . "</p>\n</form>\n"; } elseif ($action == 'show_weather' && !empty($language)) { /* A station has just been selected - we print the weather. */ - echo ' -<p> -<form action="index.php" method="post"> -<input type="hidden" name="action" value="show_weather" /> -'; - - make_countries_select($weather, $cc); - make_stations_select($weather, $cc, $icao); - make_languages_select($weather, $language); - - echo ' -<input type="submit"> -</form> -</p> -'; - + $output = '<form action="index.php" method="get">' . "\n<p>" . + '<input type="hidden" name="action" value="show_weather" /> ' . + get_countries_select($weather, $cc) . + get_stations_select($weather, $cc, $icao) . + get_languages_select($weather, $language) . + '<input type="submit" />' . "</p>\n</form>\n"; + if ($cc == $old_cc) { /* We should only display the current weather is the country isn't changed */ $weather->set_icao($icao); include_once(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php"); $type = 'pw_text_' . $language; - $text = new $type($weather, array('mark_begin' => '<font color="green">', - 'mark_end' => '</font>')); - - echo "<p>This is the current weather in " . - $weather->get_location() . ":</p>\n"; + $text = new $type($weather, array()); + + include_once(PHPWEATHER_BASE_DIR . "/output/pw_images.php"); + $icons = new pw_images($weather, array('icons_path' => + 'phpweather/icons/')); - $text->print_pretty(); + $output .= '<p>This is the current weather in ' . + $weather->get_location() . ":</p>\n<blockquote>\n" . + $text->print_pretty() . "\n</blockquote>\n" . + "<p>The matching icons are:</p>\n<blockquote>\n" . + '<img src="' . $icons->get_sky_image() . + '" height="50" width="80" border="1" alt="Current weather in ' . + $weather->get_location() . '" /> ' . + '<img src="' . $icons->get_winddir_image() . + '" height="40" width="40" border="1" alt="Current wind in ' . + $weather->get_location() . '" /> ' . + '<img src="' . $icons->get_temp_image() . + '" height="50" width="20" border="1" alt="Current weather in ' . + $weather->get_location() . '" />' . + "\n</blockquote>\n" . + "<p>The raw METAR is <code>" . + $weather->get_metar() . "</code></p>\n"; + } +} - echo "<p>The matching icons are:</p>\n"; +if (!empty($text)) { + $charset = $text->get_charset(); +} +require_once('include/header.php'); - include_once(PHPWEATHER_BASE_DIR . "/output/pw_images.php"); +?> - $icons = new pw_images($weather, array('icons_path' => 'phpweather/icons/')); +<p>This is the homepage of PHP Weather at <a +href="http://www.sourceforge.net/">SourceForge</a>.</p> - echo "<blockquote>\n"; - echo '<img src="' . $icons->get_sky_image() . - '" height="50" width="80" border="1" alt="Current weather" /> '; - echo '<img src="' . $icons->get_winddir_image() . - '" height="40" width="40" border="1" alt="Current wind" /> '; - echo '<img src="' . $icons->get_temp_image() . - '" height="50" width="20" border="1" alt="Current temperature" />'; - echo "</blockquote>\n"; +<p>If you're interested in obtaining PHP Weather, then go to the <a +href="http://sourceforge.net/project/showfiles.php?group_id=23245">download +area at SourceForge</a> for released files. If you want to download +the latest CVS code, then try our <a href="downloads/">daily CVS +snapshot</a>.</p> +<p>PHP Weather helps you do this on your webpages:</p> - echo "<p>The raw METAR is <code>" . $weather->get_metar() . "</code></p>\n"; - - } -} +<?php +$weather->set_icao('EGBE'); +$text = new pw_text_en($weather, array('mark_begin' => '<font color="blue">', + 'mark_end' => '</font>')); +$images = new pw_images($weather, array('icons_path' => 'phpweather/icons/')); +?> ---> +<p>Current weather for <? echo $weather->get_location() ?>: <br /> + <img src="<? echo $images->get_sky_image() ?>" + height="50" width="80" border="1" alt="Current weather" /> + <img src="<? echo $images->get_winddir_image() ?>" + height="40" width="40" border="1" alt="Current wind" /> + <img src="<? echo $images->get_temp_image() ?>" + height="50" width="20" border="1" alt="Current temperature" /></p> -<p>Due to limitations of the SourceForge server, we can not load the most up-to-date information for all stations here. To see -PHPWeather working properly, you can go <a href="http://www.warwick.ac.uk/~msufi/phpweather" target="new">here</a>.</p> -<? +<p>A textual report looks like this:</p> -require_once('include/footer.php'); +<blockquote><? echo $text->print_pretty() ?></blockquote> -?> +<p>Now try it out for yourself:</p> + +<? echo $output ?> + +<?php require_once('include/footer.php'); ?> |
From: Martin G. <gim...@us...> - 2002-03-28 16:24:35
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv8485 Modified Files: index.php Log Message: POST is probably better here... Index: index.php =================================================================== RCS file: /cvsroot/phpweather/web/index.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- index.php 28 Mar 2002 16:16:47 -0000 1.20 +++ index.php 28 Mar 2002 16:24:32 -0000 1.21 @@ -10,7 +10,7 @@ /* No action - we display a form from which the user can select a country. */ - $output = '<form action="index.php" method="get">' . "\n" . + $output = '<form action="index.php" method="post">' . "\n" . '<p><input type="hidden" name="action" value="show_stations" /> ' . get_countries_select($weather, '') . ' <input type="submit" />' . "</p>\n</form>\n"; @@ -22,7 +22,7 @@ if (empty($icao)) $icao = ''; if (empty($language)) $language = ''; - $output = '<form action="index.php" method="get">' . "\n<p>" . + $output = '<form action="index.php" method="post">' . "\n<p>" . '<input type="hidden" name="action" value="show_weather" /> ' . get_countries_select($weather, $cc) . get_stations_select($weather, $cc, $icao) . @@ -31,7 +31,7 @@ } elseif ($action == 'show_weather' && !empty($language)) { /* A station has just been selected - we print the weather. */ - $output = '<form action="index.php" method="get">' . "\n<p>" . + $output = '<form action="index.php" method="post">' . "\n<p>" . '<input type="hidden" name="action" value="show_weather" /> ' . get_countries_select($weather, $cc) . get_stations_select($weather, $cc, $icao) . |
From: Martin G. <gim...@us...> - 2002-03-28 15:50:17
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv29886 Modified Files: pw_text_hu.php Log Message: There was some blank lines at the bottom of this file. It's important to eliminate such lines now that we send HTTP headers out. Index: pw_text_hu.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text_hu.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- pw_text_hu.php 28 Mar 2002 15:28:50 -0000 1.6 +++ pw_text_hu.php 28 Mar 2002 15:50:14 -0000 1.7 @@ -183,5 +183,4 @@ } } -?> - +?> \ No newline at end of file |
From: Martin G. <gim...@us...> - 2002-03-28 15:49:13
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv28913/output Modified Files: pw_text.php Log Message: Rewrite to accommodate for the charset header. pw_text::print_pretty() does no longer output anything, instead it returns a string with the output. Perhaps it should be renamed, since 'print' implies that it generates output? Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- pw_text.php 27 Mar 2002 15:13:40 -0000 1.6 +++ pw_text.php 28 Mar 2002 15:49:09 -0000 1.7 @@ -42,25 +42,32 @@ * use one of it's subclasses such as pw_text_en, pw_text_da, or * another language. * - * The constructor in the subclass will finish off by calling this - * constructor. At that time, there should be a 'charset' entry in - * the $strings array. This entry will be placed in the global - * namespace so that things outside of PHP Weather can send the - * right header to the browser. - * - * @param phpweather The object with the weather. + * @param phpweather The object with the weather. * @access public */ function pw_text($w, $input) { - /* The charset should be part of the $strings array. We set it - * globally so that the outside world can react on it. */ - - $GLOBALS['charset'] = $this->strings['charset']; $this->weather = $w; /* We call the parent constructor. */ $this->base_object($input); } + + /** + * Returns the character encoding used in the current language. + * + * This information should be used to send a HTTP header to the + * browser like this, where $charset has been set by calling this + * method: + * + * header("Content-Type: text/html; charset=$charset"); + * + * @return string The character encoding, e.g. ISO-8859-1 for + * Western languages, ISO-8859-2 for Central European languages and + * so on. + */ + function get_charset() { + return $this->strings['charset']; + } /** * Sets the marks (the strings inserted before and after every number) @@ -1103,25 +1110,8 @@ /* * This is where we make the HTML output. */ - - echo '<!-- Generated by PHP Weather ' . $this->version . " -->\n"; - - if (defined('DEBUG')) { - while (list($key, $val) = each($output)) { - echo "<p><i>$key</i>: $val</p>"; - } - - echo "<pre>\n"; - print_r ($data); - echo "</pre>\n"; - } else { - print "<blockquote>\n"; - while (list($key, $val) = each($output)) { - echo $val . "\n"; - } - print "</blockquote>\n"; - } - return 0; + return '<!-- Generated by PHP Weather ' . $this->version . " -->\n" . + implode("\n", $output); } |
From: Martin G. <gim...@us...> - 2002-03-28 15:49:13
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv28913 Modified Files: index.php pw_utilities.php Log Message: Rewrite to accommodate for the charset header. pw_text::print_pretty() does no longer output anything, instead it returns a string with the output. Perhaps it should be renamed, since 'print' implies that it generates output? Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- index.php 27 Mar 2002 21:55:17 -0000 1.28 +++ index.php 28 Mar 2002 15:49:09 -0000 1.29 @@ -1,30 +1,8 @@ -<?php header('Content-Type: text/html; charset=UTF-8'); ?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "DTD/xhtml1-transitional.dtd"> -<html> -<head> - <title>PHP Weather - test</title> - <style type="text/css"> -<!-- -BODY { - font-family: Verdana, Tahoma, Geneva, Arial, Helvetica, sans-serif; - font-size: 13px; -} - --> - </style> -</head> -<body> - -<h1>PHP Weather - test</h1> -<p>This is the default test page for PHP Weather. For more information, please visit -<a href="http://www.phpweather.net">http://www.phpweather.net</a>.</p> -<p>Data is taken from the <a href="http://weather.noaa.gov">National Weather Service</a> at NOAA.</p> <?php -error_reporting(E_ERROR); +error_reporting(E_ALL); -/* Checkpoint, we store the time */ -$time[] = array(microtime(), 'start'); +/* We store the time */ +$start_time = explode(' ', microtime()); require('phpweather.php'); require('pw_utilities.php'); @@ -34,63 +12,35 @@ if (empty($action)) { /* No action - we display a form from which the user can select a country. */ - - echo ' -<form action="index.php" method="get"> -<p> -<input type="hidden" name="action" value="show_stations" /> -'; - - make_countries_select($weather, ''); - - echo ' -<input type="submit" /> -</p> -</form> -'; + + $output = '<form action="index.php" method="get">' . "\n" . + '<p><input type="hidden" name="action" value="show_stations" /> ' . + get_countries_select($weather, '') . + ' <input type="submit" />' . "</p>\n</form>\n"; } elseif ($action == 'show_stations' && !empty($cc)) { /* A country has just been selected - we make a form with all stations in that country. */ - - echo ' -<form action="index.php" method="get"> -<p> -<input type="hidden" name="action" value="show_weather" /> -'; if (empty($icao)) $icao = ''; if (empty($language)) $language = ''; - - make_countries_select($weather, $cc); - make_stations_select($weather, $cc, $icao); - make_languages_select($weather, $language); - - echo ' -<input type="submit" /> -</p> -</form> -'; + $output = '<form action="index.php" method="get">' . "\n<p>" . + '<input type="hidden" name="action" value="show_weather" /> ' . + get_countries_select($weather, $cc) . + get_stations_select($weather, $cc, $icao) . + get_languages_select($weather, $language) . + '<input type="submit" />' . "</p>\n</form>\n"; } elseif ($action == 'show_weather' && !empty($language)) { /* A station has just been selected - we print the weather. */ - echo ' -<form action="index.php" method="get"> -<p> -<input type="hidden" name="action" value="show_weather" /> -'; - - make_countries_select($weather, $cc); - make_stations_select($weather, $cc, $icao); - make_languages_select($weather, $language); - - echo ' -<input type="submit" /> -</p> -</form> -'; - + $output = '<form action="index.php" method="get">' . "\n<p>" . + '<input type="hidden" name="action" value="show_weather" /> ' . + get_countries_select($weather, $cc) . + get_stations_select($weather, $cc, $icao) . + get_languages_select($weather, $language) . + '<input type="submit" />' . "</p>\n</form>\n"; + if ($cc == $old_cc) { /* We should only display the current weather is the country isn't changed */ @@ -98,55 +48,64 @@ include(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php"); $type = 'pw_text_' . $language; $text = new $type($weather, array()); - - echo "<p>This is the current weather in " . - $weather->get_location() . ":</p>\n"; - - $text->print_pretty(); - - echo "<p>The matching icons are:</p>\n"; include(PHPWEATHER_BASE_DIR . "/output/pw_images.php"); - $icons = new pw_images($weather, array()); - - echo "<blockquote>\n"; - echo '<img src="' . $icons->get_sky_image() . + + $output .= '<p>This is the current weather in ' . + $weather->get_location() . ":</p>\n<blockquote>\n" . + $text->print_pretty() . "\n</blockquote>\n" . + "<p>The matching icons are:</p>\n<blockquote>\n" . + '<img src="' . $icons->get_sky_image() . '" height="50" width="80" border="1" alt="Current weather in ' . - $weather->get_location() . '" /> '; - echo '<img src="' . $icons->get_winddir_image() . + $weather->get_location() . '" /> ' . + '<img src="' . $icons->get_winddir_image() . '" height="40" width="40" border="1" alt="Current wind in ' . - $weather->get_location() . '" /> '; - echo '<img src="' . $icons->get_temp_image() . + $weather->get_location() . '" /> ' . + '<img src="' . $icons->get_temp_image() . '" height="50" width="20" border="1" alt="Current weather in ' . - $weather->get_location() . '" />'; - echo "</blockquote>\n"; - - - echo "<p>The raw METAR is <code>" . $weather->get_metar() . "</code></p>\n"; - + $weather->get_location() . '" />' . + "\n</blockquote>\n" . + "<p>The raw METAR is <code>" . + $weather->get_metar() . "</code></p>\n"; } } +if (empty($text)) { + header('Content-Type: text/html; charset=ISO-8859-1'); +} else { + header('Content-Type: text/html; charset=' . $text->get_charset()); +} +?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "DTD/xhtml1-transitional.dtd"> +<html> +<head> + <title>PHP Weather - test</title> + <style type="text/css"> +<!-- +BODY { + font-family: Verdana, Tahoma, Geneva, Arial, Helvetica, sans-serif; + font-size: 13px; +} + --> + </style> +</head> +<body> -$time[] = array(microtime(), 'end'); +<h1>PHP Weather - test</h1> +<p>This is the default test page for PHP Weather. For more information, please visit +<a href="http://www.phpweather.net">http://www.phpweather.net</a>.</p> +<p>Data is taken from the <a href="http://weather.noaa.gov">National Weather Service</a> at NOAA.</p> -$max = count($time) - 1; -/* -for ($i = 0; $i < $max; $i++) { - $start_time = explode(' ', $time[$i][0]); - $end_time = explode(' ', $time[$i+1][0]); - $diff = ($end_time[0] + $end_time[1]) - ($start_time[0] + $start_time[1]); - echo '<p>Time taken to go from "' . ($time[$i][1]) . '" to "' . ($time[$i+1][1]) . '": ' . number_format($diff * 1000, 0) . " ms.</p>\n"; -} -*/ +<?php +echo $output; + +$end_time = explode(' ', microtime()); -$start_time = explode(' ', $time[0][0]); -$end_time = explode(' ', $time[$max][0]); $diff = ($end_time[0] + $end_time[1]) - ($start_time[0] + $start_time[1]); echo '<p>Total time used to generate page: ' . number_format($diff * 1000, 0) . " ms.</p>\n"; - - ?> </body> Index: pw_utilities.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/pw_utilities.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- pw_utilities.php 27 Mar 2002 20:13:20 -0000 1.3 +++ pw_utilities.php 28 Mar 2002 15:49:09 -0000 1.4 @@ -3,62 +3,62 @@ /* Miscellaneous functions that can help you build an interactive site * with PHP Weather. */ -function make_countries_select($weather, $old_cc) { - echo' -<select name="cc"> -'; +function get_countries_select($weather, $old_cc) { + $output = '<select name="cc">'; $countries = $weather->db->get_countries(); while (list($cc, $country) = each($countries)) { if ($cc == $old_cc) { - echo "<option value=\"$cc\" selected=\"selected\">$country</option>\n"; + $output .= "\n<option value=\"$cc\" selected=\"selected\">$country</option>"; } else { - echo "<option value=\"$cc\">$country</option>\n"; + $output .= "\n<option value=\"$cc\">$country</option>"; } } - echo "</select>\n"; - echo '<input type="hidden" name="old_cc" value="' . $old_cc . '" />'; - + $output .= "\n</select>\n"; + $output .= '<input type="hidden" name="old_cc" value="' . $old_cc . '" />'; + return $output; } -function make_stations_select($weather, $cc, $old_icao) { +function get_stations_select($weather, $cc, $old_icao) { $country = ''; $icaos = $weather->db->get_icaos($cc, $country); - echo ' -<select name="icao"> -'; + $output = '<select name="icao">'; while (list($icao, $name) = each($icaos)) { if ($icao == $old_icao) { - echo "<option value=\"$icao\" selected=\"selected\">$name</option>\n"; + $output .= "\n<option value=\"$icao\" selected=\"selected\">$name</option>"; } else { - echo "<option value=\"$icao\">$name</option>\n"; + $output .= "\n<option value=\"$icao\">$name</option>"; } } - echo "</select>\n"; - echo '<input type="hidden" name="old_icao" value="' . $old_icao . '" />'; + $output .= "\n</select>\n"; + $output .= '<input type="hidden" name="old_icao" value="' . + $old_icao . '" />'; + + return $output; } -function make_languages_select($weather, $old_language) { +function get_languages_select($weather, $old_language) { - echo ' -<select name="language"> -'; + $output = '<select name="language">'; $languages = $weather->get_languages('text'); while (list($lc, $language) = each($languages)) { if ($lc == $old_language) { - echo "<option value=\"$lc\" selected=\"selected\">$language</option>\n"; + $output .= "\n<option value=\"$lc\" selected=\"selected\">$language</option>"; } else { - echo "<option value=\"$lc\">$language</option>\n"; + $output .= "\n<option value=\"$lc\">$language</option>"; } } - echo "</select>\n"; - echo '<input type="hidden" name="old_language" value="' . $old_language . '" />'; + $output .= "\n</select>\n"; + $output .= '<input type="hidden" name="old_language" value="' . + $old_language . '" />'; + + return $output; } ?> |
From: Martin G. <gim...@us...> - 2002-03-28 15:28:54
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv23398 Modified Files: pw_text_hu.php Log Message: Hmm, we will use ISO-8859-2 instead of this UTF-8 thing, so I'm reverting this to version 1.4. Index: pw_text_hu.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text_hu.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- pw_text_hu.php 27 Mar 2002 21:43:48 -0000 1.5 +++ pw_text_hu.php 28 Mar 2002 15:28:50 -0000 1.6 @@ -3,13 +3,12 @@ require_once(PHPWEATHER_BASE_DIR . '/output/pw_text.php'); /** - * Provides all the strings needed by pw_text to produce Hungarian - * output. + * Provides all the strings needed by locale_common to produce + * Hungarian output. + * A magyar szövegû idõjárásjelentéshez a locale_common innen + * veszi a sztringeket. * - * A magyar szövegû idõjárásjelentéshez a pw_text innen veszi a - * sztringeket. - * - * @author Mihály Gyulai + * @author Mihály Gyulai * @link http://gyulai.freeyellow.com/ The homepage of the author. * @version $Id$ */ @@ -19,62 +18,62 @@ * This constructor provides all the strings used. * * @param array This is just passed on to locale_common() - * Ezt a paramétert átadjuk locale_common() -nak. + * Ezt a paramétert átadjuk locale_common() -nak. */ function pw_text_hu($weather, $input) { $this->strings['charset'] = 'ISO-8859-2'; - $this->strings['no_data'] = 'Sajnos nincs adat %s%s%s számára.'; - $this->strings['list_sentences_and'] = ' és '; + $this->strings['no_data'] = 'Sajnos nincs adat %s%s%s számára.'; + $this->strings['list_sentences_and'] = ' és '; $this->strings['list_sentences_comma'] = ', '; - $this->strings['list_sentences_final_and'] = ', és '; - $this->strings['location'] = 'Idõjárásjelentés %s%s%s számára.'; + $this->strings['list_sentences_final_and'] = ', és '; + $this->strings['location'] = 'Idõjárásjelentés %s%s%s számára.'; $this->strings['minutes'] = ' '; - $this->strings['time_format'] = 'A jelentés %s perccel ezelõtt készült, %s%s%s UTC-kor.'; - $this->strings['time_minutes'] = 'és %s%s%s '; - $this->strings['time_one_hour'] = '%segy%s órával %s'; - $this->strings['time_several_hours'] = '%s%s%s órával %s'; + $this->strings['time_format'] = 'A jelentés %s perccel ezelõtt készült, %s%s%s UTC-kor.'; + $this->strings['time_minutes'] = 'és %s%s%s '; + $this->strings['time_one_hour'] = '%segy%s órával %s'; + $this->strings['time_several_hours'] = '%s%s%s órával %s'; $this->strings['time_a_moment'] = 'jelenleg'; $this->strings['meters_per_second'] = ' m/s'; - $this->strings['miles_per_hour'] = ' mérföld/h'; + $this->strings['miles_per_hour'] = ' mérföld/h'; $this->strings['meter'] = ' m'; $this->strings['meters'] = ' m'; - $this->strings['feet'] = ' láb'; + $this->strings['feet'] = ' láb'; $this->strings['kilometers'] = ' km'; - $this->strings['miles'] = ' mérföld'; - $this->strings['and'] = ' és '; - $this->strings['plus'] = ' és '; + $this->strings['miles'] = ' mérföld'; + $this->strings['and'] = ' és '; + $this->strings['plus'] = ' és '; $this->strings['with'] = ''; - $this->strings['wind_blowing'] = 'Szélsebesség: '; - $this->strings['wind_with_gusts'] = ' széllökések: '; - $this->strings['wind_from'] = ' iránya: '; - $this->strings['wind_variable'] = ' %skülönbözõ%s irányokból.'; - $this->strings['wind_varying'] = ', változik %s%s%s (%s%s°%s) és %s%s%s (%s%s°%s) között'; - $this->strings['wind_calm'] = 'Szél %snem fújt%s'; + $this->strings['wind_blowing'] = 'Szélsebesség: '; + $this->strings['wind_with_gusts'] = ' széllökések: '; + $this->strings['wind_from'] = ' iránya: '; + $this->strings['wind_variable'] = ' %skülönbözõ%s irányokból.'; + $this->strings['wind_varying'] = ', változik %s%s%s (%s%s°%s) és %s%s%s (%s%s°%s) között'; + $this->strings['wind_calm'] = 'Szél %snem fújt%s'; $this->strings['wind_dir'] = array( - 'Ãszak', - 'Ãszak/Ãszakkelet', - 'Ãszakkelet', - 'Kelet/Ãszakkelet', + 'Észak', + 'Észak/Északkelet', + 'Északkelet', + 'Kelet/Északkelet', 'Kelet', - 'Kelet/Délkelet', - 'Délkelet', - 'Dél/Délkelet', - 'Dél', - 'Dél/Délnyugat', - 'Délnyugat', - 'Nyugat/Délnyugat', + 'Kelet/Délkelet', + 'Délkelet', + 'Dél/Délkelet', + 'Dél', + 'Dél/Délnyugat', + 'Délnyugat', + 'Nyugat/Délnyugat', 'Nyugat', - 'Nyugat/Ãszaknyugat', - 'Ãszaknyugat', - 'Ãszak/Ãszaknyugat', - 'Ãszak'); + 'Nyugat/Északnyugat', + 'Északnyugat', + 'Észak/Északnyugat', + 'Észak'); $this->strings['wind_dir_short'] = array( - 'Ã', - 'Ã/ÃK', - 'ÃK', - 'K/ÃK', + 'É', + 'É/ÉK', + 'ÉK', + 'K/ÉK', 'K', 'K/DK', 'DK', @@ -84,98 +83,98 @@ 'DNY', 'NY/DNY', 'NY', - 'NY/ÃNY', - 'ÃNY', - 'Ã/ÃNY', - 'Ã' + 'NY/ÉNY', + 'ÉNY', + 'É/ÉNY', + 'É' ); $this->strings['wind_dir_short_long'] = array( - 'Ã' => 'északi', - 'ÃK' => 'északkeleti', + 'É' => 'északi', + 'ÉK' => 'északkeleti', 'K' => 'keleti', - 'DK' => 'délkeleti', - 'D' => 'déli', - 'DNY' => 'délnyugati', + 'DK' => 'délkeleti', + 'D' => 'déli', + 'DNY' => 'délnyugati', 'NY' => 'nyugati', - 'ÃNY' => 'északnyugati' + 'ÉNY' => 'északnyugati' ); - $this->strings['temperature'] = 'A hõmérséklet '; + $this->strings['temperature'] = 'A hõmérséklet '; $this->strings['dew_point'] = ', a harmatpont '; - $this->strings['altimeter'] = 'A légköri nyomás '; + $this->strings['altimeter'] = 'A légköri nyomás '; $this->strings['hPa'] = ' hPa'; $this->strings['inHg'] = ' inHg'; - $this->strings['rel_humidity'] = 'A relatÃv páratartalom '; - $this->strings['windchill'] = 'A hõérzet '; - $this->strings['cloud_group_beg'] = 'Az égbolton'; - $this->strings['cloud_group_end'] = ' magasságban.'; - $this->strings['cloud_clear'] = 'Az égbolt %sfelhõtlen%s volt.'; - $this->strings['cloud_height'] = 'felhõ '; - $this->strings['cloud_overcast'] = 'az égbolt %sborult%s '; - $this->strings['cloud_vertical_visibility'] = 'a %sfüggõleges láthatóság%s '; + $this->strings['rel_humidity'] = 'A relatív páratartalom '; + $this->strings['windchill'] = 'A hõérzet '; + $this->strings['cloud_group_beg'] = 'Az égbolton'; + $this->strings['cloud_group_end'] = ' magasságban.'; + $this->strings['cloud_clear'] = 'Az égbolt %sfelhõtlen%s volt.'; + $this->strings['cloud_height'] = 'felhõ '; + $this->strings['cloud_overcast'] = 'az égbolt %sborult%s '; + $this->strings['cloud_vertical_visibility'] = 'a %sfüggõleges láthatóság%s '; $this->strings['cloud_condition'] = array( - 'SKC' => ' derült', + 'SKC' => ' derült', 'CLR' => ' tiszta', - 'FEW' => ' néhány ', - 'SCT' => ' szórványos ', + 'FEW' => ' néhány ', + 'SCT' => ' szórványos ', 'BKN' => ' szakadozott ', 'OVC' => ' borult'); $this->strings['cumulonimbus'] = ' gomoly'; $this->strings['towering_cumulus'] = ' vihar'; - $this->strings['cavok'] = ' nincsenek felhõk %s magasságban, és nincs gomolyfelhõ'; - $this->strings['currently'] = 'Jellemzõ: '; + $this->strings['cavok'] = ' nincsenek felhõk %s magasságban, és nincs gomolyfelhõ'; + $this->strings['currently'] = 'Jellemzõ: '; $this->strings['weather'] = array( - '-' => ' könnyû ', + '-' => ' könnyû ', ' ' => ' enyhe ', - '+' => ' erõs ', - 'VC' => ' a közelben', - 'PR' => ' részleges', + '+' => ' erõs ', + 'VC' => ' a közelben', + 'PR' => ' részleges', 'BC' => ' szakadozott', - 'MI' => ' felszÃnes', - 'DR' => 'enyhe légmozgás', - 'BL' => 'széllökés', - 'SH' => 'zápor', + 'MI' => ' felszínes', + 'DR' => 'enyhe légmozgás', + 'BL' => 'széllökés', + 'SH' => 'zápor', 'TS' => 'zivatar', 'FZ' => 'fagy', - 'DZ' => 'szitáló esõ', - 'RA' => 'esõ', - 'SN' => 'hó', - 'SG' => 'szemcsés hó', - 'IC' => 'jégkristály', - 'PE' => 'jégdara', - 'GR' => 'jégesõ', - 'GS' => 'apró jégesõ és/vagy hódara', + 'DZ' => 'szitáló esõ', + 'RA' => 'esõ', + 'SN' => 'hó', + 'SG' => 'szemcsés hó', + 'IC' => 'jégkristály', + 'PE' => 'jégdara', + 'GR' => 'jégesõ', + 'GS' => 'apró jégesõ és/vagy hódara', 'UP' => 'ismeretlen', - 'BR' => 'köd', - 'FG' => 'sûrû köd', - 'FU' => 'füst', - 'VA' => 'vulkáni hamu', + 'BR' => 'köd', + 'FG' => 'sûrû köd', + 'FU' => 'füst', + 'VA' => 'vulkáni hamu', 'DU' => 'kiterjedt por', 'SA' => 'homok', - 'HZ' => 'pára', + 'HZ' => 'pára', 'PY' => 'permet', - 'PO' => 'por/homok örvény', - 'SQ' => 'szélroham', - 'FC' => 'felhõtölcsér/tornádó/vÃzoszlop', + 'PO' => 'por/homok örvény', + 'SQ' => 'szélroham', + 'FC' => 'felhõtölcsér/tornádó/vízoszlop', 'SS' => 'homokvihar/porvihar' ); - $this->strings['visibility'] = 'A láthatóság általában '; + $this->strings['visibility'] = 'A láthatóság általában '; $this->strings['visibility_greater_than'] = 'nagyobb, mint '; $this->strings['visibility_less_than'] = 'kisebb, mint '; - $this->strings['runway_upward_tendency'] = ' %snövekvõ%s tendenciával'; - $this->strings['runway_downward_tendency'] = ' %scsökkenõ%s tendenciával'; - $this->strings['runway_no_tendency'] = ' határozott %stendencia nélkül%s'; - $this->strings['runway_between'] = 'közötti? '; + $this->strings['runway_upward_tendency'] = ' %snövekvõ%s tendenciával'; + $this->strings['runway_downward_tendency'] = ' %scsökkenõ%s tendenciával'; + $this->strings['runway_no_tendency'] = ' határozott %stendencia nélkül%s'; + $this->strings['runway_between'] = 'közötti? '; $this->strings['runway_left'] = ' bal'; - $this->strings['runway_central'] = ' középsõ'; + $this->strings['runway_central'] = ' középsõ'; $this->strings['runway_right'] = ' jobb'; - $this->strings['runway_visibility'] = 'A láthatóság '; - $this->strings['runway_for_runway'] = ' a kifutópályán '; + $this->strings['runway_visibility'] = 'A láthatóság '; + $this->strings['runway_for_runway'] = ' a kifutópályán '; /* We run the parent constructor */ |