Enable i18n with Babel.

Add Babel commands to setup.cfg. Create the first .pot file with current
translatable strings using `python setup.py extract_messages`.

Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com>

Change-Id: I57804496d1ec67b566b350941e71206903dd8d1d
Closes-Bug: #1492444
This commit is contained in:
Mark Doffman 2015-09-08 09:33:18 -07:00 committed by Matt Riedemann
parent 9e15b3d7c0
commit f7a26601b2
3 changed files with 2186 additions and 0 deletions

1
babel.cfg Normal file
View File

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

File diff suppressed because it is too large Load Diff

View File

@ -36,6 +36,20 @@ all_files = 1
[upload_sphinx]
upload-dir = doc/build/html
[compile_catalog]
domain = python-novaclient
directory = python-novaclient/locale
[update_catalog]
domain = python-novaclient
output_dir = python-novaclient/locale
input_file = python-novaclient/locale/python-novaclient.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = python-novaclient/locale/python-novaclient.pot
[wheel]
universal = 1