|
|
@ -106,7 +106,10 @@ var abp = abp || {}; |
|
|
var value = resource.texts[key]; |
|
|
var value = resource.texts[key]; |
|
|
if (value === undefined) { |
|
|
if (value === undefined) { |
|
|
for (var i = 0; i < resource.baseResources.length; i++){ |
|
|
for (var i = 0; i < resource.baseResources.length; i++){ |
|
|
var result = abp.localization.internal.localize(key, resource.baseResources[i]); |
|
|
var basedArgument = Array.prototype.slice.call(arguments, 0); |
|
|
|
|
|
basedArgument[1] = resource.baseResources[i]; |
|
|
|
|
|
|
|
|
|
|
|
var result = abp.localization.internal.localize.apply(this, basedArgument); |
|
|
if (result.found){ |
|
|
if (result.found){ |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
@ -139,7 +142,7 @@ var abp = abp || {}; |
|
|
return key; |
|
|
return key; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return abp.localization.internal.localize(key, sourceName).value; |
|
|
return abp.localization.internal.localize.apply(this, arguments).value; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
abp.localization.isLocalized = function (key, sourceName) { |
|
|
abp.localization.isLocalized = function (key, sourceName) { |
|
|
|