Index: branches/ArticleCreationWorkflow/phase3/resources/jquery/jquery.localize.js |
— | — | @@ -45,8 +45,15 @@ |
46 | 46 | .find( 'msg,html\\:msg' ) |
47 | 47 | .each( function() { |
48 | 48 | var $el = $(this); |
| 49 | + var msgText = msg( $el.attr( 'key' ) ); |
| 50 | + |
| 51 | + if ( $el.attr('raw') ) { |
| 52 | + $el.html(msgText); |
| 53 | + } else { |
| 54 | + $el.text(msgText); |
| 55 | + } |
| 56 | + |
49 | 57 | $el |
50 | | - .text( msg( $el.attr( 'key' ) ) ) |
51 | 58 | .replaceWith( $el.html() ); |
52 | 59 | } ) |
53 | 60 | .end() |