summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorSven Anderson <sven@redhat.com>2016-05-20 15:34:00 +0200
committerSven Anderson <sven@redhat.com>2016-05-20 17:56:06 +0200
commitece7b8f1e7b6f2256f88531824c5c270ce487b30 (patch)
treec154203250c131e42fd839b78ac206362493dfcd /setup.cfg
parent1528db4cbe4e9cc6f20acff29b64e6ba39f99c12 (diff)
downloadnova-ece7b8f1e7b6f2256f88531824c5c270ce487b30.tar.gz
Let setup.py compile_catalog process all language files
Two years ago the translation files have been split into several files, separating the log messages of different log levels from each other, like X.pot, X-log-warning.pot, X-log-info.pot, and so on. However, the setup.py command `compile_catalogs`, that comes from the babel package and compiles the corresponding .po files into .mo files, only supported one file per python package. This means that during packaging `compile_catalogs` never compiled the X-log-*.po files, so the corresponding translations were always missing. Since babel 2.3 the domain can be set to a space separated list of domains. This change adds the the additional log level files to the domain list. The obsolete check that .po and .pot files are valid is removed from tox.ini. Change-Id: I0d9cb16ac50caae570c57a1db6bed656bf13c3dc Closes-Bug: #1536226
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index 56ad9298f7..d460f5d084 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -217,7 +217,7 @@ tag_svn_revision = 0
[compile_catalog]
directory = nova/locale
-domain = nova
+domain = nova nova-log-critical nova-log-error nova-log-info nova-log-warning
[update_catalog]
domain = nova