DataObjects/Core_template.php
authorAlan Knowles <alan@roojs.com>
Fri, 4 Dec 2020 04:42:33 +0000 (12:42 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 4 Dec 2020 04:42:33 +0000 (12:42 +0800)
DataObjects/Core_template.php

index 6b0b3d7..f62d09d 100644 (file)
@@ -437,7 +437,7 @@ WHERE (
         }
         $lang = $lang ? $lang : $ff->locale;
         $fdir = "{$compileDir}/{$lang}/LC_MESSAGES";
-        $fname = "{$fdir}/{$clsname}.mo";
+        $fname = "{$fdir}/{$clsname}.po";
         
         var_dump( "
                setlocale(LC_MESSAGES, $lang); 
@@ -479,7 +479,7 @@ WHERE (
         }
         
         require_once 'File/Gettext.php';
-        $gt = File_Gettext::factory('MO', $fname);
+        $gt = File_Gettext::factory('PO', $fname);
         $gt->fromArray(
             
             array(