Setup for translation

To start translation, we need to initially import the
translation file - and place it at the proper place so that
the usual CI scripts can handle it.

The proper place is for all python projects
$PROJECT/locale/$PROJECT.pot - see setup.cfg.

Further imports will be done by the OpenStack Proposal bot.

Setup also setup.cfg with the usual babel commands and add the default
babel.cfg file.

Change-Id: I2c0350e15c68bcae2a0611dade5f5a0705a9387d
This commit is contained in:
Gary Kotton 2015-11-29 03:13:04 -08:00
parent 6a96ad8ab8
commit 0e9bb23849
3 changed files with 1648 additions and 1 deletions

View File

@ -1,2 +1 @@
[python: **.py] [python: **.py]

View File

@ -65,3 +65,18 @@ autodoc_index_modules = 1
[wheel] [wheel]
universal = 1 universal = 1
[compile_catalog]
directory = vmware_nsx/locale
domain = vmware_nsx
[update_catalog]
domain = vmware_nsx
output_dir = vmware_nsx/locale
input_file = vmware_nsx/locale/vmware_nsx.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = vmware_nsx/locale/vmware_nsx.pot

File diff suppressed because it is too large Load Diff