Added i18n to my javascript changes as per trac #417
authorEmily O'Leary <lotusecho@ThinkLotus>
Mon, 25 Mar 2013 02:16:12 +0000 (22:16 -0400)
committerRodney Ewing <ewing.rj@gmail.com>
Wed, 7 Aug 2013 23:33:09 +0000 (16:33 -0700)
mediagoblin/static/js/comment_show.js

index cb69fccd2032c8cc43c3ff3488e7cf1d6f96c911..35183beb1811234f81c60e4cd3f5451bfc55cbdd 100644 (file)
@@ -22,7 +22,7 @@ function previewComment(){
                content = $('#comment_content').val();
                $.getJSON($('#previewURL').val(),JSON.stringify($('#comment_content').val()),
                function(data){
-                       $('#comment_preview').replaceWith("<div id=comment_preview><h3>Comment Preview</h3><br />" + decodeURIComponent(data) + 
+                       $('#comment_preview').replaceWith("<div id=comment_preview><h3>{% trans -%}Comment Preview{%- endtrans %}</h3><br />" + decodeURIComponent(data) + 
                        "<hr style='border: 1px solid #333;' /></div>");
                });
        }