diff --git a/babel.cfg b/babel.cfg index c307e76..efe2a07 100644 --- a/babel.cfg +++ b/babel.cfg @@ -1,6 +1,5 @@ [extractors] django = django_babel.extract:extract_django -[django: templates/**.*] -[django: horizon_cisco_ui/*/templates/**.*] -[python: horizon_cisco_ui/**.py] +[django: **/templates/**.html] +[python: **.py] diff --git a/horizon_cisco_ui/locale/django.pot b/horizon-cisco-ui/locale/horizon-cisco-ui.pot similarity index 66% rename from horizon_cisco_ui/locale/django.pot rename to horizon-cisco-ui/locale/horizon-cisco-ui.pot index 9dfd122..5ef0259 100644 --- a/horizon_cisco_ui/locale/django.pot +++ b/horizon-cisco-ui/locale/horizon-cisco-ui.pot @@ -1,14 +1,15 @@ -# Translations template for PROJECT. +# Translations template for horizon-cisco-ui. # Copyright (C) 2015 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. +# This file is distributed under the same license as the horizon-cisco-ui +# project. # FIRST AUTHOR , 2015. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: PROJECT VERSION\n" +"Project-Id-Version: horizon-cisco-ui 0.0.1.dev8\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-12-06 16:31+0000\n" +"POT-Creation-Date: 2015-12-07 10:46+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -127,6 +128,7 @@ msgstr "" #: horizon_cisco_ui/cisco/nexus1000v/views.py:105 #: horizon_cisco_ui/cisco/nexus1000v/views.py:107 #: horizon_cisco_ui/cisco/nexus1000v/views.py:111 +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/create_network_profile.html:3 msgid "Create Network Profile" msgstr "" @@ -182,6 +184,7 @@ msgid "Save Changes" msgstr "" #: horizon_cisco_ui/cisco/nexus1000v/views.py:123 +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/update_network_profile.html:3 msgid "Update Network Profile" msgstr "" @@ -193,6 +196,61 @@ msgstr "" msgid "Failed to obtain network profile binding" msgstr "" +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:5 +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_update_network_profile.html:5 +msgid "Description:" +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:6 +msgid "Name:" +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:6 +msgid " Select a name for your network profile." +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:7 +msgid "Segment Type:" +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:7 +msgid " Segment types available are VLAN, Overlay and Trunk." +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:8 +msgid "Segment Sub Type:" +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:8 +msgid "" +" Sub types available are for the Overlay and Trunk segments. Available " +"sub-types for Overlay are: Native-VXLAN, Enhanced-VXLAN or 'Other' (eg. " +"GRE) which can be manually inputed as a text parameter for subtype. " +"Available sub-type for Trunk is: VLAN." +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:9 +msgid "Segment Range:" +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_create_network_profile.html:9 +msgid "" +" Segment Ranges are 1-4093 for VLAN and above 5000 for Enhanced-VXLAN " +"Overlay." +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/_update_network_profile.html:6 +msgid "" +"Edit the network profile to update name, segment range or multicast IP " +"range." +msgstr "" + +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/index.html:3 +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/network_profile/index.html:3 +#: horizon_cisco_ui/cisco/nexus1000v/templates/nexus1000v/policy_profile/index.html:3 +msgid "Cisco Nexus 1000V Networking" +msgstr "" + #: horizon_cisco_ui/firewalls/views.py:23 msgid "Cisco Firewalls" msgstr "" diff --git a/setup.cfg b/setup.cfg index 2dfb76c..dfc070e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,9 +25,7 @@ classifier = setup-hooks = pbr.hooks.setup_hook [files] -packages = - horizon_cisco_ui.cisco - horizon_cisco_ui.firewalls +packages = horizon_cisco_ui [build_sphinx] all_files = 1 @@ -37,3 +35,17 @@ source-dir = doc/source [nosetests] verbosity=2 detailed-errors=1 + +[compile_catalog] +domain = horizon-cisco-ui +directory = horizon-cisco-ui/locale + +[update_catalog] +domain = horizon-cisco-ui +output_dir = horizon-cisco-ui/locale +input_file = horizon-cisco-ui/locale/horizon-cisco-ui.pot + +[extract_messages] +keywords = _ gettext ngettext l_ lazy_gettext +mapping_file = babel.cfg +output_file = horizon-cisco-ui/locale/horizon-cisco-ui.pot