mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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/fhem@10579 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
46699f4d2e
commit
65ef1b33a8
@ -592,6 +592,15 @@ sub FB_CALLLIST_list2html($;$)
|
|||||||
|
|
||||||
my $old_locale = setlocale(LC_ALL);
|
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>";
|
my $ret .= "<table>";
|
||||||
|
|
||||||
if(AttrVal($name, "no-heading", "0") eq "0" and defined($FW_ME) and defined($FW_subdir))
|
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")
|
if(AttrVal($name, "language", "en") eq "de")
|
||||||
{
|
{
|
||||||
setlocale(LC_ALL, "de_DE.utf8");
|
|
||||||
|
|
||||||
$line = {
|
$line = {
|
||||||
row => "",
|
row => "",
|
||||||
state => "Status",
|
state => "Status",
|
||||||
@ -976,8 +983,6 @@ sub FB_CALLLIST_returnTableHeader($)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
setlocale(LC_ALL, "en_US.utf8");
|
|
||||||
|
|
||||||
$line = {
|
$line = {
|
||||||
row => "",
|
row => "",
|
||||||
state => "State",
|
state => "State",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user