Advertisement
Guest User

Untitled

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