Fix translation setup

Set up project as django repo for translations following
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html

Change-Id: I08526174949811dbad862122663c04bee8d13b58
This commit is contained in:
Andreas Jaeger 2015-12-10 08:19:06 +01:00 committed by Rob Cresswell
parent e9e93f98a4
commit c3ba037ece
4 changed files with 19 additions and 262 deletions

5
babel-django.cfg Normal file
View File

@ -0,0 +1,5 @@
[extractors]
django = django_babel.extract:extract_django
[python: horizon_cisco_ui/**.py]
[django: horizon_cisco_ui/**/templates/**.html]

14
babel-djangojs.cfg Normal file
View File

@ -0,0 +1,14 @@
[extractors]
# We use a custom extractor to find translatable strings in AngularJS
# templates. The extractor is included in horizon.utils for now.
# See http://babel.pocoo.org/docs/messages/#referencing-extraction-methods for
# details on how this works.
angular = horizon.utils.babel_extract_angular:extract_angular
[javascript: horizon_cisco_ui/**.js]
# We need to look into all static folders for HTML files.
# The **/static ensures that we also search within
# /openstack_dashboard/dashboards/XYZ/static which will ensure
# that plugins are also translated.
[angular: horizon_cisco_ui/**/static/**.html]

View File

@ -1,5 +0,0 @@
[extractors]
django = django_babel.extract:extract_django
[django: **/templates/**.html]
[python: **.py]

View File

@ -1,257 +0,0 @@
# Translations template for horizon-cisco-ui.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the horizon-cisco-ui
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: horizon-cisco-ui 0.0.1.dev8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\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 <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"
#: horizon_cisco_ui/cisco/dashboard.py:19
msgid "Cisco"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:29
msgid "Select a project"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:34
msgid "Projects could not be retrieved."
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:47
msgid "Name"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:48
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:75
msgid "Segment Type"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:49
msgid "VLAN"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:50
msgid "Overlay"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:55
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:65
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:77
msgid "Sub Type"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:56
msgid "Native VXLAN"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:57
msgid "Enhanced VXLAN"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:58
msgid "Other"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:67
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:74
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:81
msgid "Multicast IP Range"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:75
msgid "Multicast IPv4 range(e.g. 224.0.1.0-224.0.1.100)"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:79
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:86
msgid "Sub Type Value (Manual Input)"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:88
msgid "Enter parameter (e.g. GRE)"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:90
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:96
msgid "Physical Network"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:97
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:147
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:73
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:95
msgid "Project"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:130
#, python-format
msgid "Network Profile %s was successfully created."
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:137
#, python-format
msgid "Failed to create network profile %s"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:144
msgid "ID"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:169
#, python-format
msgid "Network Profile %s was successfully updated."
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/forms.py:175
#, python-format
msgid "Failed to update network profile (%s)."
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/panel.py:21
msgid "Nexus 1000v"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:29
#: 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 ""
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:56
#, python-format
msgid "Failed to delete network profile (%s)."
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:64
#: horizon_cisco_ui/cisco/nexus1000v/views.py:117
msgid "Edit Network Profile"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:72
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:87
#: horizon_cisco_ui/cisco/nexus1000v/tabs.py:19
msgid "Network Profile"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:79
msgid "Segment Range"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:83
msgid "Physical Network Name"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:94
#: horizon_cisco_ui/cisco/nexus1000v/tables.py:99
#: horizon_cisco_ui/cisco/nexus1000v/tabs.py:28
msgid "Policy Profile"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/views.py:40
msgid "Unable to retrieve project information."
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/views.py:51
msgid "Network Profiles could not be retrieved."
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/views.py:69
msgid "Nexus 1000V"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/views.py:78
#: horizon_cisco_ui/cisco/nexus1000v/views.py:93
msgid "Cisco Nexus 1000V"
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/views.py:120
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 ""
#: horizon_cisco_ui/cisco/nexus1000v/views.py:143
msgid "Unable to retrieve network profile details."
msgstr ""
#: horizon_cisco_ui/cisco/nexus1000v/views.py:154
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 ""