Fix a problem with getString when the string property is a sub-property.

This commit is contained in:
Heath Nielson 2013-04-03 12:33:47 -06:00
parent c8cc050abf
commit 530e445756

View File

@ -45,12 +45,14 @@ $.extend( $, {
var props = prop.split('.'),
string = null,
args = arguments,
container = I18N,
i;
for ( i = 0; i < props.length; i++ ) {
for ( i = 0; i < props.length-1; i++ ) {
// in case not a subproperty
string = I18N[ props[ i ] ] || {};
container = container[ props[ i ] ] || {};
}
string = container[ props[ i ] ];
if ( typeof( string ) != "string" ) {
string = "";