Author: dr
Date: Mon Dec  3 16:20:20 2007
New Revision: 6904

Log:
- Add a few fallback locales.
#- The test still fails if it is run after Template/tests/template_test.php.

Modified:
    trunk/Template/tests/locale_test.php

Modified: trunk/Template/tests/locale_test.php
==============================================================================
--- trunk/Template/tests/locale_test.php [iso-8859-1] (original)
+++ trunk/Template/tests/locale_test.php [iso-8859-1] Mon Dec  3 16:20:20 2007
@@ -45,14 +45,14 @@
 
     public function testFloats()
     {
-        $this->setLocale( LC_ALL, 'de_DE' );
+        $this->setLocale( LC_ALL, 'de_DE', 'de_DE.UTF-8', 'deu', 'german' );
 
         $template = new ezcTemplate();
         $file =  "float.ezt";
         
         // The number 3.14 should not be translated to 3,14. The array size 
should be one, not two.
         file_put_contents( $this->templatePath . "/". $file, 
"{array_count(array(3.14))}" );
-        $this->assertEquals(1, $template->process( $file), "Number 3.14 is 
internally translated to 3,14 when the de_DE locale is used.");
+        $this->assertEquals(1, $template->process( $file ), "Number 3.14 is 
internally translated to 3,14 when the de_DE locale is used.");
     }
 }
 ?>


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to