jenkins-bot has submitted this change and it was merged.

Change subject: Make PLURAL support on 
foxway-php-fatal-error-max-execution-time explicit
......................................................................


Make PLURAL support on foxway-php-fatal-error-max-execution-time explicit

<https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Foxway-php-fatal-error-max-execution-time/en>

Change-Id: If741384ef357a1f739b12b136b1c032873f973cc
---
M Foxway.body.php
M Foxway.i18n.php
2 files changed, 7 insertions(+), 2 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Foxway.body.php b/Foxway.body.php
index 2ed4c59..62f63c3 100644
--- a/Foxway.body.php
+++ b/Foxway.body.php
@@ -91,7 +91,12 @@
                        return Html::element( 'span', array('class'=>'error'), 
wfMessage('foxway-disabled-for-namespace', 
$frame->getTitle()->getNsText())->escaped() );
                }
                if( $wgFoxway_max_execution_time !== false && self::$time >= 
$wgFoxway_max_execution_time) {
-                       return Html::element( 'span', array('class'=>'error'), 
wfMessage('foxway-php-fatal-error-max-execution-time', 
$wgFoxway_max_execution_time, $frame->getTitle()->getPrefixedText())->escaped() 
);
+                       return Html::element( 'span', array('class'=>'error'),
+                               wfMessage( 
'foxway-php-fatal-error-max-execution-time' )
+                                       ->numParams( 
$wgFoxway_max_execution_time )
+                                       ->params( 
$frame->getTitle()->getPrefixedText() )
+                                       ->text()
+                       );
                }
                return false;
        }
diff --git a/Foxway.i18n.php b/Foxway.i18n.php
index 4426285..da95697 100644
--- a/Foxway.i18n.php
+++ b/Foxway.i18n.php
@@ -19,7 +19,7 @@
        'foxway-error-no-ending-matching-delimiter' => 'No ending matching 
delimiter "$1" found',
        'foxway-error-unknown-modifier' => 'Unknown modifier "$1"',
        'foxway-php-fatal-error-cannot-break-continue' => 'PHP fatal error: 
Cannot break/continue $1 levels on page $2 line $3.',
-       'foxway-php-fatal-error-max-execution-time' => 'PHP fatal error: 
Maximum execution time of $1 second exceeded on page $2.',
+       'foxway-php-fatal-error-max-execution-time' => 'PHP fatal error: 
Maximum execution time of {{PLURAL:$1|$1 second|$1 seconds}} exceeded on page 
$2.',
        'foxway-php-fatal-error-max-execution-time-scope' => 'PHP fatal error: 
Maximum execution time of $1 second exceeded on page $2 line $3.',
        'foxway-php-fatal-error-undefined-function' => 'PHP fatal error: Call 
to undefined function $1() on page $2 line $3.',
        'foxway-php-not-variable-passed-by-reference' => 'PHP fatal error: Only 
variables can be passed by reference, function $1() on page $2 line $3.',

-- 
To view, visit https://gerrit.wikimedia.org/r/78312
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If741384ef357a1f739b12b136b1c032873f973cc
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Foxway
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>
Gerrit-Reviewer: Nemo bis <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Pastakhov <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to