enabling i18n with Babel

Change-Id: I7d5a170f31c2846474b3836a08c6445577613e98
This commit is contained in:
Joe Heck 2012-09-29 16:03:23 -07:00
parent ff5ea25a9a
commit a8f7879fcf
4 changed files with 37 additions and 0 deletions

1
babel.cfg Normal file
View File

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

View File

@ -0,0 +1,20 @@
# Translations template for python-keystoneclient.
# Copyright (C) 2012 ORGANIZATION
# This file is distributed under the same license as the
# python-keystoneclient project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: python-keystoneclient 0.1.3.12\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2012-09-29 16:02-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 0.9.6\n"

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

View File

@ -10,3 +10,5 @@ nosehtmloutput
pep8==1.2
sphinx>=1.1.2
unittest2>=0.5.1
Babel