equal
deleted
inserted
replaced
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_]+)%/; |