Ticket #24552: gotranstags.py

File gotranstags.py, 212 bytes (added by brain-trainer, 9 years ago)

This is a my code for this template tag

Line 
1# encoding: utf-8
2
3from django import template
4import goslate
5
6register = template.Library()
7
8@register.simple_tag
9def gotrans(string, lang):
10 gs = goslate.Goslate()
11 return gs.translate(string, str(lang))
Back to Top