From 0ea41595e683562c1c5567a84ecf8f02c87eba3e Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 27 May 2015 11:41:25 +0200 Subject: [PATCH] Fix translation setup The infra scripts really expect $REPODIR/locale to work, fix setup.cfg and rename the locale file so that infra scripts work. This fixes change Id9f5b08835a4780a8448c989a878c03b70a97803 which already said:"The proper place is for all python projects $PROJECT/locale/$PROJECT.pot - see setup.cfg." - but then during review we missed that instead of PROJECT=python-magnumclient, it used magnumclient - and the infra scripts do not cope with that since PROJECT really has to be the name of the repository. Change-Id: Idc5efe52a1ff1b0cb8599e1258e411522547f0e4 --- .../locale/python-magnumclient.pot | 0 setup.cfg | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename {magnumclient => python-magnumclient}/locale/python-magnumclient.pot (100%) diff --git a/magnumclient/locale/python-magnumclient.pot b/python-magnumclient/locale/python-magnumclient.pot similarity index 100% rename from magnumclient/locale/python-magnumclient.pot rename to python-magnumclient/locale/python-magnumclient.pot diff --git a/setup.cfg b/setup.cfg index 73f8b8f7..37332781 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,18 +34,18 @@ all_files = 1 upload-dir = doc/build/html [compile_catalog] -directory = magnumclient/locale +directory = python-magnumclient/locale domain = python-magnumclient [update_catalog] domain = python-magnumclient -output_dir = magnumclient/locale -input_file = magnumclient/locale/python-magnumclient.pot +output_dir = python-magnumclient/locale +input_file = python-magnumclient/locale/python-magnumclient.pot [extract_messages] keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg -output_file = magnumclient/locale/python-magnumclient.pot +output_file = python-magnumclient/locale/python-magnumclient.pot [wheel] universal = 1