diff --git a/.gitignore b/.gitignore index d32d604..d252537 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,4 @@ doc/build .eggs/ doc/source/sourcecode *.swp - +ChangeLog diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index 937cfd7..0000000 --- a/ChangeLog +++ /dev/null @@ -1,8 +0,0 @@ -CHANGES -======= - -* Drop run_tests.sh, and just use tox -* Sync requirements with global-requirements -* N1Kv: remove trunk & segment range support -* Initial commit -* Added .gitreview diff --git a/babel.cfg b/babel.cfg new file mode 100644 index 0000000..c307e76 --- /dev/null +++ b/babel.cfg @@ -0,0 +1,6 @@ +[extractors] +django = django_babel.extract:extract_django + +[django: templates/**.*] +[django: horizon_cisco_ui/*/templates/**.*] +[python: horizon_cisco_ui/**.py] diff --git a/horizon_cisco_ui/babel-django.cfg b/horizon_cisco_ui/babel-django.cfg deleted file mode 100644 index ad09d34..0000000 --- a/horizon_cisco_ui/babel-django.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[extractors] -django = django_babel.extract:extract_django - -[python: **.py] -[django: templates/**.html] diff --git a/horizon_cisco_ui/babel-djangojs.cfg b/horizon_cisco_ui/babel-djangojs.cfg deleted file mode 100644 index a8273b6..0000000 --- a/horizon_cisco_ui/babel-djangojs.cfg +++ /dev/null @@ -1,14 +0,0 @@ -[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: **.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: **/static/**.html] diff --git a/horizon_cisco_ui/cisco/locale/django.pot b/horizon_cisco_ui/cisco/locale/django.pot deleted file mode 100644 index e69de29..0000000 diff --git a/horizon_cisco_ui/cisco/locale/djangojs.pot b/horizon_cisco_ui/cisco/locale/djangojs.pot deleted file mode 100644 index e69de29..0000000 diff --git a/horizon_cisco_ui/locale/django.pot b/horizon_cisco_ui/locale/django.pot new file mode 100644 index 0000000..9dfd122 --- /dev/null +++ b/horizon_cisco_ui/locale/django.pot @@ -0,0 +1,199 @@ +# Translations template for PROJECT. +# Copyright (C) 2015 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2015. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2015-12-06 16:31+0000\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" + +#: 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 +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 +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/firewalls/views.py:23 +msgid "Cisco Firewalls" +msgstr "" + diff --git a/manage.py b/manage.py index f640226..81254ff 100755 --- a/manage.py +++ b/manage.py @@ -19,5 +19,5 @@ from django.core.management import execute_from_command_line # noqa if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", - "horizon_cisco_ui.cisco.test.settings") + "horizon_cisco_ui.test.settings") execute_from_command_line(sys.argv) diff --git a/tools/install_venv_common.py b/tools/install_venv_common.py index 46822e3..e279159 100644 --- a/tools/install_venv_common.py +++ b/tools/install_venv_common.py @@ -125,7 +125,7 @@ class InstallVenv(object): parser.add_option('-n', '--no-site-packages', action='store_true', help="Do not inherit packages from global Python " - "install") + "install.") return parser.parse_args(argv[1:])[0]