Skip to content

Commit

Permalink
Fixing message translation problem for device messages
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Jan 15, 2019
1 parent 48ace31 commit ff82325
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/skins/modern/accountstatus/accountstatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@
break;
}

$oldDomain = $Gui->langObject->setTextDomain('devices');
$dev = new \core\DeviceFactory($statusInfo['OS']['device']);
$Gui->langObject->setTextDomain($oldDomain);
$dev->device->calculatePreferredEapType([new \core\common\EAP(\core\common\EAP::EAPTYPE_SILVERBULLET)]);
if ($dev->device->selectedEap == []) {
echo "<p>" . sprintf(_("Unfortunately, the operating system your device uses (%s) is currently not supported for hosted end-user accounts. You can visit this page with a supported operating system later; the invitation link has not been used up yet."), $statusInfo['OS']['display']) . "</p>";
Expand Down

0 comments on commit ff82325

Please sign in to comment.