From bd7d6f16151b3f65d743f9e8d422ce4e01988c9b Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 9 Aug 2015 07:24:54 +0200 Subject: [PATCH] Setup translations To start translation, we need to initially import the translation file - and place it at the proper place so that the usual CI scripts can handle it. The proper place is for all python projects $PROJECT/locale/$PROJECT.pot - see setup.cfg. Further imports will be done by the OpenStack Proposal bot. This patch is needed by https://review.openstack.org/210774 . Change-Id: I2aa56455a15dee0beb4da2b733e172d235a0d02a --- .../locale/oslo.policy-log-critical.pot | 20 ++++++++ oslo.policy/locale/oslo.policy-log-error.pot | 30 ++++++++++++ oslo.policy/locale/oslo.policy-log-info.pot | 20 ++++++++ .../locale/oslo.policy-log-warning.pot | 20 ++++++++ oslo.policy/locale/oslo.policy.pot | 47 +++++++++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 oslo.policy/locale/oslo.policy-log-critical.pot create mode 100644 oslo.policy/locale/oslo.policy-log-error.pot create mode 100644 oslo.policy/locale/oslo.policy-log-info.pot create mode 100644 oslo.policy/locale/oslo.policy-log-warning.pot create mode 100644 oslo.policy/locale/oslo.policy.pot diff --git a/oslo.policy/locale/oslo.policy-log-critical.pot b/oslo.policy/locale/oslo.policy-log-critical.pot new file mode 100644 index 00000000..62426c5b --- /dev/null +++ b/oslo.policy/locale/oslo.policy-log-critical.pot @@ -0,0 +1,20 @@ +# Translations template for oslo.policy. +# Copyright (C) 2015 ORGANIZATION +# This file is distributed under the same license as the oslo.policy +# project. +# FIRST AUTHOR , 2015. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: oslo.policy 0.9.1.dev1\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2015-08-09 07:14+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" + diff --git a/oslo.policy/locale/oslo.policy-log-error.pot b/oslo.policy/locale/oslo.policy-log-error.pot new file mode 100644 index 00000000..4bca21fe --- /dev/null +++ b/oslo.policy/locale/oslo.policy-log-error.pot @@ -0,0 +1,30 @@ +# Translations template for oslo.policy. +# Copyright (C) 2015 ORGANIZATION +# This file is distributed under the same license as the oslo.policy +# project. +# FIRST AUTHOR , 2015. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: oslo.policy 0.9.1.dev1\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2015-08-09 07:14+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" + +#: oslo_policy/_parser.py:202 oslo_policy/_parser.py:328 +#, python-format +msgid "Failed to understand rule %s" +msgstr "" + +#: oslo_policy/_parser.py:212 +#, python-format +msgid "No handler for matches of kind %s" +msgstr "" + diff --git a/oslo.policy/locale/oslo.policy-log-info.pot b/oslo.policy/locale/oslo.policy-log-info.pot new file mode 100644 index 00000000..0fb8b003 --- /dev/null +++ b/oslo.policy/locale/oslo.policy-log-info.pot @@ -0,0 +1,20 @@ +# Translations template for oslo.policy. +# Copyright (C) 2015 ORGANIZATION +# This file is distributed under the same license as the oslo.policy +# project. +# FIRST AUTHOR , 2015. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: oslo.policy 0.9.1.dev1\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2015-08-09 07:13+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" + diff --git a/oslo.policy/locale/oslo.policy-log-warning.pot b/oslo.policy/locale/oslo.policy-log-warning.pot new file mode 100644 index 00000000..62426c5b --- /dev/null +++ b/oslo.policy/locale/oslo.policy-log-warning.pot @@ -0,0 +1,20 @@ +# Translations template for oslo.policy. +# Copyright (C) 2015 ORGANIZATION +# This file is distributed under the same license as the oslo.policy +# project. +# FIRST AUTHOR , 2015. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: oslo.policy 0.9.1.dev1\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2015-08-09 07:14+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" + diff --git a/oslo.policy/locale/oslo.policy.pot b/oslo.policy/locale/oslo.policy.pot new file mode 100644 index 00000000..11fe1a0f --- /dev/null +++ b/oslo.policy/locale/oslo.policy.pot @@ -0,0 +1,47 @@ +# Translations template for oslo.policy. +# Copyright (C) 2015 ORGANIZATION +# This file is distributed under the same license as the oslo.policy +# project. +# FIRST AUTHOR , 2015. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: oslo.policy 0.9.1.dev1\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2015-08-09 07:21+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" + +#: oslo_policy/opts.py:30 +msgid "The JSON file that defines policies." +msgstr "" + +#: oslo_policy/opts.py:34 +msgid "Default rule. Enforced when a requested rule is not found." +msgstr "" + +#: oslo_policy/opts.py:40 +msgid "" +"Directories where policy configuration files are stored. They can be " +"relative to any directory in the search path defined by the config_dir " +"option, or absolute paths. The file defined by policy_file must exist for" +" these directories to be searched. Missing or empty directories are " +"ignored." +msgstr "" + +#: oslo_policy/policy.py:242 +#, python-format +msgid "%(rule)s on %(target)s by %(creds)s disallowed by policy" +msgstr "" + +#: oslo_policy/policy.py:358 +#, python-format +msgid "Rules must be an instance of dict or Rules, got %s instead" +msgstr "" +