jam-cloud/ruby/lib/jam_ruby/constants/validation_messages.rb

52 lines
1.8 KiB
Ruby

module ValidationMessages
# Note that these are not set up to be internationalizable
# general messages
PERMISSION_VALIDATION_ERROR = "You do not have permissions to perform this action."
USER_NOT_MUSICIAN_VALIDATION_ERROR = "You must be a Musician to perform this action."
USER_NOT_BAND_MEMBER_VALIDATION_ERROR = "You must be a band member to perform this action."
# band invitations
BAND_INVITATION_NOT_FOUND = "Band invitation not found."
# recordings
RECORDING_NOT_FOUND = "Recording not found."
# tracks
TRACK_NOT_FOUND = "Track not found."
# sessions
SESSION_NOT_FOUND = "Session not found."
# genres
GENRE_LIMIT_EXCEEDED = "No more than 1 genre is allowed."
GENRE_MINIMUM_NOT_MET = "At least 1 genre is required."
# instruments
INSTRUMENT_LIMIT_EXCEEDED = "No more than 5 instruments are allowed."
INSTRUMENT_MINIMUM_NOT_MET = "At least 1 instrument is required."
# user
OLD_PASSWORD_DOESNT_MATCH = "Your old password is incorrect."
EMAIL_NOT_FOUND = "Email address not found."
NOT_YOUR_PASSWORD = "is not your current password"
EMAIL_ALREADY_TAKEN = "has already been taken"
EMAIL_MATCHES_CURRENT = "is same as your current email"
INVALID_FPFILE = "is not valid"
#connection
SELECT_AT_LEAST_ONE = "Please select at least one track"
FAN_CAN_NOT_JOIN_AS_MUSICIAN = "A fan can not join a music session as a musician"
MUSIC_SESSION_MUST_BE_SPECIFIED = "A music session must be specified"
INVITE_REQUIRED = "You must be invited to join this session"
FANS_CAN_NOT_JOIN = "Fans can not join this session"
CANT_JOIN_RECORDING_SESSION = "is currently recording"
# recordings
ALREADY_BEING_RECORDED = "already being recorded"
NO_LONGER_RECORDING = "no longer recording"
NOT_IN_SESSION = "not in session"
end