Update translation setup

Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.

The default path of POT file is changed to
$modulename/locale/$modulename.pot and
translation domain is changed from $reponame to $modulename.

Change-Id: Ia032c54bf8218cac232e5dd730875c3e3e18c01c
This commit is contained in:
Akihiro Motoki 2016-02-24 19:03:03 +09:00
parent b70edb479f
commit d51ba9641d

View File

@ -32,15 +32,15 @@ all_files = 1
upload-dir = doc/build/html
[compile_catalog]
directory = {{cookiecutter.repo_name}}/locale
domain = {{cookiecutter.repo_name}}
directory = {{cookiecutter.module_name}}/locale
domain = {{cookiecutter.module_name}}
[update_catalog]
domain = {{cookiecutter.repo_name}}
output_dir = {{cookiecutter.repo_name}}/locale
input_file = {{cookiecutter.repo_name}}/locale/{{cookiecutter.repo_name}}.pot
domain = {{cookiecutter.module_name}}
output_dir = {{cookiecutter.module_name}}/locale
input_file = {{cookiecutter.module_name}}/locale/{{cookiecutter.module_name}}.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = {{cookiecutter.repo_name}}/locale/{{cookiecutter.repo_name}}.pot
output_file = {{cookiecutter.module_name}}/locale/{{cookiecutter.module_name}}.pot