20 lines
1.1 KiB
Python
20 lines
1.1 KiB
Python
"""
|
|
User facing error messages during course import and export
|
|
"""
|
|
from django.utils.translation import ugettext as _
|
|
|
|
COURSE_ALREADY_EXIST = _('Aborting import because a course with this id: {} already exists.')
|
|
COURSE_PERMISSION_DENIED = _('Permission denied. You do not have write access to this course.')
|
|
ERROR_WHILE_READING = _('Error while reading {}. Check file for XML errors.')
|
|
FAILED_TO_IMPORT_MODULE = _('Failed to import module: {} at location: {}')
|
|
FILE_MISSING = _('Could not find the {0} file in the package.')
|
|
FILE_NOT_FOUND = _('Uploaded Tar file not found. Try again.')
|
|
INVALID_FILE_TYPE = _('We only support uploading a .tar.gz file.')
|
|
LIBRARY_ALREADY_EXIST = _('Aborting import since a library with this id already exists.')
|
|
PERMISSION_DENIED = _('Permission denied')
|
|
UNKNOWN_ERROR_IN_IMPORT = _('Unknown error while importing course.')
|
|
UNKNOWN_ERROR_IN_UNPACKING = _('An Unknown error occurred during the unpacking step.')
|
|
UNKNOWN_USER_ID = _('Unknown User ID: {0}')
|
|
UNSAFE_TAR_FILE = _('Unsafe tar file. Aborting import.')
|
|
USER_PERMISSION_DENIED = _('User permission denied.')
|