mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-21 17:23:14 +03:00
Fix a problem with getString when the string property is a sub-property.
This commit is contained in:
parent
c8cc050abf
commit
530e445756
@ -45,12 +45,14 @@ $.extend( $, {
|
|||||||
var props = prop.split('.'),
|
var props = prop.split('.'),
|
||||||
string = null,
|
string = null,
|
||||||
args = arguments,
|
args = arguments,
|
||||||
|
container = I18N,
|
||||||
i;
|
i;
|
||||||
|
|
||||||
for ( i = 0; i < props.length; i++ ) {
|
for ( i = 0; i < props.length-1; i++ ) {
|
||||||
// in case not a subproperty
|
// in case not a subproperty
|
||||||
string = I18N[ props[ i ] ] || {};
|
container = container[ props[ i ] ] || {};
|
||||||
}
|
}
|
||||||
|
string = container[ props[ i ] ];
|
||||||
|
|
||||||
if ( typeof( string ) != "string" ) {
|
if ( typeof( string ) != "string" ) {
|
||||||
string = "";
|
string = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user