Ignore:
Timestamp:
19 Jun 2016, 19:29:57 (9 years ago)
Author:
Henrik Bettermann
Message:

Translate generator name.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/reports.py

    r12900 r13958  
    1919"""
    2020import grok
     21from zope.i18n import translate
    2122from zope.component import getUtility, queryUtility
    2223from zope.location.location import located
     
    7273            job = getUtility(IJobManager).get(job_id)
    7374            generator = queryUtility(IReportGenerator, name=gen_name)
    74             gen_title = getattr(generator, 'title', 'Unknown')
     75            gen_title = translate(getattr(generator, 'title', _('Unknown')))
    7576            args = ', '.join([str(x) for x in job.kwargs['kw'].values()])
    7677            descr = '%s (%s)' % (gen_title, args)
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py

    r13867 r13958  
    3737class ISessionResultsPresentation(ILevelReport):
    3838
    39     """ Same interface as for level reports.
     39    """ Same interface as for level session results presentation.
    4040    """
    4141
Note: See TracChangeset for help on using the changeset viewer.