includes/clientside/static/l10n.js
changeset 387 92664d2efab8
parent 335 67bd3121a12e
child 391 85f91037cd4f
equal deleted inserted replaced
382:2ccb55995aef 387:92664d2efab8
    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 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_]+)%/;