mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Fixed admin and nucleus translations defaulting to English (#1855)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user