Commit 17989fa3 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents d24c09bd 236982bc
...@@ -460,7 +460,6 @@ class PoFormat(FileFormat): ...@@ -460,7 +460,6 @@ class PoFormat(FileFormat):
mounit.source = "" mounit.source = ""
else: else:
mounit.source = unit.source mounit.source = unit.source
context = unit.getcontext()
mounit.msgctxt = [unit.getcontext()] mounit.msgctxt = [unit.getcontext()]
mounit.target = unit.target mounit.target = unit.target
outputfile.addunit(mounit) outputfile.addunit(mounit)
......
...@@ -190,7 +190,6 @@ class ExportTest(ViewTestCase): ...@@ -190,7 +190,6 @@ class ExportTest(ViewTestCase):
kwargs=self.kw_translation kwargs=self.kw_translation
) )
) )
self.assertContains(response, 'Weblate Hello World 2012')
self.assertEqual( self.assertEqual(
response['Content-Disposition'], response['Content-Disposition'],
'attachment; filename=cs.mo' 'attachment; filename=cs.mo'
......
...@@ -313,16 +313,16 @@ def show_translation(request, project, subproject, lang): ...@@ -313,16 +313,16 @@ def show_translation(request, project, subproject, lang):
'search_form': search_form, 'search_form': search_form,
'review_form': review_form, 'review_form': review_form,
'last_changes': last_changes, 'last_changes': last_changes,
'last_changes_rss': reverse( 'last_changes_url': urlencode(
'rss-translation', {
kwargs={
'lang': obj.language.code, 'lang': obj.language.code,
'subproject': obj.subproject.slug, 'subproject': obj.subproject.slug,
'project': obj.subproject.project.slug 'project': obj.subproject.project.slug
} }
), ),
'last_changes_url': urlencode( 'last_changes_rss': reverse(
{ 'rss-translation',
kwargs={
'lang': obj.language.code, 'lang': obj.language.code,
'subproject': obj.subproject.slug, 'subproject': obj.subproject.slug,
'project': obj.subproject.project.slug 'project': obj.subproject.project.slug
......
...@@ -26,6 +26,7 @@ from trans.models.changes import Change ...@@ -26,6 +26,7 @@ from trans.models.changes import Change
from trans.views.helper import get_project_translation from trans.views.helper import get_project_translation
from lang.models import Language from lang.models import Language
class ChangesView(ListView): class ChangesView(ListView):
''' '''
Browser for changes. Browser for changes.
......
...@@ -25,6 +25,7 @@ from trans.models import Change ...@@ -25,6 +25,7 @@ from trans.models import Change
from lang.models import Language from lang.models import Language
from trans.views.helper import get_project_translation from trans.views.helper import get_project_translation
from django.shortcuts import render_to_response, get_object_or_404 from django.shortcuts import render_to_response, get_object_or_404
from django.utils.translation import ugettext as _
from django.template import RequestContext from django.template import RequestContext
from django.http import HttpResponse from django.http import HttpResponse
from django.contrib.auth.models import User from django.contrib.auth.models import User
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment