https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113614

Revision: 113614
Author:   nikerabbit
Date:     2012-03-12 09:06:30 +0000 (Mon, 12 Mar 2012)
Log Message:
-----------
There might be newlines in the text, causing the plural itself to break into 
multiple lines

Modified Paths:
--------------
    trunk/extensions/Translate/ffs/Gettext.php

Modified: trunk/extensions/Translate/ffs/Gettext.php
===================================================================
--- trunk/extensions/Translate/ffs/Gettext.php  2012-03-12 06:31:24 UTC (rev 
113613)
+++ trunk/extensions/Translate/ffs/Gettext.php  2012-03-12 09:06:30 UTC (rev 
113614)
@@ -570,10 +570,10 @@
                $splitPlurals = array();
                for ( $i = 0; $i < $forms; $i++ ) {
                        $plurals = array();
-                       $match = preg_match_all( 
'/{{PLURAL:GETTEXT\|(.*)}}/iU', $text, $plurals );
+                       $match = preg_match_all( 
'/{{PLURAL:GETTEXT\|(.*)}}/iUs', $text, $plurals );
 
                        if ( !$match ) {
-                               throw new GettextPluralException( "Failed to 
parse plural for: $text" );
+                               throw new GettextPluralException( "Failed to 
find plural in: $text" );
                        }
 
                        $pluralForm = $text;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to