Changeset 481
- Timestamp:
- 08/18/06 13:40:50
- Files:
-
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/discussion_publish_comment.py (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/discussion_reply.cpy (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/discussion_reply_form.cpt (modified) (2 diffs)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/discussionitem_view.pt (modified) (2 diffs)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/validate_talkback.vpy (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.1/discussion_publish_comment.py (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.1/discussion_reply.cpy (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.1/discussion_reply_form.cpt (modified) (2 diffs)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.1/validate_talkback.vpy (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.5/discussion_publish_comment.py (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.5/discussion_reply.cpy (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.5/discussion_reply_form.cpt (modified) (2 diffs)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.5/validate_talkback.vpy (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/approve_comment_template.pt (modified) (2 diffs)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/prefs_comments_setup_form.cpt (modified) (6 diffs)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/prefs_recent_comments_delete.cpy (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/prefs_recent_comments_form.cpt (modified) (5 diffs)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/prefs_recent_comments_publish.cpy (modified) (1 diff)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/published_comment_template.pt (modified) (2 diffs)
- qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/validate_reply.vpy (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/discussion_publish_comment.py
r480 r481 27 27 send_notification_message = send_email(reply, container, state="published") 28 28 29 portal_status_message='Comment+ successfully+published'29 portal_status_message='Comment+published' 30 30 31 31 transaction_note('Published discussion item') qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/discussion_reply.cpy
r480 r481 79 79 transaction_note('Added comment to %s at %s' % (parent.title_or_id(), reply.absolute_url())) 80 80 81 portal_status_message='Comment successfully added.'81 portal_status_message='Comment published.' 82 82 83 83 # Inform user about awaiting moderation 84 84 if ifModerate and reply: 85 portal_status_message=' Your comment awaits moderation.'85 portal_status_message='Currently, all comments require approval before being published. Please check back later.' 86 86 87 87 target = '%s/%s?portal_status_message=%s' % (parent.absolute_url(), parent.getTypeInfo().getActionById('view'), portal_status_message) qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/discussion_reply_form.cpt
r480 r481 30 30 31 31 <div class="field" 32 tal:condition="isForAnonymous"> 32 tal:condition="isForAnonymous" 33 i18n:domain="plonecomments"> 33 34 34 35 <div class="field" … … 56 57 size="40" 57 58 tabindex="" 58 i18n:attributes=" title"59 i18n:attributes="alt title" 59 60 tal:attributes="tabindex tabindex/next; 60 61 value python:test(isAnon, '', member.getUserName()); qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/discussionitem_view.pt
r480 r481 71 71 type="submit" 72 72 value="Publish This Reply" 73 i18n:domain="plonecomments" 73 74 i18n:attributes="value" 74 75 /> … … 76 77 77 78 <div class="documentByLine" 78 tal:condition="not:isPublished">Until publishing this comment adding reply impossible.</div> 79 tal:condition="not:isPublished"> 80 <span i18n:translate="text_no_reply_until_published">Until publishing this comment adding reply impossible.</span> 81 </div> 79 82 80 83 </div> qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.0.5/validate_talkback.vpy
r480 r481 25 25 req = context.REQUEST 26 26 if not (req.form.has_key('Creator') and not req.form['Creator'] == ""): 27 state.setError('Creator', 'Please enter your Name.', 'name_required')27 state.setError('Creator', 'Please enter your name.', 'name_required') 28 28 29 29 if state.getErrors(): qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.1/discussion_publish_comment.py
r480 r481 27 27 send_notification_message = send_email(reply, container, state="published") 28 28 29 portal_status_message='Comment +successfully+published'29 portal_status_message='Comment published.' 30 30 31 31 putils = getToolByName(context, 'plone_utils') qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.1/discussion_reply.cpy
r480 r481 82 82 83 83 # Inform user about awaiting moderation 84 portal_status_message='Comment +successfully+added'84 portal_status_message='Comment published.' 85 85 if ifModerate and reply: 86 portal_status_message=' Your+comment+awaits+moderation'86 portal_status_message='Currently, all comments require approval before being published. Please check back later.' 87 87 88 88 from Products.CMFPlone.utils import transaction_note qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.1/discussion_reply_form.cpt
r480 r481 76 76 77 77 <div class="field" 78 tal:condition="isForAnonymous"> 78 tal:condition="isForAnonymous" 79 i18n:domain="plonecomments"> 79 80 80 81 <div class="field" … … 102 103 size="40" 103 104 tabindex="" 104 i18n:attributes=" title"105 i18n:attributes="alt title" 105 106 tal:attributes="tabindex tabindex/next; 106 107 value python:test(isAnon, '', member.getUserName()); qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.1/validate_talkback.vpy
r480 r481 33 33 req = context.REQUEST 34 34 if not (req.form.has_key('Creator') and not req.form['Creator'] == ""): 35 state.setError('Creator', 'Please enter your Name.', 'name_required')35 state.setError('Creator', 'Please enter your name.', 'name_required') 36 36 37 37 if state.getErrors(): qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.5/discussion_publish_comment.py
r480 r481 27 27 send_notification_message = send_email(reply, container, state="published") 28 28 29 portal_status_message='Comment +successfully+published'29 portal_status_message='Comment published.' 30 30 31 31 putils = getToolByName(context, 'plone_utils') qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.5/discussion_reply.cpy
r480 r481 80 80 81 81 # Inform user about awaiting moderation 82 portal_status_message='Comment +successfully+added'82 portal_status_message='Comment published.' 83 83 if ifModerate and reply: 84 portal_status_message=' Your+comment+awaits+moderation'84 portal_status_message='Currently, all comments require approval before being published. Please check back later.' 85 85 86 86 from Products.CMFPlone.utils import transaction_note qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.5/discussion_reply_form.cpt
r480 r481 76 76 77 77 <div class="field" 78 tal:condition="isForAnonymous"> 78 tal:condition="isForAnonymous" 79 i18n:domain="plonecomments"> 79 80 80 81 <div class="field" … … 102 103 size="40" 103 104 tabindex="" 104 i18n:attributes=" title"105 i18n:attributes="alt title" 105 106 tal:attributes="tabindex tabindex/next; 106 107 value python:test(isAnon, '', member.getUserName()); qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/2.5/validate_talkback.vpy
r480 r481 33 33 req = context.REQUEST 34 34 if not (req.form.has_key('Creator') and not req.form['Creator'] == ""): 35 state.setError('Creator', 'Please enter your Name.', 'name_required')35 state.setError('Creator', 'Please enter your name.', 'name_required') 36 36 37 37 if state.getErrors(): qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/approve_comment_template.pt
r480 r481 1 <div i18n:domain="plone "1 <div i18n:domain="plonecomments" 2 2 tal:omit-tag="" 3 3 tal:define="charset here/portal_properties/site_properties/default_charset|string:utf-8; … … 6 6 >To: <tal:x replace="options/mto"/> 7 7 From: <tal:x replace="options/mfrom"/> 8 Subject: <tal:x condition="organization_name" replace="string:[$organization_name] "/> New comment awaits moderation8 Subject: <tal:x condition="organization_name" replace="string:[$organization_name] "/><tal:subject i18n:translate="approvemail_subject">New comment awaits moderation</tal:subject> 9 9 10 <tal:x define="obj nocall:options/obj"> 11 New comment added to page "<tal:x replace="obj/Title"/>" at: 12 <tal:x replace="obj/absolute_url"/> 13 </tal:x> 10 <tal:new_comment define="obj nocall:options/obj" 11 i18n:translate="approvemail_new_comment_link"> 12 Please review new comment added to the following page "<tal:x replace="obj/Title" i18n:name="title"/>": 13 <tal:link replace="obj/absolute_url" i18n:name="link"/> 14 </tal:new_comment> 14 15 15 16 -- 16 <tal:x condition="organization_name" replace="string:$organization_name "/>Support Team. 17 17 <tal:signature i18n:translate="signature"> 18 <tal:organization_name condition="organization_name" 19 replace="string:$organization_name" 20 i18n:name="organization_name"/> 21 Support Team. 22 </tal:signature> 18 23 </div> qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/prefs_comments_setup_form.cpt
r480 r481 2 2 xml:lang="en" 3 3 lang="en" 4 i18n:domain="plone "4 i18n:domain="plonecomments" 5 5 metal:use-macro="here/prefs_main_template/macros/master"> 6 6 <!-- metal:use-macro="here/main_template/macros/master" --> … … 10 10 tal:define="errors python:request.get('controller_state', None).getErrors();"> 11 11 12 <div metal:define-macro="main" i18n:domain="plone ">12 <div metal:define-macro="main" i18n:domain="plonecomments"> 13 13 <div class="configlet"> 14 14 <div class="documentEditable"> 15 15 16 <!-- simulating views --> 17 <ul class="contentViews" 18 tal:define="tabs python:('Configure qPloneComments','prefs_comments_setup_form'), ('Recent comments moderation','prefs_recent_comments_form'),; 19 tabs python:[ {'label':label, 'name':name} for (label,name) in tabs ];" 20 > 21 <li class="selected" 22 tal:repeat="tab tabs" 23 tal:attributes="class python:tab['name']==template.id and 'selected' or ''"> 16 <!-- simulating views on the configure/comments pages until we have real objects. --> 17 <ul class="contentViews"> 18 <li class="selected"> 24 19 <a href="" 25 tal:attributes="href string:${here/absolute_url}/${tab/name}" 26 i18n:translate="" tal:content="tab/label">Configure qPloneComments</a> 20 tal:attributes="href string:${template/id}" 21 i18n:translate="label_configure">Configure qPloneComments</a> 22 </li> 23 24 <li class=""> 25 <a href="" 26 tal:attributes="href string: prefs_recent_comments_form" 27 i18n:translate="label_comments">Recent comments moderation</a> 27 28 </li> 28 29 </ul> … … 33 34 <!-- End of tabs --> 34 35 <div class="documentContent" metal:define-slot="prefs_content"> 35 <h1 i18n:translate=" qpc_setup">qPloneComments Setup</h1>36 <h1 i18n:translate="heading_comments_setup">qPloneComments Setup</h1> 36 37 37 38 <a href="" 38 39 class="link-parent" 39 40 tal:attributes="href string: $portal_url/plone_control_panel" 40 i18n:translate="label_up_to_plone_setup"> 41 i18n:translate="label_up_to_plone_setup" 42 i18n:domain="plone"> 41 43 Up to Plone Setup 42 44 </a> … … 51 53 52 54 <fieldset> 53 <legend i18n:translate="legend_ qpc_notification_legend">qPloneComments setup Details</legend>55 <legend i18n:translate="legend_setup_options">qPloneComments setup options</legend> 54 56 55 57 <div class="field" … … 127 129 tabindex tabindex/next;"/> 128 130 129 <label i18n:translate="label_enable_approve_notification" 131 <label i18n:translate="label_enable_approve_notification" 130 132 for="isEnableApproveNotification">Enable Discussion Manager notification on new comments.</label> 131 133 </div> 132 134 133 <div class="field" 134 tal:define="isEnabledManagerModeration python:checkPermission('Moderate Discussion', here);"> 135 136 <input type="checkbox" 137 class="noborder" 138 name="EnableManagerModeration" 139 id="EnableManagerModeration" 140 tabindex ="" 141 tal:attributes="value isEnabledManagerModeration; 142 checked python:test(isEnabledManagerModeration, 'True', ''); 143 tabindex tabindex/next;"/> 144 145 <label i18n:translate="enable_manager_moderation" 146 for="isEnableApproveNotification">Enable Manager moderation.</label> 147 </div> 148 149 <div class="field" 150 tal:define="property_id string:email_discussion_manager; 135 <div class="field" 136 tal:define="property_id string:additional_email; 151 137 email python:props_sheet.getProperty(property_id, ''); 152 138 error python:test(errors.has_key(property_id), errors.get(property_id), None);" 153 139 tal:attributes="class python:test(error, 'field error', 'field')" 154 140 tal:condition="python:props_sheet.hasProperty(property_id)"> 155 156 <label i18n:translate="label_ discussion-manager_email">Send comments notification emails to:</label>157 141 142 <label i18n:translate="label_additional_email">Send comments notification emails to:</label> 143 158 144 <div class="formHelp" id="smtp_server_help" 159 i18n:translate="help_ discussion-manager_email">160 The e-mail address where notifications about adding new comments will be sent.145 i18n:translate="help_additional_email"> 146 Specify one e-mail address where notifications about adding new comments will be sent. 161 147 </div> 162 148 163 149 <div tal:content="error">Validation error output</div> 164 150 165 <input name=" email_discussion-manager"151 <input name="additional_email" 166 152 value="" 167 153 size="40" … … 202 188 value="Save" 203 189 i18n:attributes="value" 190 i18n:domain="plone" 204 191 tal:attributes="tabindex tabindex/next;" 205 192 /> qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/prefs_recent_comments_delete.cpy
r480 r481 27 27 talkback.deleteReply( comment_id ) 28 28 29 return state.set(portal_status_message='Comment s was successfullydeleted.')29 return state.set(portal_status_message='Comment(s) deleted.') 30 30 qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/prefs_recent_comments_form.cpt
r480 r481 2 2 xml:lang="en" 3 3 lang="en" 4 i18n:domain="plone "4 i18n:domain="plonecomments" 5 5 metal:use-macro="here/prefs_main_template/macros/master"> 6 6 <!-- metal:use-macro="here/main_template/macros/master" --> … … 13 13 <div class="configlet"> 14 14 <div class="documentEditable"> 15 <!-- simulating views on the configure/comments pages until we have real objects. --> 16 <ul class="contentViews"> 17 <li class=""> 18 <a href="" 19 tal:attributes="href string:prefs_comments_setup_form" 20 i18n:translate="label_configure">Configure qPloneComments</a> 21 </li> 15 22 16 <!-- simulating views --> 17 <ul class="contentViews" 18 tal:define="tabs python:('Configure qPloneComments','prefs_comments_setup_form'), ('Recent comments moderation','prefs_recent_comments_form'),; 19 tabs python:[ {'label':label, 'name':name} for (label,name) in tabs ];" 20 > 21 <li class="selected" 22 tal:repeat="tab tabs" 23 tal:attributes="class python:tab['name']==template.id and 'selected' or ''"> 23 <li class="selected"> 24 24 <a href="" 25 tal:attributes="href string:${here/absolute_url}/${tab/name}"26 i18n:translate="" tal:content="tab/label">Recent comments moderation</a>25 tal:attributes="href string:${template/id}" 26 i18n:translate="label_comments">Recent comments moderation</a> 27 27 </li> 28 28 </ul> … … 36 36 tal:define ="results python:here.portal_catalog.searchResults(portal_type='Discussion Item',review_state='private',sort_on='created',sort_order='reverse');"> 37 37 38 <h1 i18n:translate=" qpc_setup">Recent comments</h1>38 <h1 i18n:translate="heading_comments">Recent comments</h1> 39 39 40 40 <a href="" 41 41 class="link-parent" 42 42 tal:attributes="href string: $portal_url/plone_control_panel" 43 i18n:translate="label_up_to_plone_setup"> 43 i18n:translate="label_up_to_plone_setup" 44 i18n:domain="plone"> 44 45 Up to Plone Setup 45 46 </a> 46 <div tal:condition="not:results"> No new comments.</div> 47 48 <p tal:condition="not:results" i18n:translate="text_no_new_comments">No new comments.</p> 47 49 48 50 <div tal:condition="results" … … 57 59 tal:attributes="action string:${here/getId}/${template/getId}"> 58 60 <fieldset> 59 <legend i18n:translate="legend_ qpc_notification_legend">List of recent comments</legend>61 <legend i18n:translate="legend_recent_comments">List of recent comments</legend> 60 62 61 63 <table><tbody> … … 72 74 alt="Select all items" 73 75 i18n:attributes="title label_select_all_items; alt label_select_all_items;" 76 i18n:domain="plone" 74 77 /> 75 78 </th> qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/prefs_recent_comments_publish.cpy
r480 r481 22 22 send_notification_message = send_email(comment, container, state="published") 23 23 24 return state.set(portal_status_message='Comment s was successfullypublished.')24 return state.set(portal_status_message='Comment(s) published.') 25 25 qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/published_comment_template.pt
r480 r481 1 <div i18n:domain="plone "1 <div i18n:domain="plonecomments" 2 2 tal:omit-tag="" 3 3 tal:define="charset here/portal_properties/site_properties/default_charset|string:utf-8; … … 6 6 >To: <tal:x replace="options/mto"/> 7 7 From: <tal:x replace="options/mfrom"/> 8 Subject: <tal:x condition="organization_name" replace="string:[$organization_name] "/> New comment added8 Subject: <tal:x condition="organization_name" replace="string:[$organization_name] "/><tal:subject i18n:translate="publishedmail_subject">New comment added</tal:subject> 9 9 10 <tal: x define="obj nocall:options/obj">11 New comment added to page "<tal:x replace="obj/Title"/>" at:12 <tal:x replace="obj/absolute_url" />13 </tal: x>10 <tal:new_comment define="obj nocall:options/obj" i18n:translate="publishedmail_new_comment_link"> 11 View new comment added to the following page "<tal:x replace="obj/Title" i18n:name="title"/>": 12 <tal:x replace="obj/absolute_url" i18n:name="link"/> 13 </tal:new_comment> 14 14 15 15 -- 16 <tal:x condition="organization_name" replace="string:$organization_name "/>Support Team. 16 <tal:signature i18n:translate="signature"> 17 <tal:organization_name condition="organization_name" 18 replace="string:$organization_name" 19 i18n:name="organization_name"/> 20 Support Team. 21 </tal:signature> 17 22 18 23 </div> qPloneComments/branches/plone-2.5-i18n/skins/qplonecomments/validate_reply.vpy
r480 r481 10 10 11 11 if hasattr(context, 'review_state') and not context.review_state=="published": 12 return state.set(status='failure', portal_status_message=" You can't add comment to not published reply.")12 return state.set(status='failure', portal_status_message="Reply not allowed because the response is to a comment waiting to be approved. Please wait for the comment to be approved before replying.") 13 13 14 14 return state
