diff --git a/babel.cfg b/babel.cfg new file mode 100644 index 00000000..efceab81 --- /dev/null +++ b/babel.cfg @@ -0,0 +1 @@ +[python: **.py] diff --git a/magnum-ui/locale/magnum-ui.pot b/magnum-ui/locale/magnum-ui.pot new file mode 100644 index 00000000..082b439c --- /dev/null +++ b/magnum-ui/locale/magnum-ui.pot @@ -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 , 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 \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 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 "" + diff --git a/setup.cfg b/setup.cfg index 6f30ca12..3c59a775 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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