Ignore:
Timestamp:
10/29/10 13:40:47 (9 years ago)
Author:
jukka
Message:

Added Brazilian Portuguese to available languages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/about_view.pt

    r2873 r3067  
    1111        <metal:body define-macro="body"> 
    1212        <div metal:use-macro="here/document_byline/macros/byline" /> 
     13        <tal:defines define="my_language python:context.Language(); lang_string python:test(my_language, 'language=%s&amp;' % my_language, ''); 
     14        browse_base python:'%s/content/browse?%s' % (portal_url, lang_string);"> 
    1315        <p><label><tal:block i18n:domain="plone" i18n:translate="label_language">Language</tal:block>:</label> <br /> 
    14         <a href="" tal:define="my_language python:context.Language()" tal:attributes="href python:'language?language=%s&amp;filter=resources' % my_language"> 
     16        <a href="" tal:attributes="href browse_base"> 
    1517            <metal:fieldMacro use-macro="python:here.widget('language',mode='view')"/> 
    1618        </a> 
    1719        </p> 
    1820        <tal:def define="value context/getSubject_area"> 
    19           <label tal:condition="value"><tal:block i18n:translate="label_subject_area">Subject area</tal:block>:</label> 
     21          <p tal:condition="value"><label><tal:block i18n:translate="label_subject_area">Subject area</tal:block>:</label><br /> 
    2022          <metal:define define-macro="subject_area_view"> 
    21             <p><span tal:repeat="subject_area value" tal:omit-tag=""> 
    22               <a href="" tal:content="subject_area" tal:attributes="href python:'subject_area?subject_area=%s&amp;filter=resources' % subject_area" i18n:translate="">PLACEHOLDER</a><span tal:condition="not:repeat/subject_area/end" tal:omit-tag="">,</span> 
    23             </span></p> 
    24           </metal:define> 
     23            <span tal:repeat="subject_area value" tal:omit-tag=""> 
     24              <a href="" tal:content="subject_area" tal:attributes="href python:'%ssubject_area=%s' % (browse_base, subject_area.split()[0].lower())" i18n:translate="">PLACEHOLDER</a><span tal:condition="not:repeat/subject_area/end" tal:omit-tag="">,</span> 
     25            </span> 
     26          </metal:define></p> 
    2527        </tal:def> 
    2628        <tal:def define="value context/getTarget_group"> 
    27         <label tal:condition="value"><tal:block i18n:translate="label_target_group">Target group</tal:block>:</label> 
     29        <p tal:condition="value"><label><tal:block i18n:translate="label_target_group">Target group</tal:block>:</label><br /> 
    2830          <metal:define define-macro="target_group_view"> 
    29             <p><span tal:repeat="target_group value" tal:omit-tag=""> 
    30               <a href="" tal:content="target_group" tal:attributes="href python:'target_group?target_group=%s&amp;filter=resources' % target_group" i18n:translate="">PLACEHOLDER</a><span tal:condition="not:repeat/target_group/end" tal:omit-tag="">,</span> 
    31             </span></p> 
    32           </metal:define> 
     31            <span tal:repeat="target_group value" tal:omit-tag=""> 
     32              <a href="" tal:content="target_group" tal:attributes="href python:'%starget_group=%s' % (browse_base, target_group.split()[0].lower())" i18n:translate="">PLACEHOLDER</a><span tal:condition="not:repeat/target_group/end" tal:omit-tag="">,</span> 
     33            </span> 
     34          </metal:define></p> 
    3335        </tal:def> 
    3436        <p tal:define="tags context/getTags" tal:condition="tags"><label><tal:block i18n:translate="label_tags">Tags</tal:block>:</label> <br /> 
    3537        <metal:fieldMacro use-macro="python:here.widget('tags',mode='view')"/> 
    3638        </p> 
    37         <br /> 
    38         <br /> 
     39        </tal:defines> 
    3940        <p> 
    4041        <metal:fieldMacro use-macro="python:here.widget('rights',mode='view')"/> 
Note: See TracChangeset for help on using the changeset viewer.