To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
So the automated scrolling operations in c_sync.js must be adjustable to the right part to scroll.
Also, if a comment have to be shown outside of the current viewport, we scroll the correct part to that viewport
and then set the comment top Y offset to juste what it needs to avoid the "Add comment" button after scrolling
operation.
If not in Safari mobile, we add an offset here to avoid comment to display under the "Add comment" button.
# i18n values (from database) to be translated
from django.utils.translation import ugettext as _
# generic roles
_(u'Observer')
_(u'Manager')
_(u'Editor')
_(u'Moderator')
_(u'Commentator')
_(u'Observer')
_(u'Participant')
# permissions
_(u'Can view text')
_(u'Can edit text')
_(u'Can create text')
_(u'Can delete text')
_(u'Can manage text')
_(u'Can create comment')
_(u'Can delete comment')
_(u'Can delete own comment')
_(u'Can view approved comment')
_(u'Can view own comment')
_(u'Can view unapproved comment')
_(u'Can edit comment')
_(u'Can edit own comment')
_(u'Can manage workspace')
_(u'Can view workspace')
# school roles
_(u'Teacher')
_(u'Student')
_(u'Individual student')