projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
486460e
)
add english language link again
author
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 25 Jun 2013 13:36:31 +0000
(13:36 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 25 Jun 2013 13:36:31 +0000
(13:36 +0000)
experiments/spclient/mkws.js
patch
|
blob
|
history
diff --git
a/experiments/spclient/mkws.js
b/experiments/spclient/mkws.js
index
306efc0
..
cf2c7dd
100644
(file)
--- a/
experiments/spclient/mkws.js
+++ b/
experiments/spclient/mkws.js
@@
-646,13
+646,15
@@
function mkws_html_lang(mkws_config) {
hash[lang_display[i]] = 1;
}
- if (hash[lang_default] == 1)
- list.push(lang_default);
-
for (var k in mkws_locale_lang) {
- if (hash[k] == 1 || lang_display.length == 0)
+ if (hash[k] == 1)
list.push(k);
}
+
+ // add english link
+ if (lang_display.length == 0 || hash[lang_default] == 1)
+ list.push(lang_default);
+
debug("Language menu for: " + list.join(", "));
/* the HTML part */