Make it possible to exclude Console.js and Lang/en.js for really small builds. r=bartvde (closes #2882)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10967 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -101,7 +101,7 @@ OpenLayers.Lang = {
|
||||
*/
|
||||
translate: function(key, context) {
|
||||
var dictionary = OpenLayers.Lang[OpenLayers.Lang.getCode()];
|
||||
var message = dictionary[key];
|
||||
var message = dictionary && dictionary[key];
|
||||
if(!message) {
|
||||
// Message not found, fall back to message key
|
||||
message = key;
|
||||
|
||||
Reference in New Issue
Block a user