Translation setup

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.

Note that translations have been setup already on infra side as part of
initial repo setup. This change is necessary so that the scripts
actually do what they should do.

Closes-Bug: #1511306
Change-Id: Ie518bffe825ae1c6d139a0613c30bc9748b52cd7
This commit is contained in:
Andreas Jaeger 2015-10-29 08:29:25 +01:00 committed by Andreas Jaeger
parent 0c104d0609
commit ee98efd101
3 changed files with 46 additions and 0 deletions

1
babel.cfg Normal file
View File

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

View File

@ -0,0 +1,31 @@
# Translations template for magnum-ui.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the magnum-ui project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: magnum-ui 0.0.1.dev23\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-10-29 08:28+0100\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 2.1.1\n"
#: magnum_ui/dashboard.py:21 magnum_ui/containers/panel.py:21
msgid "Containers"
msgstr ""
#: magnum_ui/bay/panel.py:22
msgid "Bays"
msgstr ""
#: magnum_ui/baymodel/panel.py:22
msgid "Bay Models"
msgstr ""

View File

@ -24,3 +24,17 @@ classifier =
[files]
packages =
magnum_ui
[compile_catalog]
directory = magnum-ui/locale
domain = magnum-ui
[update_catalog]
domain = magnum-ui
output_dir = magnum-ui/locale
input_file = magnum-ui/locale/magnum-ui.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = magnum-ui/locale/magnum-ui.pot