Convert dictionary code to lowercase before comparison - bug 358024
git-svn-id: svn://10.0.0.236/trunk@214175 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fc299cdb41
commit
4b5fd59350
@ -7,7 +7,7 @@ function writeCurrentDictionary()
|
||||
var asunder = paramStrings[i].split("=");
|
||||
params[asunder[0]] = asunder[1];
|
||||
}
|
||||
var lang = params.lang || 'en-US';
|
||||
var lang = (params.lang || 'en-US').toLowerCase();
|
||||
|
||||
if (!(lang in allDictionaries)) {
|
||||
// Try just the language without region.
|
||||
@ -67,6 +67,8 @@ var allDictionaries = { };
|
||||
|
||||
function addDictionary(code, link, size)
|
||||
{
|
||||
code = code.toLowerCase();
|
||||
|
||||
// Sometimes, there is more than one code in the name, yay
|
||||
if (code.indexOf("_") != -1) {
|
||||
var codes = code.split("_");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user