MCPcopy Create free account
hub / github.com/apache/cloudstack / getCurrentLanguage

Function getCurrentLanguage

systemvm/agent/js/ajaxviewer.js:49–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49function getCurrentLanguage() {
50 if(acceptLanguages) {
51 var tokens = acceptLanguages.split(',');
52 if(tokens.length > 0)
53 return tokens[0];
54
55 return "en-us";
56 } else {
57 return "en-us";
58 }
59}
60
61/////////////////////////////////////////////////////////////////////////////
62// class KeyboardMapper

Callers 1

ajaxviewer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected