Changeset 1815


Ignore:
Timestamp:
06/04/07 15:54:29 (12 years ago)
Author:
jukka
Message:

Fixed resource translation issues.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.py

    r1809 r1815  
    110110 
    111111# when translating resources values of these fields are copied to translation 
    112 LANGUAGE_INDEPENDENT_FIELDS=['target_group', 'groups', 'file', 'originalAuthor', 'hasCoverImage', 'coverImage', 'originalCoverImage', 'rights', 'video', 'address', 'latestEdit'] 
     112LANGUAGE_INDEPENDENT_FIELDS=['target_group', 'groups', 'file', 'originalAuthor', 'hasCoverImage', 'coverImage', 'originalCoverImage', 'rights', 'video', 'address', 'latestEdit', 
     113'bodyText','title'  
     114] 
     115## added bodyText and title as a temporary fix. Translations should inherit chapter structure and links to pieces, but not text. Doesn't work yet. 
    113116 
    114117# these refer to topics that collect them  
  • trunk/docs/upgrade_lemill.py

    r1785 r1815  
    8585    callURL(instance+'/portal_catalog', (('manage_catalogReindex:method',' Update Catalog '),)) 
    8686    print "Recalculating authors for all resources..." 
    87     callURL(instance+'/content/recalculate_all_authors') 
     87    callURL(instance+'/content/recalculate_all_authors', []) 
    8888    print "Lemill instance %s processed." % instance 
    8989    print "Finished!" 
  • trunk/skins/lemill/prefillTranslation.cpy.metadata

    r1516 r1815  
    11[actions] 
    2 action.success=traverse_to:string:base_translate 
     2action.success=redirect_to:string:base_translate 
  • trunk/skins/lemill/script_chapterController.cpy

    r1780 r1815  
    111111 
    112112translation=REQUEST.get('translation') 
    113 if str(translation)==1 or str(translation)=='True': 
     113context.dumpme(translation) 
     114if str(translation)=='1' or str(translation)=='True' or type(translation)==list: 
    114115    edit_page='base_translate' 
    115116 
  • trunk/skins/lemill/widget_chapter.pt

    r1806 r1815  
    5656        <input type="hidden" name="chapter_deleted" id="chapter_deleted" value="-1" tal:attributes="name python:'%s_deleted' % fieldName;id python:'%s_deleted' % fieldName"/> 
    5757        <input type="hidden" name="chapter_uploaded" id="chapter_uploaded" value="-1" tal:attributes="name python:'%s_uploaded' % fieldName;id python:'%s_uploaded' % fieldName"/> 
    58         <input type="hidden" name="translation" id="translation" value="0" tal:attributes="value translation"/> 
    5958        <input tal:condition="not:engineer" type="hidden" name="insert_point" id="insert_point" value="-1" /> 
    6059 
     
    6665 
    6766            <a name="#" tal:attributes="name index"></a> 
    68  
    6967 
    7068           <fieldset> 
     
    178176                  </label> 
    179177                  <div tal:define="transfield python:source.getField(fieldName); 
    180                       transchapter python:transfield.getChapter(context, index);"  class="text_to_translate"> 
     178                      transchapter python:transfield.getChapter(source, index);"  class="text_to_translate"> 
    181179                          <span tal:replace="structure python:context.cookText(transchapter)"/>             
    182180                  </div> 
  • trunk/skins/lemill/widget_pilot.pt

    r1806 r1815  
    129129        <input type="hidden" name="chapter_uploaded" id="chapter_uploaded" value="-1" 
    130130         tal:attributes="name python:'%s_uploaded' % fieldName;id python:'%s_uploaded' % fieldName"/> 
    131         <input type="hidden" name="translation" id="translation" value="0" 
    132          tal:attributes="value translation"/> 
    133131        <input tal:condition="not:engineer" type="hidden" name="insert_point" id="insert_point" value="-1" /> 
    134132 
  • trunk/skins/lemill/widget_slides.pt

    r1806 r1815  
    4646        <input type="hidden" name="chapter_deleted" id="chapter_deleted" value="-1" tal:attributes="name python:'%s_deleted' % fieldName;id python:'%s_deleted' % fieldName"/> 
    4747        <input type="hidden" name="chapter_uploaded" id="chapter_uploaded" value="-1" tal:attributes="name python:'%s_uploaded' % fieldName;id python:'%s_uploaded' % fieldName"/> 
    48         <input type="hidden" name="translation" id="translation" value="0" tal:attributes="value translation"/> 
    4948        <input tal:condition="not:engineer" type="hidden" name="insert_point" id="insert_point" value="-1" /> 
    5049 
Note: See TracChangeset for help on using the changeset viewer.