enabling i18n with Babel

Change-Id: I7d5a170f31c2846474b3836a08c6445577613e98
This commit is contained in:
Joe Heck 2012-09-29 16:03:23 -07:00
parent 9af4ea0b86
commit dc4ca88492
2 changed files with 15 additions and 0 deletions

1
babel.cfg Normal file
View File

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

View File

@ -12,3 +12,17 @@ all_files = 1
[upload_sphinx]
upload-dir = doc/build/html
[compile_catalog]
directory = keystoneclient/locale
domain = keystoneclient
[update_catalog]
domain = keystoneclient
output_dir = keystoneclient/locale
input_file = keystoneclient/locale/keystoneclient.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = keystoneclient/locale/keystoneclient.pot