(bug 39771) Regression in Ie349afa5 broke plurals in JavaScript
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Wed, 29 Aug 2012 20:30:15 +0000 (20:30 +0000)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Wed, 29 Aug 2012 20:30:15 +0000 (20:30 +0000)
Change-Id: Iee4e3bdca0e72292d6d431703f0f589653f68f64

includes/MessageBlobStore.php

index d112b25..34014e1 100644 (file)
@@ -299,7 +299,7 @@ class MessageBlobStore {
         */
        private static function reencodeBlob( $blob, $key, $lang ) {
                $decoded = FormatJson::decode( $blob, true );
-               $decoded[$key] = wfMessage( $key )->inLanguage( $lang )->text();
+               $decoded[$key] = wfMessage( $key )->inLanguage( $lang )->plain();
 
                return FormatJson::encode( (object)$decoded );
        }
@@ -353,7 +353,7 @@ class MessageBlobStore {
                $messages = array();
 
                foreach ( $module->getMessages() as $key ) {
-                       $messages[$key] = wfMessage( $key )->inLanguage( $lang )->text();
+                       $messages[$key] = wfMessage( $key )->inLanguage( $lang )->plain();
                }
 
                return FormatJson::encode( (object)$messages );