From a97a487ec613969d363b8068541cc931399a2875 Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Mon, 30 May 2016 16:03:29 +0900 Subject: [PATCH] Move enabled files Files in "enabled" directory is not in target of "babel-django.cfg". So panel group label in these files are not translated. This patch moves these files and adds panel group label into translation target. Change-Id: Iaee01f7e1970d7beb7d166d12ceb80b807785c4a Closes-Bug: #1586917 --- README.rst | 6 +++--- devstack/plugin.sh | 2 +- doc/source/index.rst | 6 +++--- .../enabled/_1370_project_container-infra_panelgroup.py | 0 .../enabled/_1371_project_container-infra_bays_panel.py | 0 .../_1372_project_container-infra_baymodels_panel.py | 0 6 files changed, 7 insertions(+), 7 deletions(-) rename enabled/_50_project_container-infra_panelgroup.py => magnum_ui/enabled/_1370_project_container-infra_panelgroup.py (100%) rename enabled/_51_project_container-infra_bays_panel.py => magnum_ui/enabled/_1371_project_container-infra_bays_panel.py (100%) rename enabled/_52_project_container-infra_baymodels_panel.py => magnum_ui/enabled/_1372_project_container-infra_baymodels_panel.py (100%) diff --git a/README.rst b/README.rst index 865b88d4..061baf6f 100644 --- a/README.rst +++ b/README.rst @@ -48,9 +48,9 @@ Install Magnum UI with all dependencies in your virtual environment:: And enable it in Horizon:: - cp ../magnum-ui/enabled/_50_project_container-infra_panelgroup.py openstack_dashboard/local/enabled - cp ../magnum-ui/enabled/_51_project_container-infra_bays_panel.py openstack_dashboard/local/enabled - cp ../magnum-ui/enabled/_52_project_container-infra_baymodels_panel.py openstack_dashboard/local/enabled + cp ../magnum-ui/magnum_ui/enabled/_1370_project_container-infra_panelgroup.py openstack_dashboard/local/enabled + cp ../magnum-ui/magnum_ui/enabled/_1371_project_container-infra_bays_panel.py openstack_dashboard/local/enabled + cp ../magnum-ui/magnum_ui/enabled/_1372_project_container-infra_baymodels_panel.py openstack_dashboard/local/enabled To run horizon with the newly enabled Magnum UI plugin run:: diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 41a30d2c..fbeef844 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -15,7 +15,7 @@ function install_magnum_ui { } function configure_magnum_ui { - cp -a ${MAGNUM_UI_DIR}/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/ + cp -a ${MAGNUM_UI_DIR}/magnum_ui/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/ # NOTE: If locale directory does not exist, compilemessages will fail, # so check for an existence of locale directory is required. if [ -d ${MAGNUM_UI_DIR}/magnum_ui/locale ]; then diff --git a/doc/source/index.rst b/doc/source/index.rst index d0bf85ae..dff17a64 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -48,9 +48,9 @@ Install Magnum UI with all dependencies in your virtual environment:: And enable it in Horizon:: - cp ../magnum-ui/enabled/_50_project_containers_panelgroup.py openstack_dashboard/local/enabled - cp ../magnum-ui/enabled/_51_project_containers_bays_panel.py openstack_dashboard/local/enabled - cp ../magnum-ui/enabled/_52_project_containers_baymodels_panel.py openstack_dashboard/local/enabled + cp ../magnum-ui/magnum_ui/enabled/_1370_project_containers-infra_panelgroup.py openstack_dashboard/local/enabled + cp ../magnum-ui/magnum_ui/enabled/_1371_project_containers-infra_bays_panel.py openstack_dashboard/local/enabled + cp ../magnum-ui/magnum_ui/enabled/_1372_project_containers-infra_baymodels_panel.py openstack_dashboard/local/enabled To run horizon with the newly enabled Magnum UI plugin run:: diff --git a/enabled/_50_project_container-infra_panelgroup.py b/magnum_ui/enabled/_1370_project_container-infra_panelgroup.py similarity index 100% rename from enabled/_50_project_container-infra_panelgroup.py rename to magnum_ui/enabled/_1370_project_container-infra_panelgroup.py diff --git a/enabled/_51_project_container-infra_bays_panel.py b/magnum_ui/enabled/_1371_project_container-infra_bays_panel.py similarity index 100% rename from enabled/_51_project_container-infra_bays_panel.py rename to magnum_ui/enabled/_1371_project_container-infra_bays_panel.py diff --git a/enabled/_52_project_container-infra_baymodels_panel.py b/magnum_ui/enabled/_1372_project_container-infra_baymodels_panel.py similarity index 100% rename from enabled/_52_project_container-infra_baymodels_panel.py rename to magnum_ui/enabled/_1372_project_container-infra_baymodels_panel.py