diff options
author | Mark Doffman <mjdoffma@us.ibm.com> | 2015-09-08 09:33:18 -0700 |
---|---|---|
committer | Matt Riedemann <mriedem@us.ibm.com> | 2015-09-08 10:10:25 -0700 |
commit | f7a26601b28805939a797fd1f4d1a844ec5d3847 (patch) | |
tree | 898b8d327fed6946611ceb26edaf3bd5bd1e01e2 /setup.cfg | |
parent | 9e15b3d7c07d605947b8e712e36d982a0e14fb90 (diff) | |
download | python-novaclient-f7a26601b28805939a797fd1f4d1a844ec5d3847.tar.gz |
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
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |