This may be missing a site="translations" parameter but I just checked the
other links on the project page and they all go to the root site. In fact they
seem to be available on all sites. All other links to +configure-translations
go to the translations site. I don't know if there is some kind of concept
behind this setup or if it is just an oversight.
For a distribution, +configure-translations is only available on the
translations site. This adds to my confusion here.
But I don't think you need to do anything about it now. ;)
>
>
> class DerivativeDistributionOverviewMenu(DistributionOverviewMenu):
>
> === modified file 'lib/lp/registry/browser/product.py'
> === modified file 'lib/lp/registry/configure.zcml'
> === modified file 'lib/lp/registry/interfaces/distribution.py'
> --- lib/lp/registry/interfaces/distribution.py 2010-12-01 11:26:57 +0000
> +++ lib/lp/registry/interfaces/distribution.py 2010-12-29 12:49:35 +0000
> @@ -284,9 +284,9 @@
> "get the full functionality of LP")
>
> translation_focus = Choice(
> - title=_("Translation Focus"),
> + title=_("Translation focus"),
> description=_(
> - "The DistroSeries that should get the translation effort focus."),
> + "The release series translators should focus on."),
"The release series *that* translators should focus on." is much better to read.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Danilo,
thank you for this branch, great improvement in this. I am happy with you
landing this but please consider my few little comments.
review approve code,ui
Cheers,
Henning
> === modified file 'lib/lp/ registry/ browser/ configure. zcml' registry/ browser/ distribution. py' registry/ browser/ distribution. py 2010-12-16 19:59:20 +0000 registry/ browser/ distribution. py 2010-12-29 12:49:35 +0000 translations( self): configure- translations' , text, summary, icon='edit')
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -430,7 +430,7 @@
> def configure_
> text = 'Configure translations'
> summary = 'Allow users to provide translations for this project.'
> - return Link('+edit', text, summary, icon='edit')
> + return Link('+
This may be missing a site="translations" parameter but I just checked the translations
other links on the project page and they all go to the root site. In fact they
seem to be available on all sites. All other links to +configure-
go to the translations site. I don't know if there is some kind of concept
behind this setup or if it is just an oversight.
For a distribution, +configure- translations is only available on the
translations site. This adds to my confusion here.
But I don't think you need to do anything about it now. ;)
> ibutionOverview Menu(Distributi onOverviewMenu) : registry/ browser/ product. py' registry/ configure. zcml' registry/ interfaces/ distribution. py' registry/ interfaces/ distribution. py 2010-12-01 11:26:57 +0000 registry/ interfaces/ distribution. py 2010-12-29 12:49:35 +0000 ("Translation Focus"), ("Translation focus"),
>
> class DerivativeDistr
>
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -284,9 +284,9 @@
> "get the full functionality of LP")
>
> translation_focus = Choice(
> - title=_
> + title=_
> description=_(
> - "The DistroSeries that should get the translation effort focus."),
> + "The release series translators should focus on."),
"The release series *that* translators should focus on." is much better to read.
> required=False, 'FilteredDistro Series' ) current_ series getPublishedSou rces(exact_ match=True, name="apport" , distro_ series= series) [0].source_ package_ version name="apport" , series= series) [0].source_ package_ version as_webservice_ entry() registry/ interfaces/ product. py' registry/ interfaces/ product. py 2010-12-01 11:26:57 +0000 registry/ interfaces/ product. py 2010-12-29 12:49:35 +0000 ("Translation Focus"), required=False, ("Translation focus"), required=False, 'FilteredProduc tSeries' , IProductSeries,
> vocabulary=
>
> @@ -636,7 +636,8 @@
> archive = ubuntu.main_archive
> series = ubuntu.
> print archive.
> - source_
> + source_
> + distro_
> """
> export_
>
>
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -679,11 +679,11 @@
>
> translation_focus = exported(
> ReferenceChoice(
> - title=_
> + title=_
> vocabulary=
> schema=
> description=_(
> - 'The ProductSeries where translations are focused.')))
> + 'Project series translators should focus on.')))
Also, please add a "that".
> packages = Attribute( translations/ browser/ configure. zcml' translations/ browser/ configure. zcml 2010-12-22 12:05:12 +0000 translations/ browser/ configure. zcml 2010-12-29 12:49:35 +0000 "../templates/ hastranslationi mports- index.pt" lp.translations .publisher. TranslationsLay er"/> configure- translations" registry. interfaces. product. IProduct"
> translatable_
> "A list of the source packages for this product that can be "
>
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -809,12 +809,12 @@
> template=
> layer="
> <browser:page
> - name="+settings"
> + name="+
> for="lp.
> + facet="overview"
AFAIK the facet attribute is old and useless. The layer attribute is calling
the shots nowadays. I guess you can just leave it out.
> class=" lp.translations .browser. product. ProductSettings View" "launchpad. TranslationsAdm in" "../templates/ set-translators .pt" lp.translations .publisher. TranslationsLay er"/> "../templates/ configure- translations. pt"/> registry. interfaces. product. IProduct" "zope.Public" registry. interfaces. projectgroup. IProjectGroup" lp.translations .browser. project. ProjectSettings View" "launchpad. TranslationsAdm in" "../templates/ set-translators .pt" "../templates/ configure- translations. pt" lp.translations .publisher. TranslationsLay er"/>
> permission=
> - template=
> - layer="
> + template=
> <browser:pages
> for="lp.
> permission=
> @@ -872,7 +872,7 @@
> for="lp.
> class="
> permission=
> - template=
> + template=
> layer="
See, only available on the TranslationsLayer.
> lp.translations .browser. translations. HelpTranslateBu ttonView" "zope.Public" /> configure- translations" registry. interfaces. distribution. IDistribution" lp.translations .browser. distribution. DistributionSet tingsView" "launchpad. TranslationsAdm in" "../templates/ set-translators .pt" "../templates/ configure- translations. pt" lp.translations .publisher. TranslationsLay er"/>
> <!-- Distribution -->
> @@ -903,11 +903,11 @@
> class="
> permission=
> <browser:page
> - name="+settings"
> + name="+
> for="lp.
> class="
> permission=
> - template=
> + template=
> layer="
This one, too. As I said, I wonder if this is different from the
configuration of IProduct for a reason or just by accident.
> <browser:page registry. interfaces. distribution. IDistribution" translations/ browser/ distribution. py' translations/ browser/ distribution. py 2010-09-23 14:33:51 +0000 translations/ browser/ distribution. py 2010-12-29 12:49:35 +0000 with_permission ('launchpad. TranslationsAdm in') ons') with_permission ('launchpad. TranslationsAdm in') tingsView( TranslationsMix in, DistributionEdi tView): oup", "translationper mission" ] displayname)
> for="lp.
>
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -44,7 +44,7 @@
>
> @enabled_
> def settings(self):
> - text = 'Change permissions'
> + text = 'Configure translations'
> return Link('+settings', text, icon='edit', site='translati
>
> @enabled_
> @@ -129,13 +129,14 @@
>
>
> class DistributionSet
> - label = "Set permissions and policies"
> - field_names = ["translationgr
> -
> - @property
> - def page_title(self):
> - return "Set translation permissions for %s" % (
> - self.context.
> + label = "Translations settings"
Yeah! Finally this page is converted to 3.0! ;) I think, though, that it is
custom to include the displayname of the context in the label.
> + page_title = "Settings" focus", mission" , translations/ browser/ product. py' translations/ stories/ distribution/ xx-distribution -translations. txt' translations/ stories/ standalone/ xx-potemplate- index.txt' translations/ stories/ translationfocu s/xx-product- translationfocu s.txt' translations/ stories/ translationgrou ps/10-distro- translation- group.txt' translations/ stories/ translationgrou ps/15-product- translation- group.txt' translations/ stories/ translationgrou ps/46-test- distro- structured- permissions. txt' translations/ stories/ translationgrou ps/xx-change- translation- policy. txt' translations/ templates/ set-translators .pt' => 'lib/lp/ translations/ templates/ configure- translations. pt' translations/ templates/ distribution- translations. pt' translations/ templates/ hastranslationg roup-portlet- translation- groups- and-permission. pt'
> + field_names = [
> + "official_rosetta",
> + "translation_
> + "translationgroup",
> + "translationper
> + ]
>
> @property
> def cancel_url(self):
>
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> === modified file 'lib/lp/
> === renamed file 'lib/lp/
> === modified file 'lib/lp/
> === modified file 'lib/lp/
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
bW8YACgkQBT3oW1 L17ih8sQCfc0gL4 k9/DmvIABTKSHfm ap3o td15YKsknmrVErc DnOk
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk0
OdkAmwZP3Fm7/
=Fjng
-----END PGP SIGNATURE-----