Changeset 473


Ignore:
Timestamp:
07/18/06 14:50:26 (13 years ago)
Author:
tarmo
Message:

cpt's and py's now also i18n'd. Closes #524, spent 30m.

Location:
trunk
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.py

    r464 r473  
    6565                        'Story':['all',], 
    6666                       } 
    67  
    68 # Front page info 
    69 FRONTPAGE_TITLE="CALIBRATE LeMill" 
    70 FRONTPAGE_DESCRIPTION="CALIBRATE LeMill is a collaborative environment for authoring and sharing learning content." 
    71 FRONTPAGE_TEXT="LeMill has four main sections.\n\nUnder **content** section users can browse existing content and add their own pieces and materials. Material is a ready-made learning content unit that teachers can take, customize and use in their teaching. A piece is typically a media file or text, that can be used for building materials.\n\n**Activities** section is a place where users can share groupwork descriptions, games and other learning activities that teachers can carry out with their students.\n\nUnder **tools** section you will find various tools that you need to carry out the learning activities or to play the content.\n\nIn the **community** section users can form groups and find collaboration partners.\n\nThis is the first prototype of LeMill. The user interface design is not final and many functionalities are not implemented yet. LeMill is a working title that will be changed before the public release." 
    7267 
    7368# Main sections of the site 
  • trunk/skins/lemill/author.cpt

    r246 r473  
    11<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" 
    22      lang="en" 
    3       i18n:domain="plone"> 
     3      i18n:domain="lemill"> 
    44 
    55<body tal:define="author python:(len(request.traverse_subpath) > 0 and request.traverse_subpath[0]) or request.get('author', None); 
  • trunk/skins/lemill/base_edit.cpt

    r431 r473  
    2929      xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    3030      metal:use-macro="here/form_template/macros/master" 
    31       i18n:domain="plone"> 
     31      i18n:domain="lemill"> 
    3232 
    3333  <metal:head fill-slot="top_slot"> 
  • trunk/skins/lemill/base_metadata.cpt

    r453 r473  
    2020      xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    2121      metal:use-macro="here/form_template/macros/master" 
    22       i18n:domain="plone"> 
     22      i18n:domain="lemill"> 
    2323 
    2424  <metal:head fill-slot="javascript_head_slot"> 
  • trunk/skins/lemill/change_coverimage.cpt

    r426 r473  
    3737                        </div> 
    3838                        <div id="archetypes-fieldname-coverImage" class="field ArchetypesFileWidget"> 
    39                             <label for="file">Change cover image</label> 
    40                             <div id="coverImage_help" class="formHelp"> 
    41                                 select new cover image from your computer 
     39                            <label for="file" i18n:translage="label_change_cover_image">Change cover image</label> 
     40                            <div id="coverImage_help" class="formHelp" i18n:translate="help_change_cover_image"> 
     41                                Select new cover image from your computer 
    4242                            </div> 
    4343                            <div> 
  • trunk/skins/lemill/collection_add.cpt

    r345 r473  
    66    xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    77    metal:use-macro="here/form_template/macros/master" 
    8     i18n:domain="plone"> 
     8    i18n:domain="lemill"> 
    99    <head></head> 
    1010    <body> 
    1111        <metal:fill fill-slot="main"> 
    1212        <metal:main define-macro="main"> 
    13         <tal:isFolder tal:condition="python:not mtool.getHomeFolder()"> 
    14         You don't seem to have a home folder. Please <a href="" tal:attributes="href string:$portal_url/login_form">log in</a> if you haven't done so. 
     13        <tal:isFolder tal:condition="python:not mtool.getHomeFolder()" i18n:translate="text_no_home_folder"> 
     14        You don't seem to have a home folder. Please <a i18n:name="login" i18n:translate="text_login" href="" tal:attributes="href string:$portal_url/login_form">log in</a> if you haven't done so. 
    1515        </tal:isFolder> 
    1616        <tal:isFolder tal:condition="python:mtool.getHomeFolder()"> 
    1717 
    18         <h1>Add to collection</h1> 
     18        <h1 i18n:translate="heading_add_to_collection">Add to collection</h1> 
    1919 
    20         <p>Select a collection where you would like to add this resource, or give a name for a new collection.</p> 
     20        <p i18n:translate="text_select_collection">Select a collection where you would like to add this resource, or give a name for a new collection.</p> 
    2121 
    2222        <form action="" method="post" tal:attributes="action string:${here/absolute_url}/${template/id};" 
    2323            tal:define="colls python:mtool.getHomeFolder().getCollectionsFolder().getFolderContents()"> 
    2424            <div tal:condition="colls"> 
    25                 Choose... 
     25                <tal:block i18n:translate="label_choose">Choose...</tal:block> 
    2626                <select name="collections" id="collections"> 
    2727                    <tal:obj tal:repeat="object colls"> 
     
    3232            <div> 
    3333                <tal:colls condition="colls"> 
    34                 ... or create a new collection by name: 
     34                <tal:block i18n:translate="label_or_create_new">... or create a new collection by name:</tal:block> 
    3535                </tal:colls> 
    3636                <tal:nocolls condition="not:colls"> 
  • trunk/skins/lemill/collection_view.cpt

    r431 r473  
    44      i18n:domain="Plone"> 
    55    <head> 
    6         <style text-decoration:none></style> 
     6        <style>text-decoration:none</style> 
    77        <span metal:fill-slot="javascript_head_slot" tal:omit-tag=""> 
    88        <script language="JavaScript"> 
  • trunk/skins/lemill/group_create.cpt

    r252 r473  
    4343                <input type="hidden" name="addname" value="addname" id="addname" tal:attributes="value groupname"/> 
    4444                 
    45                 <label for="title">Name</label> 
     45                <label for="title" i18n:translate="legend_name">Name</label> 
    4646                <span class="fieldRequired" title="Required" 
    4747                     i18n:attributes="title title_required;" 
  • trunk/skins/lemill/group_edit.cpt

    r236 r473  
    4646                <input type="hidden" name="groupname" value="groupname" id="groupname" tal:attributes="value groupname | string: "/> 
    4747 
    48                 <label for="title">Name</label> 
     48                <label for="title" i18n:translate="legend_name">Name</label> 
    4949                <span class="fieldRequired" title="Required" 
    5050                     i18n:attributes="title title_required;" 
  • trunk/skins/lemill/history_view.cpt

    r370 r473  
    33    lang="en" 
    44    metal:use-macro="here/main_template/macros/master" 
    5     i18n:domain="plone"> 
     5    i18n:domain="lemill"> 
    66 
    77    <div metal:fill-slot="main" style="width:100%" i18n:domain="lemill"> 
    8         <h1 class="documentFirstHeading"><tal:block tal:content="object_title">Title or id</tal:block> - <tal:block i18n:translate="">All versions</tal:block> 
     8        <h1 class="documentFirstHeading"><tal:block tal:content="object_title">PLACEHOLDER</tal:block> - <tal:block i18n:translate="">All versions</tal:block> 
    99        </h1> 
    1010 
     
    1616    <table> 
    1717            <tr> 
    18                 <th i18n:translate="">Version</th> 
    19                 <th i18n:translate="">Time</th> 
    20                 <th i18n:translate="">Author</th> 
    21                 <th i18n:translate="">Summary</th> 
    22                 <th i18n:translate="">X</th> 
    23                 <th i18n:translate="">Y</th> 
     18                <th i18n:translate="label_version">Version</th> 
     19                <th i18n:translate="label_time">Time</th> 
     20                <th i18n:translate="label_author">Author</th> 
     21                <th i18n:translate="label_summary">Summary</th> 
     22                <th>X</th> 
     23                <th>Y</th> 
    2424            </tr> 
    2525            <tr tal:repeat="entry here/getHistoryEntries"> 
    26                 <th tal:content="string:v${entry/version}">Version</th> 
    27                 <td tal:content="entry/date">Date</td> 
    28                 <td tal:content="entry/author">Author</td> 
    29                 <td tal:content="entry/summary">Summary</td> 
     26                <th tal:content="string:v${entry/version}"></th> 
     27                <td tal:content="entry/date"></td> 
     28                <td tal:content="entry/author"></td> 
     29                <td tal:content="entry/summary"></td> 
    3030                <td style="width:10px"> 
    3131                    <input type="radio" name="x_radio:float" value="" tal:attributes="value entry/timestamp" /> 
     
    4141                        value="Diff between X and Y"  
    4242                        name="form.button.get_diff_button" 
    43                         i18n:attributes="value" /> 
     43                        i18n:attributes="value button_do_diff" /> 
     44        </td> 
    4445            </tr> 
    4546    </table> 
  • trunk/skins/lemill/join_form.cpt

    r236 r473  
    4242           tal:attributes="class python:test(error, 'field error', 'field')"> 
    4343 
    44         <label i18n:translate="label_first_name">Name</label> 
    45  
    46         <div class="formHelp" i18n:translate="help_name_creation"> 
     44        <label i18n:domain="lemill" i18n:translate="label_first_name">Name</label> 
     45 
     46        <div class="formHelp" i18n:domain="lemill" i18n:translate="help_name_creation"> 
    4747          Enter your first name and last name 
    4848        </div> 
  • trunk/skins/lemill/material_edit.cpt

    r427 r473  
    55    xmlns:metal="http://xml.zope.org/namespaces/metal" 
    66    xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    7     i18n:domain="plone"> 
     7    i18n:domain="lemill"> 
    88 
    99  <!--metal:head define-macro="topslot"> 
  • trunk/skins/lemill/personalize_form.cpt

    r353 r473  
    22    lang="en" 
    33    metal:use-macro="here/form_template/macros/master" 
    4     i18n:domain="plone"> 
     4    i18n:domain="lemill"> 
    55 
    66    <metal:block fill-slot="top_slot" 
  • trunk/skins/lemill/piece_edit.cpt

    r429 r473  
    2020      xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    2121      metal:use-macro="here/form_template/macros/master" 
    22       i18n:domain="plone"> 
     22      i18n:domain="lemill"> 
    2323 
    2424  <metal:head fill-slot="javascript_head_slot"> 
  • trunk/skins/lemill/prefs_lemill_search_form.cpt

    r236 r473  
    22      lang="en" 
    33      metal:use-macro="here/prefs_main_template/macros/master" 
    4       i18n:domain="plone"> 
     4      i18n:domain="lemill"> 
    55 
    66<metal:block metal:fill-slot="top_slot" 
     
    7373                    <table tal:condition="addresses"> 
    7474                        <thead> 
    75                             <th>Delete</th> 
    76                             <th>URL</th> 
    77                             <th>Protocol</th> 
     75                            <th i18n:translate="label_delete">Delete</th> 
     76                            <th i18n:translate="label_url">URL</th> 
     77                            <th i18n:translate="label_protocol">Protocol</th> 
    7878                        </thead> 
    7979                        <tr tal:repeat="address python:addresses.keys()"> 
     
    9292                </div> 
    9393 
    94                 <label for="add_new_lemill_location">New lemill URL</label> 
     94                <label for="add_new_lemill_location" i18n:translate="label_new_lemill_url">New lemill URL</label> 
    9595                <input type="text" name="add_new_lemill_location" id="add_new_lemill_location" /> 
    9696     
  • trunk/skins/lemill/presentationmaterial_edit.cpt

    r462 r473  
    66    xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    77    metal:use-macro="here/form_template/macros/master" 
    8     i18n:domain="plone"> 
     8    i18n:domain="lemill"> 
    99 
    1010    <body> 
  • trunk/skins/lemill/story_edit.cpt

    r431 r473  
    2929      xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    3030      metal:use-macro="here/form_template/macros/master" 
    31       i18n:domain="plone"> 
     31      i18n:domain="lemill"> 
    3232 
    3333  <metal:head fill-slot="top_slot"> 
Note: See TracChangeset for help on using the changeset viewer.