Piki is a minimal wiki
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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."))