summaryrefslogtreecommitdiff
path: root/help3xsl/help2.js
diff options
context:
space:
mode:
Diffstat (limited to 'help3xsl/help2.js')
-rw-r--r--help3xsl/help2.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/help3xsl/help2.js b/help3xsl/help2.js
index aed610371b..15a744ddb7 100644
--- a/help3xsl/help2.js
+++ b/help3xsl/help2.js
@@ -137,4 +137,16 @@ function existingLang(lang) {
return 'en-US';
}
+
+function setupLanguages(target, page) {
+ var langNav = document.getElementById('langs-nav');
+ if (!langNav.classList.contains('loaded')) {
+ var html = '';
+ languagesSet.forEach(lang => {
+ html += '<a href="' + target + lang + page + '">' + lang + '</a>';
+ });
+ langNav.innerHTML = html;
+ langNav.classList.add('loaded');
+ }
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */