~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/browser/pofile.py

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-26 06:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14049.
  • Revision ID: jeroen.vermeulen@canonical.com-20110926063007-1fb5eelnidpnra9a
Fix lots of lint in recently-changed files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
                else:
344
344
                    groups.append(_(u"%s assigned by %s") % (
345
345
                        translator.translator.displayname, group.title))
 
346
 
346
347
            # There are at most two translation groups, so just using 'and'
347
348
            # is fine here.
348
 
            statement = (_(u"This translation is managed by ") +
349
 
                         _(u" and ").join(groups))+"."
 
349
            statement = _(u"This translation is managed by %s.") % (
 
350
                u" and ".join(groups))
350
351
        else:
351
352
            statement = _(u"No translation group has been assigned.")
352
353
        return statement
395
396
        show_option_changed = (
396
397
            old_show_option is not None and old_show_option != self.show)
397
398
        if show_option_changed:
398
 
            force_start = True # start will be 0, by default
 
399
            # Start will be 0 by default.
 
400
            force_start = True
399
401
        else:
400
402
            force_start = False
401
403
        return POFileBatchNavigator(self._getSelectedPOTMsgSets(),
793
795
        show_option_changed = (
794
796
            old_show_option is not None and old_show_option != self.show)
795
797
        if show_option_changed:
796
 
            force_start = True # start will be 0, by default
 
798
            # Start will be 0 by default.
 
799
            force_start = True
797
800
        else:
798
801
            force_start = False
799
802
        return POFileBatchNavigator(self._getSelectedPOTMsgSets(),