mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-02 13:50:48 +01:00
Fix getting strings translated when the default lang is != 'en' and does not contain them
This commit is contained in:
@@ -814,6 +814,11 @@ class Admin
|
||||
$translation = $this->grav['language']->getTranslation($language, $lookup, $array_support);
|
||||
}
|
||||
|
||||
if (!$translation) {
|
||||
$language = 'en';
|
||||
$translation = $this->grav['language']->getTranslation($language, $lookup, $array_support);
|
||||
}
|
||||
|
||||
if ($translation) {
|
||||
if (count($args) >= 1) {
|
||||
return vsprintf($translation, $args);
|
||||
|
||||
Reference in New Issue
Block a user