Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # If it is an attempt to edit the source language, redirect the user to
- # resource_detail and show him a message explaining the reason.
- if target_language == resources[0].source_language:
- request.user.message_set.create(
- message=_("The source language cannot be edited, cause this would"
- " result in translation mismatching! If you want to "
- "update the source strings consider using the command"
- " line client of transifex."))
- return HttpResponseRedirect(reverse('project_detail',
- args=[project_slug]),)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement