Fixed a problem with minibar when invoked from gfse or the syntax editor

Minibar needs js/langcode.js now, so need to include it in gfse/index.html
and syntax-exitor/editor.html too.
This commit is contained in:
hallgren
2015-05-21 08:00:49 +00:00
parent d4a3cc8228
commit 602b6fffae
4 changed files with 40 additions and 29 deletions

View File

@@ -571,17 +571,20 @@ function quiz_button(g,err_ind) {
}
function lang(code,name) { return { code:code, name:name} }
function lang1(name) {
var ws=name.split("/");
return ws.length==1 ? lang(name.substr(0,3),name) : lang(ws[0],ws[1]);
}
// Language names and 3-letter ISO-639 codes
// See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
var languages =
map(lang1,"Amharic Arabic Bulgarian Catalan Chinese Danish Dutch English Estonian Finnish French German Greek Hindi Ina/Interlingua Italian Jpn/Japanese Latin Mlt/Maltese Mongolian Norwegian Pes/Persian Polish Pnb/Punjabi Ron/Romanian Russian Snd/Sindhi Spanish Swedish Thai Turkish Urdu".split(" "));
languages.push(lang("Other","Other"));
function() {
function lang(code,name) { return { code:code, name:name} }
function lang1(name) {
var ws=name.split("/");
return ws.length==1 ? lang(name.substr(0,3),name) : lang(ws[0],ws[1]);
}
// Language names and 3-letter ISO-639 codes
// See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
var languages=map(lang1,"Amharic Arabic Bulgarian Catalan Chinese Danish Dutch English Estonian Finnish French German Greek Hindi Ina/Interlingua Italian Jpn/Japanese Latin Mlt/Maltese Mongolian Norwegian Pes/Persian Polish Pnb/Punjabi Ron/Romanian Russian Snd/Sindhi Spanish Swedish Thai Turkish Urdu".split(" "));
languages.push(lang("Other","Other"));
return languages
}()
var langname={};
for(var i in languages)