Changeset 3407 in products


Ignore:
Timestamp:
Apr 5, 2012 10:24:27 AM (12 years ago)
Author:
enkidu
Message:

add French localization

Location:
quintagroup.analytics/trunk/quintagroup/analytics
Files:
5 added
11 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.analytics/trunk/quintagroup/analytics/__init__.py

    r2870 r3407  
     1from zope.i18nmessageid import MessageFactory 
     2QuintagroupAnalyticsMessageFactory = MessageFactory('quintagroup.analytics') 
     3 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/configure.zcml

    r3028 r3407  
    77        for="Products.CMFPlone.interfaces.IPloneSiteRoot" 
    88        permission="zope2.ViewManagementScreens" 
     9        class=".views.AnalyticsBaseView" 
    910        template="qa_overview.pt" 
    1011        /> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/legacy_portlets.pt

    r3039 r3407  
    1010 <body> 
    1111        <div id="wrapper"> 
    12             <h1>Quintagroup Analytics Tool for Plone</h1> 
    13             <ul class="formTabs" id="navigation"> 
    14                 <li class="formTab"><a href="@@qa_overview">Overview</a></li> 
    15                 <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li> 
    16                 <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li> 
    17                 <li class="formTab"><a href="@@type_by_state">Types by state</a></li> 
    18                 <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li> 
    19                 <li class="formTab"><a class="selected" href="@@legacy_portlets">Legacy portlets</a></li> 
    20                 <li class="formTab"><a href="@@properties_stats">Properties stats</a></li> 
     12            <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1> 
     13            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
     14                <span tal:repeat="formTabItem view/analiticsNavigation"> 
     15                    <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     16                </span> 
    2117            </ul> 
    22             <p>The following list can display site's legacy portlets, assigned as left and right slots on different 
     18            <p i18n:translate="navigation_paragraph_portlets_desc">The following list can display site's legacy portlets, assigned as left and right slots on different 
    2319               site contexts. Specify the search depth: portlets on what level(s) to be included. Select CSV to render 
    2420               this information in .csv format.</p> 
    2521            <form action="" method="get"> 
    26                 Search depth (-1 means no limit, 1 means that objects in the site root only will be searched): 
     22                <span i18n:translate="lg_form_helper">Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):</span> 
    2723                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" /> 
    2824                CSV 
     
    5450            <tr> 
    5551                <th></th> 
    56                 <th>left_slots</th> 
    57                 <th>right_slots</th> 
     52                <th i18n:translate="table_header_left_slots">left_slots</th> 
     53                <th i18n:translate="table_header_right_slots">right_slots</th> 
    5854            </tr> 
    5955            <tr tal:repeat="info infos"> 
     
    6359                        <li tal:repeat="slot info/left_slots" tal:content="slot">slot</li> 
    6460                    </ul> 
    65                     <span tal:condition="python:info['left_slots'] is None">doesn't exist</span> 
     61                    <span tal:condition="python:info['left_slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span> 
    6662                </td> 
    6763                <td> 
     
    6965                        <li tal:repeat="slot info/right_slots" tal:content="slot">slot</li> 
    7066                    </ul> 
    71                     <span tal:condition="python:info['right_slots'] is None">doesn't exist</span> 
     67                    <span tal:condition="python:info['right_slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span> 
    7268                </td> 
    7369            </tr> 
    7470            <tr> 
    75                 <th>Total</th> 
     71                <th i18n:translate="table_header_total">Total</th> 
    7672                <td colspan="2" tal:content="view/getTotal">123</td> 
    7773            </tr> 
    7874            <tr> 
    79                 <th>Expressions</th> 
     75                <th i18n:translate="table_header_expressions">Expressions</th> 
    8076                <td colspan="2"> 
    8177                    <ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/ownership_by_state.pt

    r3039 r3407  
    99    <body> 
    1010        <div id="wrapper"> 
    11             <h1>Quintagroup Analytics Tool for Plone</h1> 
    12             <ul class="formTabs" id="navigation"> 
    13                 <li class="formTab"><a href="@@qa_overview">Overview</a></li> 
    14                 <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li> 
    15                 <li class="formTab"><a class="selected" href="@@ownership_by_state">Ownership by state</a></li> 
    16                 <li class="formTab"><a href="@@type_by_state">Types by state</a></li> 
    17                 <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li> 
    18                 <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li> 
    19                 <li class="formTab"><a href="@@properties_stats">Properties stats</a></li> 
     11            <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1> 
     12            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
     13                <span tal:repeat="formTabItem view/analiticsNavigation"> 
     14                    <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     15                </span> 
    2016            </ul> 
    2117        </div> 
    22         <p>The following chart displays workflow states of site's content objects in relation to their owners 
     18        <p i18n:translate="navigation_paragraph_own_by_state_desc">The following chart displays workflow states of site's content objects in relation to their owners 
    2319           (up to 10 most active site content contributors are displayed).</p> 
    24         <p>The table under the chart displays number of content objects in all site's workflow states in relation 
     20        <p i18n:translate="own_by_state_desc">The table under the chart displays number of content objects in all site's workflow states in relation 
    2521           to content owners. 
    2622        </p> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/ownership_by_type.pt

    r3039 r3407  
    1 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" 
     1<html xmlns="http://www.w3.org/1999/xhtml" 
    22      xmlns:tal="http://xml.zope.org/namespaces/tal" 
    33      xmlns:metal="http://xml.zope.org/namespaces/metal" 
    44      xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    5       lang="en" 
    65      metal:use-macro="context/prefs_main_template/macros/master"> 
    76 
    87<metal:main metal:fill-slot="prefs_configlet_main" i18n:domain="quintagroup.analytics"> 
     8 
    99    <body> 
    1010        <div id="wrapper"> 
    11             <h1>Quintagroup Analytics Tool for Plone</h1> 
    12             <ul class="formTabs" id="navigation"> 
    13                 <li class="formTab"><a href="@@qa_overview">Overview</a></li> 
    14                 <li class="formTab"><a class="selected" href="@@ownership_by_type">Ownership by type</a></li> 
    15                 <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li> 
    16                 <li class="formTab"><a href="@@type_by_state">Types by state</a></li> 
    17                 <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li> 
    18                 <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li> 
    19                 <li class="formTab"><a href="@@properties_stats">Properties stats</a></li> 
     11            <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1> 
     12            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
     13                <span tal:repeat="formTabItem view/analiticsNavigation"> 
     14                    <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     15                </span> 
    2016            </ul> 
    2117        </div> 
    22         <p>The following chart displays the most frequently created content types in relation 
     18        <p i18n:translate="own_by_type_desc1">The following chart displays the most frequently created content types in relation 
    2319            to their owners (up to 10 most active site content contributors and up to 10 most popular 
    2420            content types are displayed). 
    2521        </p> 
    26         <p>The table under the chart displays number of content objects of all site's content types 
     22        <p i18n:translate="own_by_type_desc2">The table under the chart displays number of content objects of all site's content types 
    2723           in relation to their owners. Besides, the total number of created objects by every contributor 
    2824           is provided. 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/portlets_stats.pt

    r3039 r3407  
    1111    <body> 
    1212        <div id="wrapper"> 
    13             <h1>Quintagroup Analytics Tool for Plone</h1> 
    14             <ul class="formTabs" id="navigation"> 
    15                 <li class="formTab"><a href="@@qa_overview">Overview</a></li> 
    16                 <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li> 
    17                 <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li> 
    18                 <li class="formTab"><a href="@@type_by_state">Types by state</a></li> 
    19                 <li class="formTab"><a class="selected" href="@@portlets_stats">Portlets stats</a></li> 
    20                 <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li> 
    21                 <li class="formTab"><a href="@@properties_stats">Properties stats</a></li> 
     13            <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1> 
     14            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
     15                <span tal:repeat="formTabItem view/analiticsNavigation"> 
     16                    <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     17                </span> 
    2218            </ul> 
    23             <p>The following list can displays site's portlets, assigned to left and right columns on different  
     19            <p i18n:translate="portlets_stats_desc">The following list can displays site's portlets, assigned to left and right columns on different  
    2420               contexts. Specify the search depth: portlets on what level(s) to be included. Click on the porltet 
    2521               title to land on the porltet edit form. Select CSV to render this information in .csv format.</p> 
    2622            <form action="" method="get"> 
    27                 Search depth (-1 means no limit, 1 means that objects in the site root only will be searched): 
     23                <span i18n:translate="portlets_stats_form_desc">Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):</span> 
    2824                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" /> 
    2925                CSV 
     
    5955            <tr> 
    6056                <th></th> 
    61                 <th>left_slots</th> 
    62                 <th>right_slots</th> 
     57                <th i18n:translate="table_header_left_slots">left_slots</th> 
     58                <th i18n:translate="table_header_right_slots">right_slots</th> 
    6359            </tr> 
    6460            <tr tal:repeat="info view/getPropsList"> 
     
    7975                        </li> 
    8076                    </ul> 
    81                     <span tal:condition="python:info['left_slots'] is None">doesn't exist</span> 
     77                    <span tal:condition="python:info['left_slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span> 
    8278                </td> 
    8379                <td> 
     
    9288                        </li> 
    9389                    </ul> 
    94                     <span tal:condition="python:info['right_slots'] is None">doesn't exist</span> 
     90                    <span tal:condition="python:info['right_slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span> 
    9591                </td> 
    9692            </tr> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/properties_stats.pt

    r3039 r3407  
    1111    <body> 
    1212        <div id="wrapper"> 
    13             <h1>Quintagroup Analytics Tool for Plone</h1> 
    14             <ul class="formTabs" id="navigation"> 
    15                 <li class="formTab"><a href="@@qa_overview">Overview</a></li> 
    16                 <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li> 
    17                 <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li> 
    18                 <li class="formTab"><a href="@@type_by_state">Types by state</a></li> 
    19                 <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li> 
    20                 <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li> 
    21                 <li class="formTab"><a class="selected" href="@@properties_stats">Properties stats</a></li> 
     13            <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1> 
     14            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
     15                <span tal:repeat="formTabItem view/analiticsNavigation"> 
     16                    <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     17                </span> 
    2218            </ul> 
    23             <p>The following list can display values for certain property for site objects. To generate the  
     19            <p i18n:translate="prop_stats_desc">The following list can display values for certain property for site objects. To generate the  
    2420               list - specify the search depth (objects on what level(s) will be included) and type in  
    2521               property name (a list of all available properties is provided below). For example: to display 
     
    2824            </p> 
    2925            <form action="" method="get"> 
    30                 Search depth (-1 means no limit, 1 means that objects in the site root only will be searched): 
     26                <span i18n:translate="prop_stats_form_desc">Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):</span> 
    3127                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" /> 
    3228                <br> 
     
    5753                tal:condition="python:isinstance(info['slots'],basestring)" 
    5854                tal:replace="info/slots">string</span>"</span><span 
    59                 tal:condition="python:info['slots'] is None">None</span><br /> 
     55                tal:condition="python:info['slots'] is None" i18n:translate="span_none">None</span><br /> 
    6056            </nobr> 
    6157        </div> 
     
    7369                        <li tal:condition="python:isinstance(info['slots'],basestring)" tal:content="info/slots">string</li> 
    7470                    </ul> 
    75                     <span class="none" tal:condition="python:info['slots'] is None">doesn't exist</span> 
     71                    <span class="none" tal:condition="python:info['slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span> 
    7672                </td> 
    7773            </tr> 
    7874            <tr> 
    79                 <th>Total</th> 
     75                <th i18n:translate="table_header_total">Total</th> 
    8076                <td tal:content="view/getTotal">123</td> 
    8177            </tr> 
    8278            <tr> 
    83                 <th>Expressions</th> 
     79                <th i18n:translate="table_header_expressions">Expressions</th> 
    8480                <td> 
    8581                    <ul> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/qa_overview.pt

    r3039 r3407  
    99    <body> 
    1010        <div id="wrapper"> 
    11             <h1>Quintagroup Analytics Tool for Plone</h1> 
    12             <ul class="formTabs" id="navigation"> 
    13                 <li class="formTab"><a class="selected" href="@@qa_overview">Overview</a></li> 
    14                 <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li> 
    15                 <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li> 
    16                 <li class="formTab"><a href="@@type_by_state">Types by state</a></li> 
    17                 <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li> 
    18                 <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li> 
    19                 <li class="formTab"><a href="@@properties_stats">Properties stats</a></li> 
    20  
     11            <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1> 
     12            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
     13                <span tal:repeat="formTabItem view/analiticsNavigation"> 
     14                    <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     15                </span> 
    2116            </ul> 
    22             <h3>Welcome to Quintagroup Analytics Tool</h3> 
    23             <p>Quintagroup Analytics Tool provides statistic information about your Plone site. 
     17            <h3 i18n:translate="qa_overview_subtitle_welcome">Welcome to Quintagroup Analytics Tool</h3> 
     18            <p i18n:translate="qa_overview_paragraph_desc1">Quintagroup Analytics Tool provides statistic information about your Plone site. 
    2419               You can see how many content objects are on you site, who are content owners, 
    2520               what are content workflow states, and how many portlets are assigned on different contexts. 
    2621            </p> 
    27             <p>Information provided by Quintagroup Analytics Tool allows you to see your site's overall 
     22            <p i18n:translate="qa_overview_paragraph_desc2">Information provided by Quintagroup Analytics Tool allows you to see your site's overall 
    2823               content from different perspectives. This can be very useful while migrating your site into 
    2924               newer Plone version, or into another CMS. With its help you can visually audit the content  
    3025               setup in Plone site before migration and compare it with the migrated website structure. 
    3126            </p> 
    32             <p>Visit the following pages to see your site's statistics:</p> 
     27            <p i18n:translate="qa_overview_paragraph_visit">Visit the following pages to see your site's statistics:</p> 
    3328            <dl> 
    3429              <dt> 
    35                 <a href="@@ownership_by_type">Content Ownership by Type</a> 
     30                <a href="@@ownership_by_type" i18n:translate="qa_overview_visits_link_content_by_type">Content Ownership by Type</a> 
    3631              </dt> 
    37               <dd>Information about most popular content types on your site. Here you can see the most frequently  
     32              <dd i18n:translate="qa_overview_visits_link_content_by_type_desc">Information about most popular content types on your site. Here you can see the most frequently  
    3833                  created content types on your site and their owners. </dd> 
    3934              <dt> 
    40                 <a href="@@ownership_by_state">Content Ownership by State</a> 
     35                <a href="@@ownership_by_state" i18n:translate="qa_overview_visits_link_content_by_state">Content Ownership by State</a> 
    4136              </dt> 
    42               <dd>Information about site's content workflow states. Here you can see how many content object 
     37              <dd i18n:translate="qa_overview_visits_link_content_by_state_desc">Information about site's content workflow states. Here you can see how many content object 
    4338                  are published/submitted for review/etc. and their owners.</dd> 
    4439              <dt> 
    45                 <a href="@@type_by_state">Content Types by State</a> 
     40                <a href="@@type_by_state" i18n:translate="qa_overview_visits_link_content_types_by_state">Content Types by State</a> 
    4641              </dt> 
    47               <dd>Information about site's most frequently created content types and their workflow states.</dd> 
     42              <dd i18n:translate="qa_overview_visits_link_content_types_by_state_desc">Information about site's most frequently created content types and their workflow states.</dd> 
    4843              <dt> 
    49                 <a href="@@portlets_stats">Site Portlets</a> 
     44                <a href="@@portlets_stats" i18n:translate="qa_overview_visits_link_portlets">Site Portlets</a> 
    5045              </dt> 
    51               <dd>Information about site portlets assigned throughout site sections. This information  
     46              <dd i18n:translate="qa_overview_visits_link_portlets_desc">Information about site portlets assigned throughout site sections. This information  
    5247                  can be exported into .csv format. </dd> 
    5348              <dt> 
    54                 <a href="@@legacy_portlets">Legacy Portlets</a> 
     49                <a href="@@legacy_portlets" i18n:translate="qa_overview_visits_link_legacy_portlets">Legacy Portlets</a> 
    5550              </dt> 
    56               <dd>Information about legacy portlets assigned throughout site sections. This information  
     51              <dd i18n:translate="qa_overview_visits_link_legacy_portlets_desc">Information about legacy portlets assigned throughout site sections. This information  
    5752                  can be exported into .csv format.</dd> 
    5853              <dt> 
    59                 <a href="@@properties_stats">Properties Stats</a> 
     54                <a href="@@properties_stats" i18n:translate="qa_overview_visits_link_properties">Properties Stats</a> 
    6055              </dt> 
    61               <dd>Information on certain property values for all site objects.</dd> 
     56              <dd i18n:translate="qa_overview_visits_link_properties_desc">Information on certain property values for all site objects.</dd> 
    6257            </dl> 
    6358        </div> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/type_by_state.pt

    r3039 r3407  
    99    <body> 
    1010        <div id="wrapper"> 
    11             <h1>Quintagroup Analytics Tool for Plone</h1> 
    12             <ul class="formTabs" id="navigation"> 
    13                 <li class="formTab"><a href="@@qa_overview">Overview</a></li> 
    14                 <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li> 
    15                 <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li> 
    16                 <li class="formTab"><a class="selected" href="@@type_by_state">Types by state</a></li> 
    17                 <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li> 
    18                 <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li> 
    19                 <li class="formTab"><a href="@@properties_stats">Properties stats</a></li> 
     11            <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1> 
     12<span tal:content="context/absolute_url"/> 
     13            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId"> 
     14                <span tal:repeat="formTabItem view/analiticsNavigation"> 
     15                    <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> 
     16                </span> 
    2017            </ul> 
    2118        </div> 
    22         <p>The following chart and table display workflow states of the site's most frequently created content types.  
     19        <p i18n:translate="type_by_state_desc">The following chart and table display workflow states of the site's most frequently created content types.  
    2320           You can see the total number of site's content objects of every content type.</p> 
    2421        <div id="chart" tal:content="structure view/getChart"> 
  • quintagroup.analytics/trunk/quintagroup/analytics/browser/views.py

    r3171 r3407  
    1818 
    1919from GChartWrapper import VerticalBarStack 
    20  
    2120from quintagroup.analytics.config import COLORS, OTHER_TYPES, NO_WF_BIND 
    22  
    23  
    24 class OwnershipByType(BrowserView): 
     21from quintagroup.analytics import QuintagroupAnalyticsMessageFactory as _ 
     22 
     23MENUEITEMS = [{'href':'qa_overview',         'content':_('Overview')}, 
     24              {'href':'ownership_by_type',   'content':_('Ownership by type')}, 
     25              {'href':'ownership_by_state',  'content':_('Ownership by state')}, 
     26              {'href':'type_by_state',       'content':_('Types by state')}, 
     27              {'href':'portlets_stats',      'content':_('Portlets stats')}, 
     28              {'href':'legacy_portlets',     'content':_('Legacy portlets')}, 
     29              {'href':'properties_stats',    'content':_('Properties stats')},] 
     30 
     31class AnalyticsBaseView(BrowserView): 
     32    def analiticsNavigation(self): 
     33        return MENUEITEMS 
     34 
     35 
     36class OwnershipByType(AnalyticsBaseView): 
    2537    MAX = 10 
    26  
    2738    def __init__(self, context, request): 
    2839        self.context = context 
     
    97108        chart = VerticalBarStack(data, encoding='text') 
    98109        types = other and types + OTHER_TYPES or types 
    99         chart.title('Content ownership by type').legend(*(types)) 
     110        chart.title(_('Content ownership by type')).legend(*(types)) 
    100111        chart.bar('a', 10, 0).legend_pos("b") 
    101112        chart.color(*COLORS) 
     
    106117 
    107118 
    108 class OwnershipByState(BrowserView): 
     119class OwnershipByState(AnalyticsBaseView): 
    109120    MAX = 10 
    110121 
     
    189200        max_value = max(self.getTotal()) 
    190201        chart = VerticalBarStack(data, encoding='text') 
    191         title = 'Content ownership by state' 
     202        title = _('Content ownership by state') 
    192203        chart.title(title).legend(*self.states + [NO_WF_BIND]) 
    193204        chart.bar('a', 10, 0).legend_pos("b") 
     
    199210 
    200211 
    201 class TypeByState(BrowserView): 
     212class TypeByState(AnalyticsBaseView): 
    202213    MAX = 10 
    203214 
     
    281292        max_value = max(self.getTotal()) 
    282293        chart = VerticalBarStack(data, encoding='text') 
    283         chart.title('Content type by state').legend( 
     294        chart.title(_('Content type by state')).legend( 
    284295            *self.states + [NO_WF_BIND]) 
    285296        chart.bar('a', 10, 0).legend_pos("b") 
     
    291302 
    292303 
    293 class LegacyPortlets(BrowserView): 
     304class LegacyPortlets(AnalyticsBaseView): 
    294305    def __init__(self, context, request): 
    295306        self.context = context 
     
    358369 
    359370 
    360 class PropertiesStats(BrowserView): 
     371class PropertiesStats(AnalyticsBaseView): 
    361372    def __init__(self, context, request): 
    362373        self.context = context 
     
    427438 
    428439 
    429 class PortletsStats(BrowserView): 
     440class PortletsStats(AnalyticsBaseView): 
    430441    def __init__(self, context, request): 
    431442        self.context = context 
  • quintagroup.analytics/trunk/quintagroup/analytics/configure.zcml

    r3041 r3407  
    33    xmlns:five="http://namespaces.zope.org/five" 
    44    xmlns:genericsetup="http://namespaces.zope.org/genericsetup" 
     5    xmlns:i18n="http://namespaces.zope.org/i18n" 
    56    i18n_domain="quintagroup.analytics"> 
    67 
     
    89 
    910  <five:registerPackage package="."/> 
     11 
     12  <i18n:registerTranslations directory="locales"/> 
    1013 
    1114  <genericsetup:registerProfile 
Note: See TracChangeset for help on using the changeset viewer.