def test_potemplate(self):
     product = self.factory.makeProduct(
         name='crumb-tester',
         displayname="Crumb Tester",
         translations_usage=ServiceUsage.LAUNCHPAD)
     series = self.factory.makeProductSeries(name="test", product=product)
     potemplate = self.factory.makePOTemplate(name="template",
                                              productseries=series)
     self.assertBreadcrumbs(
         [("Crumb Tester", "http://launchpad.dev/crumb-tester"),
          ("Series test", "http://launchpad.dev/crumb-tester/test"),
          ("Translations",
           "http://translations.launchpad.dev/crumb-tester/test"),
          (smartquote('Template "template"'),
           "http://translations.launchpad.dev/"
           "crumb-tester/test/+pots/template")], potemplate)
 def test_potemplate(self):
     product = self.factory.makeProduct(
         name='crumb-tester', displayname="Crumb Tester",
         translations_usage=ServiceUsage.LAUNCHPAD)
     series = self.factory.makeProductSeries(
         name="test", product=product)
     potemplate = self.factory.makePOTemplate(
         name="template", productseries=series)
     self.assertBreadcrumbs(
         [("Crumb Tester", "http://launchpad.dev/crumb-tester"),
          ("Series test", "http://launchpad.dev/crumb-tester/test"),
          ("Translations",
           "http://translations.launchpad.dev/crumb-tester/test"),
          (smartquote('Template "template"'),
           "http://translations.launchpad.dev/"
           "crumb-tester/test/+pots/template")],
         potemplate)
Example #3
0
 def page_title(self):
     """Return a relevant page title for this view."""
     return smartquote(
         'Change details for builder "%s"' % self.context.title)
 def label(self):
     """The form label."""
     return smartquote('Add a download file to %s' % self.context.title)
 def label(self):
     return smartquote('Current documentation for "%s"' %
                       self.context.displayname)
 def page_title(self):
     return smartquote(self.context.title)
 def label(self):
     """The form label."""
     return smartquote('Create a new release for %s' %
                       self.context.product.displayname)
 def label(self):
     """<h1> for the change log page."""
     return smartquote("Change logs for " + self.context.title)
 def label(self):
     return smartquote('Current documentation for "%s"' %
                       self.context.displayname)
Example #10
0
 def page_title(self):
     return smartquote("Search %s's packages" % self.context.displayname)
 def text(self):
     return smartquote('"%s" package') % (
         self.context.sourcepackagename.name)
Example #12
0
 def text(self):
     return smartquote('Template "%s"' % self.context.name)
 def page_title(self):
     return smartquote(
         'Edit subscription to branch "%s"' % self.branch.displayname)
 def label(self):
     return smartquote('Confirm attachment type of "%s"') % (
         self.context.title)
 def label(self):
     return smartquote('Edit attachment "%s"') % self.context.title
 def label(self):
     """The form label."""
     return smartquote('Delete %s' % self.context.title)
Example #17
0
 def page_title(self):
     return smartquote(
         u'The "%s" bug tracker in Launchpad' % self.context.title)
Example #18
0
 def label(self):
     """The form label."""
     return smartquote('Edit %s release details' % self.context.title)
 def label(self):
     return 'Publishing history of %s' % smartquote(self.context.title)
Example #20
0
 def label(self):
     """The form label."""
     return smartquote('Add a download file to %s' % self.context.title)
 def label(self):
     return smartquote(self.context.title)
Example #22
0
 def label(self):
     """The form label."""
     return smartquote('Delete %s' % self.context.title)
Example #23
0
 def label(self):
     target_displayname = self.context.translation_target.displayname
     return smartquote('Custom language code "%s" for %s' %
                       (self.context.language_code, target_displayname))
Example #24
0
 def page_title(self):
     """Return a relevant page title for this view."""
     return smartquote(
         'Change details for builder "%s"' % self.context.title)
 def label(self):
     return 'Publishing history of %s' % smartquote(self.context.title)
Example #26
0
 def label(self):
     return smartquote('Review discussion topics for "%s" sprint' %
                       self.context.title)
Example #27
0
 def label(self):
     return smartquote(
         'Build history for "%s"' % self.context.title)
 def label(self):
     """The form label."""
     return smartquote('Edit %s release details' % self.context.title)
Example #29
0
 def label(self):
     return smartquote('Delete "%s" sprint' % self.context.displayname)
 def label(self):
     target_displayname = self.context.translation_target.displayname
     return smartquote(
         'Custom language code "%s" for %s' % (
             self.context.language_code, target_displayname))
 def label(self):
     return smartquote(
         'Blueprint assignments for "%s"' % self.context.displayname)
 def text(self):
     return smartquote(
         'Custom language code "%s"' % self.context.language_code)
Example #33
0
 def label(self):
     return smartquote(
         'Build history for "%s"' % self.context.title)
 def label(self):
     return smartquote(
         'Consider agenda item for "%s"' % self.context.sprint.title)
Example #35
0
 def page_title(self):
     """See `LaunchpadView`."""
     return smartquote('Translations by %s in "%s"') % (
         self._person_name, self.context.title)
Example #36
0
 def page_title(self):
     return smartquote("Administer %s" % self.context.title)
Example #37
0
 def page_title(self):
     return smartquote(
         u'Change details for the "%s" bug tracker' % self.context.title)
Example #38
0
 def page_title(self):
     return smartquote("Search %s's packages" % self.context.displayname)
 def page_title(self):
     return smartquote(self.context.title)
Example #40
0
 def label(self):
     return smartquote('Edit attachment "%s"') % self.context.title
 def label(self):
     """Page heading."""
     return smartquote("Copyright for " + self.context.title)
Example #42
0
 def label(self):
     return smartquote('Confirm attachment type of "%s"') % (
         self.context.title)
 def label(self):
     return smartquote('Blueprint assignments for "%s"' %
                       self.context.displayname)
Example #44
0
 def text(self):
     return smartquote('Template "%s"' % self.context.name)
 def text(self):
     return smartquote('"%s" package') % (
         self.context.sourcepackagename.name)
 def page_title(self):
     return smartquote(
         'Link branch "%s" to a blueprint' % self.context.displayname)
Example #47
0
 def text(self):
     return smartquote('Custom language code "%s"' %
                       self.context.language_code)
Example #48
0
 def label(self):
     return smartquote(
         'Review discussion topics for "%s" sprint' % self.context.title)
 def title(self):
     """See `IDistributionSourcePackage`."""
     return smartquote('"%s" package in %s') % (
         self.sourcepackagename.name, self.distribution.displayname)
Example #50
0
 def title(self):
     """See `ISourcePackage`."""
     return smartquote('"%s" source package in %s') % (
         self.sourcepackagename.name, self.distroseries.displayname)
 def label(self):
     return smartquote(self.context.title)
 def title(self):
     """See `IDistributionSourcePackage`."""
     return smartquote('"%s" package in %s') % (
         self.sourcepackagename.name, self.distribution.displayname)