Fixed admin and nucleus translations defaulting to English (#1855)

This commit is contained in:
Matias Griese
2017-02-09 12:49:13 +02:00
parent e73bf6de29
commit f79cb28732
2 changed files with 29 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@
- Fixed `Gantry 5` menu item in the Grav Admin Panel is not being highlighted (#1840), requires Admin plugin v1.2.11
- Fixed issue with Production / Development Toggle (#1846)
- Fixed missing `bottom` JS position on default page types
- Fixed admin and nucleus translations defaulting to English (#1855)
# 5.4.6
## 26/01/2017
@@ -0,0 +1,28 @@
<?php
/**
* @package Gantry5
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC
* @license MIT
*
* http://opensource.org/licenses/MIT
*/
namespace Gantry\Framework;
use Gantry\Component\Translator\Translator as BaseTranslator;
use Grav\Common\Grav;
use Grav\Common\Language\Language;
class Translator extends BaseTranslator
{
public function __construct()
{
/** @var Language $language */
$language = Grav::instance()['language'];
if ($language->enabled()) {
$this->active($language->getLanguage());
}
}
}