'file_size_limit_msg':CFG_WEBCOMMENT_MAX_ATTACHMENT_SIZE>0and_("Max %(x_nb_bytes)s per file")%{'x_nb_bytes':(CFG_WEBCOMMENT_MAX_ATTACHMENT_SIZE<1024*1024and(str(CFG_WEBCOMMENT_MAX_ATTACHMENT_SIZE/1024)+'KB')or(str(CFG_WEBCOMMENT_MAX_ATTACHMENT_SIZE/(1024*1024))+'MB'))}or''}
editor=get_html_text_editor(name='msg',
content=msg,
textual_content=textual_msg,
width='100%',
height='400px',
enabled=CFG_WEBCOMMENT_USE_RICH_TEXT_EDITOR,
file_upload_url=file_upload_url,
toolbar_set="WebComment",
ln=ln)
subscribe_to_discussion=''
ifnotuser_is_subscribed_to_discussion:
# Offer to subscribe to discussion
subscribe_to_discussion='<small><input type="checkbox" name="subscribe" id="subscribe"/><label for="subscribe">%s</label></small>'%_("Send me an email when a new comment is posted")
note_label=_("Note: you have not %(x_url_open)sdefined your nickname%(x_url_close)s. %(x_nickname)s will be displayed as the author of this comment.")% \