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:
parent
4a4c274c83
commit
b54179438e
2
.gitignore
vendored
2
.gitignore
vendored
@ -12,4 +12,4 @@ nova.egg-info
|
||||
.venv
|
||||
*.sqlite
|
||||
*.log
|
||||
po/*.pot
|
||||
*.mo
|
||||
|
@ -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
0
nova/locale/__init__.py
Normal file
7459
nova/locale/nova.pot
Normal file
7459
nova/locale/nova.pot
Normal file
File diff suppressed because it is too large
Load Diff
10
setup.cfg
10
setup.cfg
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user