From f7a26601b28805939a797fd1f4d1a844ec5d3847 Mon Sep 17 00:00:00 2001 From: Mark Doffman Date: Tue, 8 Sep 2015 09:33:18 -0700 Subject: 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 Change-Id: I57804496d1ec67b566b350941e71206903dd8d1d Closes-Bug: #1492444 --- setup.cfg | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 07cb81b0..35759475 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 -- cgit v1.2.1