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 4a4c274c83
commit b54179438e
26 changed files with 7469 additions and 5593 deletions

2
.gitignore vendored
View File

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

View File

@ -1,5 +1,5 @@
include HACKING LICENSE run_tests.py run_tests.sh
include README exercise_rsapi.py
include LICENSE run_tests.sh
include README.rst
include MANIFEST.in pylintrc Authors
graft nova/CA
graft doc
@ -7,7 +7,6 @@ graft smoketests
graft tools
graft etc
graft contrib
graft po
graft plugins
graft nova/api/openstack/*/schemas
include nova/auth/*.schema
@ -43,3 +42,5 @@ include plugins/xenapi/README
include plugins/xenapi/etc/xapi.d/plugins/objectstore
include plugins/xenapi/etc/xapi.d/plugins/pluginlib_nova.py
global-exclude *.pyc
recursive-include nova/locale *

0
nova/locale/__init__.py Normal file
View File

7459
nova/locale/nova.pot Normal file

File diff suppressed because it is too large Load Diff

2789
po/ast.po

File diff suppressed because it is too large Load Diff

2794
po/oc.po

File diff suppressed because it is too large Load Diff

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',