Piki is a minimal wiki
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

messages.py 554B

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)