http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69106

Revision: 69106
Author:   siebrand
Date:     2010-07-06 19:35:16 +0000 (Tue, 06 Jul 2010)

Log Message:
-----------
Use mangler and add FIXME for missing author list

Modified Paths:
--------------
    trunk/extensions/Translate/FFS.php

Modified: trunk/extensions/Translate/FFS.php
===================================================================
--- trunk/extensions/Translate/FFS.php  2010-07-06 19:06:44 UTC (rev 69105)
+++ trunk/extensions/Translate/FFS.php  2010-07-06 19:35:16 UTC (rev 69106)
@@ -364,7 +364,6 @@
 }
 
 abstract class JavaScriptFFS extends SimpleFFS {
-
        /**
         * Message keys format.
         */
@@ -381,7 +380,6 @@
        abstract protected function footer();
 
        public function readFromVariable( $data ) {
-
                /* Pre-processing */
 
                // Find the start and end of the data section (enclosed in 
curly braces).
@@ -434,9 +432,13 @@
                        $value = trim( $value, '\'"' );
 
                        // Unescape any JavaScript and append to message array.
-                       $messages[ $key ] = self::unescapeJsString( $value );
+                       $messages[$key] = self::unescapeJsString( $value );
                }
 
+               $messages = $this->group->getMangler()->mangle( $messages );
+
+               // FIXME: authors missing?
+
                return array( 'MESSAGES' => $messages );
        }
 



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to