summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Heck <heckj@mac.com>2012-06-21 17:51:09 -0700
committerJoe Heck <heckj@mac.com>2012-06-21 18:03:09 -0700
commite0136d2f7c5b03d695d2ee0ef4d0fe0e310eca3e (patch)
treece58cb5bc34ad1c7d17480c1975418b9ec5996aa
parent991a6182e06327ed144f224efb04a81ddab2fae0 (diff)
downloadkeystone-e0136d2f7c5b03d695d2ee0ef4d0fe0e310eca3e.tar.gz
setting up babel for i18n work
blueprint start-keystone-i18n Change-Id: Ie18daada4b537b74a27aa1defe676698d9944468
-rw-r--r--babel.cfg1
-rw-r--r--keystone/locale/keystone.pot31
-rw-r--r--setup.cfg14
-rw-r--r--tools/test-requires3
4 files changed, 49 insertions, 0 deletions
diff --git a/babel.cfg b/babel.cfg
new file mode 100644
index 000000000..efceab818
--- /dev/null
+++ b/babel.cfg
@@ -0,0 +1 @@
+[python: **.py]
diff --git a/keystone/locale/keystone.pot b/keystone/locale/keystone.pot
new file mode 100644
index 000000000..108c940b9
--- /dev/null
+++ b/keystone/locale/keystone.pot
@@ -0,0 +1,31 @@
+# Translations template for keystone.
+# Copyright (C) 2012 ORGANIZATION
+# This file is distributed under the same license as the keystone project.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: keystone 2012.2\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2012-06-21 18:01-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"
+
+#: keystone/config.py:62
+msgid "Invalid syslog facility"
+msgstr ""
+
+#: keystone/policy/backends/rules.py:34
+msgid "JSON file representing policy"
+msgstr ""
+
+#: keystone/policy/backends/rules.py:37
+msgid "Rule checked when requested rule is not found"
+msgstr ""
+
diff --git a/setup.cfg b/setup.cfg
index 0e8f67dd6..2454585dd 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -8,6 +8,20 @@ all_files = 1
build-dir = doc/build
source-dir = doc/source
+[compile_catalog]
+directory = keystone/locale
+domain = keystone
+
+[update_catalog]
+domain = keystone
+output_dir = keystone/locale
+input_file = keystone/locale/keystone.pot
+
+[extract_messages]
+keywords = _ gettext ngettext l_ lazy_gettext
+mapping_file = babel.cfg
+output_file = keystone/locale/keystone.pot
+
[nosetests]
# NOTE(jkoelker) To run the test suite under nose install the following
# coverage http://pypi.python.org/pypi/coverage
diff --git a/tools/test-requires b/tools/test-requires
index c35d0150b..31d86d962 100644
--- a/tools/test-requires
+++ b/tools/test-requires
@@ -25,3 +25,6 @@ https://github.com/openstack/python-keystoneclient/zipball/master#egg=python-key
# swift_auth test dependencies
https://github.com/openstack/swift/zipball/master#egg=swift
netifaces
+
+# For translations processing
+Babel