<s> from django . core . exceptions import ObjectDoesNotExist <EOL> from django . core . urlresolvers import reverse <EOL> from django . conf import settings <EOL> from django . shortcuts import get_object_or_404 <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django . contrib . syndication . feeds import Feed <EOL> from django . contrib . sites . models import Site <EOL> from models import Language <EOL> from transifex . txcommon . utils import key_sort <EOL> current_site = Site . objects . get_current ( ) <EOL> class AllLanguages ( Feed ) : <EOL> current_site = Site . objects . get_current ( ) <EOL> title = _ ( "<STR_LIT>" ) % { <EOL> '<STR_LIT>' : current_site . name } <EOL> link = current_site . domain <EOL> description = _ ( "<STR_LIT>" ) % current_site . name <EOL> def items ( self ) : <EOL> return Language . objects . all ( ) <EOL> def item_link ( self , item ) : <EOL> return reverse ( "<STR_LIT>" ) </s>
