2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

contrib/commandref_join.pl: add language link for each module (Forum #80727)

git-svn-id: https://svn.fhem.de/fhem/trunk@15590 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-12-11 21:18:56 +00:00
parent bdeb59f3d0
commit 38f5d83e48

View File

@ -150,6 +150,13 @@ generateModuleCommandref($$;$$)
} elsif(!$skip) {
print $fh $l if($fh);
if($l =~ m,<h3>$mod</h3>,i && $fh) {
print $fh "<div class='langLinks'>".join(" ", map {
$_ eq $lang ? $_ :
"<a href='commandref".($_ eq "EN" ? "":"_$_").".html#$mod'>$_</a>"
} @lang) . "</div>\n";
}
$docCount++;
$hasLink = ($l =~ m/<a name="$mod"/) if(!$hasLink);
foreach $tag (TAGS) {