Merge remote-tracking branch 'origin/QA_4_7' into QA_4_7

This commit is contained in:
Weblate 2018-02-12 16:05:08 +01:00
commit 96e51bc76a
2 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,7 @@
"ext-pcre": "*",
"ext-json": "*",
"phpmyadmin/sql-parser": "^4.2.3",
"phpmyadmin/motranslator": "^3.4",
"phpmyadmin/motranslator": "^4.0",
"phpmyadmin/shapefile": "^2.0",
"tecnickcom/tcpdf": "^6.2",
"phpseclib/phpseclib": "^2.0",

View File

@ -174,6 +174,10 @@ class Language
_setlocale(0, $this->code);
_bindtextdomain('phpmyadmin', LOCALE_PATH);
_textdomain('phpmyadmin');
// Set PHP locale as well
if (function_exists('setlocale')) {
setlocale(0, $this->code);
}
/* Text direction for language */
if ($this->isRTL()) {