<div dir="ltr"><div><div>My best guess is that the current setting for INSTALLED_APPS wound-up being derived from the slightly nomadic history (moving from its own repo, then into horizon, then into contrib, then back to its own repo). I most likely didn't think much it other than to shorten the way that we reference our templates.<br></div>I will take a look at your patch (thanks). Looks like the tests all passed, so I suspect it will be just fine for us. Thanks for the explanation too. Your help is always welcomed.<br><br></div>Chad<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 21, 2016 at 12:22 PM, Akihiro Motoki <span dir="ltr"><<a href="mailto:amotoki@gmail.com" target="_blank">amotoki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi sahara-dashaboard team (perhaps horizon and sahara dev team),<br>
<br>
I am working on translation support in sahara-dashboard for feature<br>
parity of Liberty horizon.<br>
<br>
TL;DR: Why does not sahara-dashboard use 'sahara_dashboard' as INSTALLED_APPS?<br>
Can't we add 'sahara_dashboard' as INSTALLED_APPS?<br>
<br>
Long version:<br>
<br>
sahara-dashboard now uses<br>
<br>
ADD_INSTALLED_APPS = \<br>
["sahara_dashboard.content.data_processing",<br>
"sahara_dashboard.content.data_processing.clusters", ]<br>
<br>
instead of 'sahara_dashboard' as most horizon plugins do.<br>
<br>
On the other hand, the translation setup infra scripts uses<br>
sahara_dashboard.locale as the locale directory<br>
and django searches $apps/locale for each directory specified in<br>
$INSTALLED_APPS.<br>
<br>
To make translation work for sahara-dashboard, we need to place the<br>
'locale' directory<br>
in one of $INSTALLED_APPS directories.<br>
It seems the easiest way is to add INSTALLED_APPS to 'sahara_dashoard'<br>
without changing others.<br>
As far as I checked sahara-dashboard repo, adding INSTALLED_APPS has no problem.<br>
I proposed <a href="https://review.openstack.org/282883" rel="noreferrer" target="_blank">https://review.openstack.org/282883</a> based on my<br>
investigation results.<br>
<br>
Note: I am not sure why the current ADD_INSTALLED_APPS were chosen.<br>
However, changing all of them seems a problem because template paths<br>
seem to depend<br>
on INSTALLED_APPS.<br>
<br>
If it does not work, I would like to have more ideas from sahara-dashboard team<br>
on how to support translation in Mitaka.<br>
<br>
Thanks in advance!<br>
<br>
Akihiro<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div>