Piki is a minimal wiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

messages.py 842B

12345678910111213141516171819202122
  1. from django.contrib import messages
  2. from django.utils.translation import gettext as _
  3. def permission_denied_msg_page(request, rel_path):
  4. # TODO: Add translation for this message
  5. messages.error(request, _("Permission denied: You don't have sufficient acces to the Page '%s'. Please contact the adminstrator.") % rel_path)
  6. def unavailable_msg_page(request, rel_path):
  7. # TODO: Add translation for this message
  8. messages.info(request, _("Unavailable: The Page '%s' is not available. Create it or follow a valid link, please.") % rel_path)
  9. def edit_success(request):
  10. # TODO: Add translation for this message
  11. messages.success(request, _('Thanks for editing, page stored.'))
  12. def edit_no_change(request):
  13. # TODO: Add translation for this message
  14. messages.info(request, _("Nothing changed, no storage needed."))