Skip to content

Commit a176b85

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents a7a7490 + e62995b commit a176b85

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ phpMyAdmin - ChangeLog
1414
- issue #17271 Fix database names not showing on Processes tab
1515
- issue #17424 Fix export limit size calculation
1616
- issue #17366 Fix refresh rate popup on Monitor page
17+
- issue #17577 Fix monitor charts size on RTL languages
1718

1819
5.2.0 (2022-05-10)
1920
- issue #16521 Upgrade Bootstrap to version 5

js/src/server/status/monitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ AJAX.registerOnload('server/status/monitor.js', function () {
11061106
var windowWidth = $(window).width();
11071107

11081108
if (windowWidth > 768) {
1109-
wdt = (panelWidth - monitorSettings.columns * chartSpacing.width) / monitorSettings.columns;
1109+
wdt = (panelWidth - monitorSettings.columns * Math.abs(chartSpacing.width)) / monitorSettings.columns;
11101110
}
11111111

11121112
chartSize = {

libraries/classes/Core.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public static function getPHPDocLink(string $target): string
160160
/* List of PHP documentation translations */
161161
$php_doc_languages = [
162162
'pt_BR',
163-
'zh',
163+
'zh_CN',
164164
'fr',
165165
'de',
166166
'ja',
@@ -171,7 +171,11 @@ public static function getPHPDocLink(string $target): string
171171

172172
$lang = 'en';
173173
if (isset($GLOBALS['lang']) && in_array($GLOBALS['lang'], $php_doc_languages)) {
174-
$lang = $GLOBALS['lang'];
174+
if ($GLOBALS['lang'] === 'zh_CN') {
175+
$lang = 'zh';
176+
} else {
177+
$lang = $GLOBALS['lang'];
178+
}
175179
}
176180

177181
return self::linkURL('https://www.php.net/manual/' . $lang . '/' . $target);

0 commit comments

Comments
 (0)