mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
FB_CALLLIST: fix not working language attribute when no-table-header is activated (Forum: #47098)
git-svn-id: https://svn.fhem.de/fhem/trunk@10579 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a8c9c41f3a
commit
aaf5099f05
@ -592,6 +592,15 @@ sub FB_CALLLIST_list2html($;$)
|
||||
|
||||
my $old_locale = setlocale(LC_ALL);
|
||||
|
||||
if(AttrVal($name, "language", "en") eq "de")
|
||||
{
|
||||
setlocale(LC_ALL, "de_DE.utf8");
|
||||
}
|
||||
else
|
||||
{
|
||||
setlocale(LC_ALL, "en_US.utf8");
|
||||
}
|
||||
|
||||
my $ret .= "<table>";
|
||||
|
||||
if(AttrVal($name, "no-heading", "0") eq "0" and defined($FW_ME) and defined($FW_subdir))
|
||||
@ -960,8 +969,6 @@ sub FB_CALLLIST_returnTableHeader($)
|
||||
|
||||
if(AttrVal($name, "language", "en") eq "de")
|
||||
{
|
||||
setlocale(LC_ALL, "de_DE.utf8");
|
||||
|
||||
$line = {
|
||||
row => "",
|
||||
state => "Status",
|
||||
@ -976,8 +983,6 @@ sub FB_CALLLIST_returnTableHeader($)
|
||||
}
|
||||
else
|
||||
{
|
||||
setlocale(LC_ALL, "en_US.utf8");
|
||||
|
||||
$line = {
|
||||
row => "",
|
||||
state => "State",
|
||||
|
Loading…
x
Reference in New Issue
Block a user