Move translations to babel locations.

If we structure things like this, we can get things
actually, you know, installed.

Locales ast and oc aren't supported by babel. We'll re-import them
from Launchpad once we get babel updated.

If you want translations installed, run:

  python setup.py compile_catalog

Before you run either setup.py sdist or setup.py install

More work is needed to actually properly use the installed translations, but
we're closer.

Change-Id: I4a4bedd982c89063aa09688c9cbcf97054bcb34b
This commit is contained in:
Monty Taylor 2012-02-08 00:16:50 -08:00
parent 06d26d1ce5
commit c58e4bc88b
3 changed files with 6 additions and 7 deletions

2
.gitignore vendored
View File

@ -12,4 +12,4 @@ nova.egg-info
.venv
*.sqlite
*.log
po/*.pot
*.mo

View File

@ -9,18 +9,18 @@ tag_date = 0
tag_svn_revision = 0
[compile_catalog]
directory = locale
directory = nova/locale
domain = nova
[update_catalog]
domain = nova
output_dir = po
input_file = po/nova.pot
output_dir = nova/locale
input_file = nova/locale/nova.pot
[extract_messages]
keywords = _ gettext ngettext
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = po/nova.pot
output_file = nova/locale/nova.pot
[nosetests]
verbosity=2

View File

@ -65,7 +65,6 @@ setup(name='nova',
packages=find_packages(exclude=['bin', 'smoketests']),
include_package_data=True,
test_suite='nose.collector',
data_files=find_data_files('share/nova', 'tools'),
scripts=['bin/clear_rabbit_queues',
'bin/instance-usage-audit',
'bin/nova-all',