Skip to content

Commit

Permalink
Internationalize disqus comments
Browse files Browse the repository at this point in the history
Fixes ckan#4
  • Loading branch information
jqnatividad committed Oct 18, 2014
1 parent f58504d commit a841206
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ckanext/disqus/templates/disqus_comments.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<div class="module-content disqus-comments">
<h3>Comments</h3>
<h3>{% trans %}Comments{% endtrans %}</h3>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ disqus_shortname }}';
var disqus_identifier = '{{ identifier }}';

var disqus_config = function () {
this.language = '{{ language }}';
};

/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
Expand Down
2 changes: 1 addition & 1 deletion ckanext/disqus/templates/disqus_recent.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="ckan-recent-comments">
<div id="recentcomments" class="dsq-widget">
<h2 class="dsq-widget-title">Recent Comments</h2>
<h2 class="dsq-widget-title">{% trans %}Recent Comments{% endtrans %}</h2>
<script type="text/javascript"
src="http://{{ disqus_shortname }}.disqus.com/recent_comments_widget.js?num_items={{ disqus_num_comments }}&amp;hide_avatars=0&amp;avatar_size=32&amp;excerpt_length=200"></script>
</div>
Expand Down

0 comments on commit a841206

Please sign in to comment.