~panosl/+junk/facebook_comments

« back to all changes in this revision

Viewing changes to facebook_comments/templatetags/fb_comments.py

  • Committer: Shu Zomg Chen
  • Date: 2011-12-23 20:56:17 UTC
  • Revision ID: hg-v1:e3947e65bf40f51a1d3573fadef16589fbeff99e
plugin uses locale now to fetch appropriate facebook comment box, thanks to bitbucket.org/panosl

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from django import template
2
 
from django.conf import settings
 
2
from facebook_comments.conf import settings
3
3
 
4
4
register = template.Library()
5
5
 
53
53
                c = {'opts':kwargs}
54
54
                for i in self.args:
55
55
                        c[i] = True
 
56
                c['locale'] = settings.LOCALE
56
57
                return t.render(template.Context(c))
57
58
 
58
59
@register.tag