mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-11-27 06:38:40 -05:00
Merge pull request #100 from thnilsen/issue64
Fix for translation when selecting a different language Fixes #64 #80 #84
This commit is contained in:
commit
45a90aef71
@ -163,7 +163,7 @@ class Service implements JsonSerializable
|
||||
?>
|
||||
<div class="item clearfix">
|
||||
<div class="service"><?php echo $this->name; ?></div>
|
||||
<?php if ($this->status!=-1){?><div class="status <?php echo $classes[$this->status];?>"><?php echo $statuses[$this->status];?></div><?php }?>
|
||||
<?php if ($this->status!=-1){?><div class="status <?php echo $classes[$this->status];?>"><?php echo _($statuses[$this->status]);?></div><?php }?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
@ -27,6 +27,7 @@ if (!isset($_SESSION['locale'])||isset($_GET['lang']))
|
||||
$_SESSION['locale'] = $best_match;
|
||||
}
|
||||
|
||||
putenv('LANGUAGE='.$_SESSION['locale'].'.UTF-8');
|
||||
setlocale(LC_ALL, $_SESSION['locale'].".UTF-8");
|
||||
setlocale(LC_MESSAGES, $_SESSION['locale'].".UTF-8");
|
||||
bindtextdomain("server-status", __DIR__ . "/locale/");
|
||||
|
Loading…
Reference in New Issue
Block a user