Ignore:
Timestamp:
07/07/11 11:56:56 (23 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
1a4bb4
Parents:
78d408
git-author:
Pedro Ferreira <jose.pedro.ferreira@…> (07/05/11 12:07:22)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (07/07/11 11:56:56)
Message:

[IMP] Babel integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/rh/CFADisplay.py

    recc645 r34d140  
    4141from MaKaC.common.info import HelperMaKaCInfo 
    4242from MaKaC.i18n import _ 
     43from indico.util.i18n import i18nformat 
    4344 
    4445 
     
    333334            tracks.append( """%s"""%track.getTitle() ) 
    334335        tw = TextWrapper() 
    335         msg = [ _("""_("Dear") %s,""")%self._abstract.getSubmitter().getStraightFullName() ] 
     336        msg = [ i18nformat("""_("Dear") %s,""")%self._abstract.getSubmitter().getStraightFullName() ] 
    336337        msg.append( "" ) 
    337338        msg.append( tw.fill(_("The submission of your abstract has been successfully processed.")) ) 
    338339        msg.append( "" ) 
    339340        tw.break_long_words = False 
    340         msg.append( tw.fill( _("""_("Abstract submitted"):\n<%s>.""")%urlHandlers.UHUserAbstracts.getURL( self._conf ) ) ) 
    341         msg.append( "" ) 
    342         msg.append( tw.fill( _("""_("Status of your abstract"):\n<%s>.""")%urlHandlers.UHAbstractDisplay.getURL( self._abstract ) ) ) 
     341        msg.append( tw.fill( i18nformat("""_("Abstract submitted"):\n<%s>.""")%urlHandlers.UHUserAbstracts.getURL( self._conf ) ) ) 
     342        msg.append( "" ) 
     343        msg.append( tw.fill( i18nformat("""_("Status of your abstract"):\n<%s>.""")%urlHandlers.UHAbstractDisplay.getURL( self._abstract ) ) ) 
    343344        msg.append( "" ) 
    344345        tw.subsequent_indent = "" 
    345         msg.append( tw.fill( _("""_("See below a detailed summary of your submitted abstract"):""") ) ) 
     346        msg.append( tw.fill( i18nformat("""_("See below a detailed summary of your submitted abstract"):""") ) ) 
    346347        msg.append( "" ) 
    347348        tw.subsequent_indent = " "*3 
    348         msg.append( tw.fill( _("""_("Conference"): %s""")%self._conf.getTitle() ) ) 
    349         msg.append( "" ) 
    350         msg.append( tw.fill( _("""_("Submitted by"): %s""")%self._abstract.getSubmitter().getFullName() ) ) 
    351         msg.append( "" ) 
    352         msg.append( tw.fill( _("""_("Submitted on"): %s""")%self._abstract.getSubmissionDate().strftime( "%d %B %Y %H:%M" ) ) ) 
    353         msg.append( "" ) 
    354         msg.append( tw.fill( _("""_("Title"): %s""")%self._abstract.getTitle() ) ) 
     349        msg.append( tw.fill( i18nformat("""_("Conference"): %s""")%self._conf.getTitle() ) ) 
     350        msg.append( "" ) 
     351        msg.append( tw.fill( i18nformat("""_("Submitted by"): %s""")%self._abstract.getSubmitter().getFullName() ) ) 
     352        msg.append( "" ) 
     353        msg.append( tw.fill( i18nformat("""_("Submitted on"): %s""")%self._abstract.getSubmissionDate().strftime( "%d %B %Y %H:%M" ) ) ) 
     354        msg.append( "" ) 
     355        msg.append( tw.fill( i18nformat("""_("Title"): %s""")%self._abstract.getTitle() ) ) 
    355356        msg.append( "" ) 
    356357        for f in self._conf.getAbstractMgr().getAbstractFieldsMgr().getFields(): 
     
    358359            msg.append( self._abstract.getField(f.getId()) ) 
    359360            msg.append( "" ) 
    360         msg.append( tw.fill( _("""_("Primary Authors"):""") ) ) 
     361        msg.append( tw.fill( i18nformat("""_("Primary Authors"):""") ) ) 
    361362        msg += primary_authors 
    362363        msg.append( "" ) 
    363         msg.append( tw.fill( _("""_("Co-authors"):""") ) ) 
     364        msg.append( tw.fill( i18nformat("""_("Co-authors"):""") ) ) 
    364365        msg += co_authors 
    365366        msg.append( "" ) 
    366         msg.append( tw.fill( _("""_("Abstract presenters"):""") ) ) 
     367        msg.append( tw.fill( i18nformat("""_("Abstract presenters"):""") ) ) 
    367368        msg += speakers 
    368369        msg.append( "" ) 
    369         msg.append( tw.fill( _("""_("Track classification"):""") ) ) 
     370        msg.append( tw.fill( i18nformat("""_("Track classification"):""") ) ) 
    370371        msg += tracks 
    371372        msg.append( "" ) 
    372         ctype= _("""--_("not specified")--""") 
     373        ctype= i18nformat("""--_("not specified")--""") 
    373374        if self._abstract.getContribType() is not None: 
    374375            ctype=self._abstract.getContribType().getName() 
    375         msg.append( tw.fill( _("""_("Presentation type"): %s""")%ctype) ) 
    376         msg.append( "" ) 
    377         msg.append( tw.fill( _("""_("Comments"): %s""")%self._abstract.getComments() ) ) 
     376        msg.append( tw.fill( i18nformat("""_("Presentation type"): %s""")%ctype) ) 
     377        msg.append( "" ) 
     378        msg.append( tw.fill( i18nformat("""_("Comments"): %s""")%self._abstract.getComments() ) ) 
    378379        msg.append( "" ) 
    379380        return "\n".join( msg ) 
     
    381382    def getBody(self): 
    382383        msg=self.getMsg() 
    383         return _(""" 
     384        return i18nformat(""" 
    384385_("The following email has been sent to %s"): 
    385386 
Note: See TracChangeset for help on using the changeset viewer.