source: trunk/skins/lemill/browse_macros.pt @ 3059

Revision 3059, 5.0 KB checked in by jukka, 9 years ago (diff)

Added i18n-message ids for browsing portlets.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      i18n:domain="lemill">
4
5<tal:rss_macro metal:define-macro="rss_count">
6       <span i18n:translate="label_n_results"><span tal:omit-tag="" tal:content="results_n | python:len(results)" i18n:name="n">234</span> results.</span>
7       <tal:syndicate condition="syntool/isSiteSyndicationAllowed">
8        <a href="" tal:attributes="href string:${request/URL1}/RSS?${request/QUERY_STRING}">
9           <img i18n:domain="plone" i18n:attributes="title title_rss_feed_for_search_results; alt label_rss_feed;"
10             tal:attributes="src string:$portal_url/rss.gif"
11             src="rss.gif"
12             alt="RSS Feed"
13             title="RSS feed of these search results" />
14        </a>
15       </tal:syndicate>
16</tal:rss_macro>
17
18<tal:options metal:define-macro="browse_options">
19<div class="browse_options portlet grid">
20    <form name="browse"
21           method="POST"
22           action="browse" tal:define="form request/form;
23           global results request/results | python: here.portal_catalog.browsingSearch(REQUEST=request);
24           d python:here.portal_catalog.createBrowsingOptions(REQUEST=request, results=results);
25           section context/getSectionFolder | nothing;
26           url_base section/absolute_url | portal_url;
27           cloud_url string:$url_base/cloud;
28           lang_filter d/lang_filter;"
29           tal:attributes="action string:$url_base/browse">
30     <p tal:condition="d/do_languages"><a href="" tal:attributes="href string:$cloud_url?base=language" i18n:translate="label_language">Language</a><br/>
31        <select tal:attributes="tabindex tabindex/next; disabled d/lang_disabled" name="language" onchange="this.form.submit()">
32            <optgroup><tal:loop repeat="item d/common_languages"><option tal:attributes="value python:item[0]; selected python:item[2]"><span tal:replace="python:str(item[1])" /><tal:counter condition="python:item[3]"> (<span tal:replace="python:item[3]"/>)</tal:counter></option></tal:loop></optgroup>
33            <optgroup label="-------------"><tal:loop repeat="item d/rare_languages"><option tal:attributes="value python:item[0]; selected python:item[2]"><span tal:replace="python:str(item[1])" /><tal:counter condition="python:item[3]"> (<span tal:replace="python:item[3]"/>)</tal:counter></option></tal:loop></optgroup>
34        </select>
35     </p>         
36     <p tal:condition="d/do_subject_areas"><a href="" tal:attributes="href string:$cloud_url?${lang_filter}base=subject_area" i18n:translate="label_subject_area">Subject area</a><br/>
37        <select tal:attributes="tabindex tabindex/next; disabled d/subjs_disabled" name="subject_area" onchange="this.form.submit()">
38            <tal:loop repeat="item d/subject_area"><option tal:attributes="value python:item[0]; selected python:item[2]"><span tal:content="python:str(item[1])" i18n:translate="" tal:omit-tag=""/><tal:counter condition="python:item[3]"> (<span tal:replace="python:item[3]"/>)</tal:counter></option></tal:loop>
39        </select>
40     </p>
41     <p tal:condition="d/do_target_groups"><a href="" tal:attributes="href string:$cloud_url?${lang_filter}base=target_group" i18n:translate="label_target_group">Target group</a><br/>
42        <select tal:attributes="tabindex tabindex/next; disabled d/targs_disabled" name="target_group" onchange="this.form.submit()">
43            <tal:loop repeat="item d/target_group"><option tal:attributes="value python:item[0]; selected python:item[2]"><span tal:content="python:str(item[1])" i18n:translate="" tal:omit-tag=""/><tal:counter condition="python:item[3]"> (<span tal:replace="python:item[3]"/>)</tal:counter></option></tal:loop>
44        </select>
45     </p>
46     <p tal:condition="d/do_types"><span i18n:translate="label_type">Type</span><br/>
47        <select tal:attributes="tabindex tabindex/next" name="type" onchange="this.form.submit()">
48            <tal:loop repeat="item d/type"><option tal:attributes="value python:item[0]; selected python:item[2]"><span tal:content="python:str(item[1])" i18n:translate="" tal:omit-tag=""/><tal:counter condition="python:item[3]"> (<span tal:replace="python:item[3]"/>)</tal:counter></option></tal:loop>
49        </select>
50     </p>
51     <p tal:condition="d/do_edited"><span i18n:translate="label_date">Date</span><br/>
52        <select tal:attributes="tabindex tabindex/next" name="edited" onchange="this.form.submit()">
53            <tal:loop repeat="item d/edited"><option tal:attributes="value python:item[0]; selected python:item[2]"><span tal:content="python:str(item[1])" i18n:translate="" tal:omit-tag=""/></option></tal:loop>
54        </select>
55     </p>
56     <input type="hidden" name="state" value="" tal:attributes="value d/state" />
57     <input type="hidden" name="author" value="" tal:attributes="value d/author" />
58     <input type="hidden" name="form.submitted" value="1" />
59     <p tal:condition="d/do_tags"><a href="" tal:attributes="href string:$cloud_url?${lang_filter}base=tags" i18n:translate="label_tag_cloud">tag cloud</a></p>
60  </form>
61</div>
62</tal:options>
63
64
65</html>
Note: See TracBrowser for help on using the repository browser.