[openstack-dev] [horizon][infra] django.pot hardcoded or not?

Clark Boylan cboylan at sapwetik.org
Wed Dec 30 22:27:06 UTC 2015


The problem with using a tox target is that we use privileged Jenkins
machines to do the extraction and don't want arbitrary code to run on
them. It would be possible to run arbitrary code if we used a tox
target.

Clark

On Wed, Dec 30, 2015, at 10:07 AM, Akihiro Motoki wrote:
> I haven't looked into the code detail, but as far as I read
> https://docs.djangoproject.com/en/1.9/topics/i18n/translation/#specialties-of-django-translation
> it is enforced by django framework.
> 
> How django searches message catalogs is described at
> https://docs.djangoproject.com/en/1.9/topics/i18n/translation/#how-django-discovers-translations.
> In addition, django requires separate string domains for python part
> and JavaScript part.
> 
> I don't think it is easy to change this.
> 
> I think it is better to define a tox target to extract message catalogs
> instead of using "tox -e venv - ....".
> 
> Akihiro
> 
> 
> 2015-12-31 0:42 GMT+09:00 Andreas Jaeger <aj at suse.com>:
> > I'm currently looking into simplifying and consolidation of translation
> > setup for projects (draft spec at [1]) and have a question for dashboard
> > translations. Right now, horizon uses django.pot and djangojs.pot - and most
> > *-dashboard projects use the same names. Are these names enforced by the
> > django framework and thus cannot be changed or are they setup in our
> > repositories this way and thus could be changed?
> >
> > I prefer to rename them to make it clearer which project they belong to as
> > part of my spec and would like your input on whether that's feasible.
> >
> > Note: Once the spec is fleshed out, I'll send another email asking for
> > review...
> >
> > Andreas
> >
> > References:
> > [1] https://review.openstack.org/262545
> >
> > --
> >  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
> >   SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> >    GF: Felix Imendörffer, Jane Smithard, Graham Norton,
> >        HRB 21284 (AG Nürnberg)
> >     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
> >
> >
> > __________________________________________________________________________
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list