Update of /cvsroot/phpweather/phpweather/output
In directory sc8-pr-cvs1:/tmp/cvs-serv8860
Modified Files:
pw_text_sk.php
Log Message:
Added method parse_runway_group() to have better handling of runway
visibilities in slovak translation.
Index: pw_text_sk.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/output/pw_text_sk.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- pw_text_sk.php 16 Dec 2002 00:15:52 -0000 1.4
+++ pw_text_sk.php 19 Dec 2002 01:07:24 -0000 1.5
@@ -272,6 +272,20 @@
return parent::parse_cloud_group($cloud_group);
}
+ function parse_runway_group($runway_group)
+ {
+ if (empty($runway_group) || !is_array($runway_group)) {
+ return;
+ }
+ // Supposing, that runway visibility will always greter than 4 metres.
+ // I cannot imagine airport runway with visibility under 5 metres. :-)
+ $old_meters = $this->strings['meters'];
+ $this->strings['meters'] = ' metrov';
+ $ret = parent::parse_runway_group($runway_group);
+ $this->strings['meters'] = $old_meters;
+ return $ret;
+ }
+
function print_pretty_time($time)
{
$minutes_old = round((time() - $time)/60);
|