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.

123456789101112
  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)