Update of /cvsroot/phpweather/phpweather/output
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4572
Modified Files:
pw_text_pt.php
Log Message:
The class actually produced Spanish output! Why wasn't this discovered
earlier!? Anyway, it should be fixed now.
Index: pw_text_pt.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/output/pw_text_pt.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- pw_text_pt.php 18 Jan 2005 17:29:42 -0000 1.2
+++ pw_text_pt.php 18 Apr 2005 16:22:35 -0000 1.3
@@ -18,6 +18,11 @@
* @param array This is just passed on to pw_text().
*/
function pw_text_pt($weather, $input = array()) {
+ /* We run the parent constructor. This will define Spanish
+ * strings for the $this->strings array, so we have to do this
+ * first, and then override the contents where appropriate. */
+ $this->pw_text_es($weather, $input);
+
$this->strings['charset'] = 'ISO-8859-1';
$this->strings['no_data'] = 'Dado não disponiveis para %s%s%s.';
$this->strings['list_sentences_and'] = ' e ';
@@ -167,8 +172,6 @@
$this->strings['runway_visibility'] = ' A visibilidade era ';
$this->strings['runway_for_runway'] = ' para a estrada ';
- /* We run the parent constructor */
- $this->pw_text($weather, $input);
}
}
|