diff options
Diffstat (limited to 'en/doc/doc.php')
-rwxr-xr-x[-rw-r--r--] | en/doc/doc.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/en/doc/doc.php b/en/doc/doc.php index 488e31d96..44205c2b1 100644..100755 --- a/en/doc/doc.php +++ b/en/doc/doc.php @@ -125,12 +125,12 @@ function doc_list($documentation_name, $type, $version) if ($your_language_present) { $text_your_language = '<span style="font-weight:bold">' . _r('Documentation in your language:') . '</span><br/>'; if ($other_languages_present) { - $text_others = '<a class="btn btn-outline-primary" data-toggle="collapse" href="#table-'.$name.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'">' . _r('Other languages:') . ' ↘ </a>'; + $text_others = '<a class="btn btn-outline-primary" data-toggle="collapse" href="#table-'.$name.'-'.$version.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'-'.$version.'">' . _r('Other languages:') . ' ↘ </a>'; } $table .= sprintf("\t<caption class=\"caption-top\">%s</caption>" . PHP_EOL . "\t<thead><tr><th class=\"border-0\">%s</th></tr></thead>" . PHP_EOL . - '<tbody id="table-%s">' . PHP_EOL , - $your_language, $text_others, $name); + '<tbody id="table-%s-%s">' . PHP_EOL , + $your_language, $text_others, $name, $version); } else { foreach($documentation[$type] as $single_version => $all_languages) { if($single_version < $version && in_array($link_locale, $all_languages)) { @@ -144,9 +144,9 @@ function doc_list($documentation_name, $type, $version) } $text_your_language = _r('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>'; $table .= sprintf("\t<caption class=\"caption-top\">%s<br/>" . PHP_EOL . - "\t%s<a class=\"btn btn-outline-primary\" data-toggle=\"collapse\" href=\"#table-$name\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name\"> ↘ </a></caption>" . PHP_EOL . '%s' . - "\t<tbody id=table-%s>" . PHP_EOL , - '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before, $name); + "\t%s<a class=\"btn btn-outline-primary\" data-toggle=\"collapse\" href=\"#table-$name-$version\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name-$version\"> ↘ </a></caption>" . PHP_EOL . '%s' . + "\t<tbody id=table-%s-%s>" . PHP_EOL , + '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before, $name, $version); } foreach ($others as $other_languages) { $table .= sprintf("\t\t<tr><td>%s</td></tr>" . PHP_EOL, $other_languages); |