From d8343b5432445c9bb77e961d118cac574df0da7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= <luca.boesch@bfh.ch> Date: Mon, 21 May 2018 22:55:20 +0200 Subject: [PATCH] MDL-46344 outputrenderers: Localize 'This page is'. --- lang/en/admin.php | 1 + lib/outputrenderers.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/en/admin.php b/lang/en/admin.php index 17be075646c..aa79e8e6f78 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -825,6 +825,7 @@ $string['order3'] = 'Third'; $string['order4'] = 'Fourth'; $string['outgoingmailconfig'] = 'Outgoing mail configuration'; $string['overridetossl'] = 'HTTPS for logins has now been deprecated. This instance is now forced to SSL. To remedy this warning change your wwwroot in config.php to https://'; +$string['pageinfodebugsummary'] = 'This page is: {$a}'; $string['passwordchangelogout'] = 'Log out after password change'; $string['passwordchangelogout_desc'] = 'If enabled, when a password is changed, all browser sessions are terminated, apart from the one in which the new password is specified. (This setting does not affect password changes via bulk user upload.)'; $string['passwordchangetokendeletion'] = 'Remove web service access tokens after password change'; diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 4be95a1c603..5b503743dc6 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -781,7 +781,8 @@ class core_renderer extends renderer_base { $output .= $this->theme_switch_links(); if (!empty($CFG->debugpageinfo)) { - $output .= '<div class="performanceinfo pageinfo">This page is: ' . $this->page->debug_summary() . '</div>'; + $output .= '<div class="performanceinfo pageinfo">' . get_string('pageinfodebugsummary', 'core_admin', + $this->page->debug_summary()) . '</div>'; } if (debugging(null, DEBUG_DEVELOPER) and has_capability('moodle/site:config', context_system::instance())) { // Only in developer mode // Add link to profiling report if necessary