Changeset 34d140 in indico for indico/MaKaC/webinterface/rh/CFADisplay.py
- Timestamp:
- 07/07/11 11:56:56 (23 months ago)
- 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)
- File:
-
- 1 edited
-
indico/MaKaC/webinterface/rh/CFADisplay.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/rh/CFADisplay.py
recc645 r34d140 41 41 from MaKaC.common.info import HelperMaKaCInfo 42 42 from MaKaC.i18n import _ 43 from indico.util.i18n import i18nformat 43 44 44 45 … … 333 334 tracks.append( """%s"""%track.getTitle() ) 334 335 tw = TextWrapper() 335 msg = [ _("""_("Dear") %s,""")%self._abstract.getSubmitter().getStraightFullName() ]336 msg = [ i18nformat("""_("Dear") %s,""")%self._abstract.getSubmitter().getStraightFullName() ] 336 337 msg.append( "" ) 337 338 msg.append( tw.fill(_("The submission of your abstract has been successfully processed.")) ) 338 339 msg.append( "" ) 339 340 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 ) ) ) 343 344 msg.append( "" ) 344 345 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"):""") ) ) 346 347 msg.append( "" ) 347 348 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() ) ) 355 356 msg.append( "" ) 356 357 for f in self._conf.getAbstractMgr().getAbstractFieldsMgr().getFields(): … … 358 359 msg.append( self._abstract.getField(f.getId()) ) 359 360 msg.append( "" ) 360 msg.append( tw.fill( _("""_("Primary Authors"):""") ) )361 msg.append( tw.fill( i18nformat("""_("Primary Authors"):""") ) ) 361 362 msg += primary_authors 362 363 msg.append( "" ) 363 msg.append( tw.fill( _("""_("Co-authors"):""") ) )364 msg.append( tw.fill( i18nformat("""_("Co-authors"):""") ) ) 364 365 msg += co_authors 365 366 msg.append( "" ) 366 msg.append( tw.fill( _("""_("Abstract presenters"):""") ) )367 msg.append( tw.fill( i18nformat("""_("Abstract presenters"):""") ) ) 367 368 msg += speakers 368 369 msg.append( "" ) 369 msg.append( tw.fill( _("""_("Track classification"):""") ) )370 msg.append( tw.fill( i18nformat("""_("Track classification"):""") ) ) 370 371 msg += tracks 371 372 msg.append( "" ) 372 ctype= _("""--_("not specified")--""")373 ctype= i18nformat("""--_("not specified")--""") 373 374 if self._abstract.getContribType() is not None: 374 375 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() ) ) 378 379 msg.append( "" ) 379 380 return "\n".join( msg ) … … 381 382 def getBody(self): 382 383 msg=self.getMsg() 383 return _("""384 return i18nformat(""" 384 385 _("The following email has been sent to %s"): 385 386
Note: See TracChangeset
for help on using the changeset viewer.
