adding all weblabels from weblabels.fsf.org
[weblabels.fsf.org.git] / www.fsf.org / 20131028 / files / CMFPlone / skins / plone_ecmascript / plone_javascript_variables.js.pt
1 <tal:block define="dummy python:request.response.setHeader('content-type','text/javascript;;charset=utf-8');" />
2 <metal:block i18n:domain="plone"
3 tal:define="portal_props context/portal_properties/site_properties">
4 // Global Plone variables that need to be accessible to the Javascripts
5 var portal_url = '<tal:block replace="context/portal_url" />';
6 var form_modified_message = '<tal:block tal:replace="python: context.translate('text_form_modified_message', default='Your form has not been saved. All changes you have made will be lost.', escape_for_js=True)" />';
7 var form_resubmit_message = '<tal:block tal:replace="python: context.translate('text_form_resubmit_message', default='You already clicked the submit button. Do you really want to submit this form again?', escape_for_js=True)" />';
8
9 // the following are flags for mark_special_links.js
10 // links get the target="_blank" attribute
11 var external_links_open_new_window = '<tal:block replace="portal_props/external_links_open_new_window" />';
12 var mark_special_links = '<tal:block replace="portal_props/mark_special_links | string:false" />';
13 </metal:block>