[Phpfreechat-svn] SF.net SVN: phpfreechat: [546] trunk/src/pfci18n.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-07 20:11:19
|
Revision: 546 Author: kerphi Date: 2006-06-05 07:10:14 -0700 (Mon, 05 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=546&view=rev Log Message: ----------- Bug fix: the files to translate list was incomplete for current 1.x branche Modified Paths: -------------- trunk/src/pfci18n.class.php Modified: trunk/src/pfci18n.class.php =================================================================== --- trunk/src/pfci18n.class.php 2006-06-05 14:08:56 UTC (rev 545) +++ trunk/src/pfci18n.class.php 2006-06-05 14:10:14 UTC (rev 546) @@ -119,6 +119,9 @@ { $files = array(); $files = array_merge($files, glob(dirname(__FILE__)."/*.php")); + $files = array_merge($files, glob(dirname(__FILE__)."/commands/*.php")); + $files = array_merge($files, glob(dirname(__FILE__)."/containers/*.php")); + $files = array_merge($files, glob(dirname(__FILE__)."/proxys/*.php")); $files = array_merge($files, glob(dirname(__FILE__)."/../themes/default/templates/*.php")); $res = array(); @@ -153,8 +156,9 @@ $new_content = ""; foreach($res as $str => $com) { - // echo "str=".$str."\n"; - if (preg_match("/".preg_quote($str)."/", $old_content) == 0) + //echo "com=".$com."\n"; + //echo "str=".$str."\n"; + if (preg_match("/".preg_quote($str,'/')."/", $old_content) == 0) $new_content .= $com."\n\$GLOBALS[\"i18n\"][\"".$str."\"] = \"\";\n\n"; } $content = "<?php" . $old_content . $new_content . "?>"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |