includes/clientside/static/l10n.js
changeset 334 c72b545f1304
parent 210 2b283402e4e4
child 335 67bd3121a12e
equal deleted inserted replaced
333:32429702305e 334:c72b545f1304
    16     var string_name = string_id.substr(string_id.indexOf('_') + 1);
    16     var string_name = string_id.substr(string_id.indexOf('_') + 1);
    17     if ( typeof(this.strings[catname]) != 'object' )
    17     if ( typeof(this.strings[catname]) != 'object' )
    18       return string_id;
    18       return string_id;
    19     if ( typeof(this.strings[catname][string_name]) != 'string' )
    19     if ( typeof(this.strings[catname][string_name]) != 'string' )
    20       return string_id;
    20       return string_id;
    21     return '[LJS] ' + this.perform_subst(this.strings[catname][string_name], subst);
    21     return this.perform_subst(this.strings[catname][string_name], subst) + '**';
    22   }
    22   }
    23   
    23   
    24   this.perform_subst = function(str, subst)
    24   this.perform_subst = function(str, subst)
    25   {
    25   {
    26     // var this_regex = /%this\.([a-z0-9_]+)%/;
    26     // var this_regex = /%this\.([a-z0-9_]+)%/;