rem: var jsLoc = tempLocale.replace('-', '_', 'g'); 
add: var jsLoc = tempLocale.replace(/-/g, '_'); 
context: dojo.i18n._requireLocalization = function(/*String*/moduleName, /*String*/bundleName, /*String?*/locale, /*String?*/availableFlatLocales){	// summary:	//	See dojo.requireLocalization()	//	// description:	//  Called by the bootstrap, but factored out so that it is only included in the build when needed.	dojo.i18n._preloadLocalizations();	var targetLocale = dojo.i18n.normalizeLocale(locale); 	var bundlePackage = [moduleName, "nls", bundleName].join(".");	// NOTE: 	//		When loading these resources, the packaging does not match what is	//		on disk.  This is an implementation detail, as this is just a	//		private data structure to hold the loaded resources.  e.g.	//		tests/hello/nls/en-us/salutations.js is loaded as the object	//		tests.hello.nls.salutations.en_us={...} The structure on disk is	//		intended to be most convenient for developers and translators, but	//		in memory it is more logical and efficient to store in a different	//		order.  Locales cannot use dashes, since the resulting path will	//		not evaluate as valid JS, so we translate them to underscores.		//Find the best-match locale to load if we have available flat locales.	var bestLocale = "";	if(availableFlatLocales){		var flatLocales = availableFlatLocales.split(",");		for(var i = 0; i < flatLocales.length; i++){			//Locale must match from start of string.			if(targetLocale.indexOf(flatLocales[i]) == 0){				if(flatLocales[i].length > bestLocale.length){					bestLocale = flatLocales[i];				}			}		}		if(!bestLocale){			bestLocale = "ROOT";		}			}	//See if the desired locale is already loaded.	var tempLocale = availableFlatLocales ? bestLocale : targetLocale;	var bundle = dojo._loadedModules[bundlePackage];	var localizedBundle = null;	if(bundle){		if(djConfig.localizationComplete && bundle._built){return;}		var jsLoc = tempLocale.replace('-', '_', 'g');		var translationPackage = bundlePackage+"."+jsLoc;		localizedBundle = dojo._loadedModules[translationPackage];	}	if(!localizedBundle){		bundle = dojo["provide"](bundlePackage);		var syms = dojo._getModuleSymbols(moduleName);		var modpath = syms.concat("nls").join("/");		var parent;		dojo.i18n._searchLocalePath(tempLocale, availableFlatLocales, function(loc){			var jsLoc = loc.replace('-', '_', 'g');			var translationPackage = bundlePackage + "." + jsLoc;			var loaded = false;			if(!dojo._loadedModules[translationPackage]){				// Mark loaded whether it's found or not, so that further load attempts will not be made				dojo["provide"](translationPackage);				var module = [modpath];				if(loc != "ROOT"){module.push(loc);}				module.push(bundleName);				var filespec = module.join("/") + '.js';				loaded = dojo._loadPath(filespec, null, function(hash){					// Use singleton with prototype to point to parent bundle, then mix-in result from loadPath					var clazz = function(){};					clazz.prototype = parent;					bundle[jsLoc] = new clazz();					for(var j in hash){ bundle[jsLoc][j] = hash[j]; }				});			}else{				loaded = true;			}			if(loaded && bundle[jsLoc]){				parent = bundle[jsLoc];			}else{				bundle[jsLoc] = parent;			}						if(availableFlatLocales){				//Stop the locale path searching if we know the availableFlatLocales, since				//the first call to this function will load the only bundle that is needed.				return true;			}		});	}	//Save the best locale bundle as the target locale bundle when we know the	//the available bundles.	if(availableFlatLocales && targetLocale != bestLocale){		bundle[targetLocale.replace('-', '_', 'g')] = bundle[bestLocale.replace('-', '_', 'g')];	}};
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/e7ed22c2e776e25892a80e4ea89cd27d7646de5f/i18n.js/clean/i18n.js