diff --git a/MANIFEST.in b/MANIFEST.in
index ed8648a..514b15a 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -13,4 +13,4 @@ recursive-include testproject *
recursive-include docs *
prune rosetta/tests/__pycache__
prune rosetta/utils/__pycache__
-prune rosetta/utils/microsofttranslator/__pycache__
+
diff --git a/docs/settings.rst b/docs/settings.rst
index 58a9212..70aaf85 100644
--- a/docs/settings.rst
+++ b/docs/settings.rst
@@ -6,7 +6,7 @@ Rosetta can be configured via the following parameters, to be defined in your pr
* ``ROSETTA_MESSAGES_PER_PAGE``: Number of messages to display per page. Defaults to ``10``.
* ``ROSETTA_ENABLE_TRANSLATION_SUGGESTIONS``: Enable AJAX translation suggestions. Defaults to ``False``.
* ``YANDEX_TRANSLATE_KEY``: Translation suggestions from Yandex `Yandex.Translate API `_. To use this service you must first `obtain an AppID key `_, then specify the key here. Defaults to ``None``.
-* ``AZURE_CLIENT_ID`` and ``AZURE_CLIENT_SECRET``: Translation suggestions using the Microsoft Azure API. To use this service, you must first `register for the service `_, then specify the 'Customer ID' and 'Primary Account Key' respectively, which you can find on your `account information page on Azure Marketplace `_.
+* ``AZURE_CLIENT_SECRET``: Translation suggestions using the Microsoft Azure API. To use this service, you must first `register for the service `_, then specify the 'Customer ID' and 'Primary Account Key' respectively, which you can find on your `account information page on Azure Marketplace `_.
* ``ROSETTA_MESSAGES_SOURCE_LANGUAGE_CODE`` and ``ROSETTA_MESSAGES_SOURCE_LANGUAGE_NAME``: Change these if the source language in your PO files isn't English. Default to ``'en'`` and ``'English'`` respectively.
* ``ROSETTA_WSGI_AUTO_RELOAD`` and ``ROSETTA_UWSGI_AUTO_RELOAD``: When running WSGI daemon mode, using ``mod_wsgi`` 2.0c5 or later, this setting controls whether the contents of the gettext catalog files should be automatically reloaded by the WSGI processes each time they are modified. For performance reasons, this setting should be disabled in production environments. Default to ``False``.
* ``ROSETTA_EXCLUDED_APPLICATIONS``: Exclude applications defined in this list from being translated. Defaults to ``()``.
diff --git a/rosetta/templates/rosetta/js/rosetta.js b/rosetta/templates/rosetta/js/rosetta.js
index c2bbf8e..22080ca 100644
--- a/rosetta/templates/rosetta/js/rosetta.js
+++ b/rosetta/templates/rosetta/js/rosetta.js
@@ -21,7 +21,7 @@ google.setOnLoadCallback(function() {
orig = unescape(orig).replace(/
/g,'\n').replace(//,'').replace(/<\/code>/g,'').replace(/>/g,'>').replace(/</g,'<');
a.attr('class','suggesting').html('...');
- $.getJSON("./translate/", {
+ $.getJSON("{% url 'rosetta.translate_text' %}", {
from: sourceLang,
to: destLang,
text: orig
diff --git a/rosetta/urls.py b/rosetta/urls.py
index 94c7ac2..c796834 100644
--- a/rosetta/urls.py
+++ b/rosetta/urls.py
@@ -43,6 +43,6 @@ urlpatterns = [
url(r'^translate/$',
views.translate_text,
- name='translate_text',
+ name='rosetta.translate_text',
),
]
diff --git a/tox.ini b/tox.ini
index 55cb838..dff05d4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -29,7 +29,6 @@ deps =
# py27-django18: pudb
requests
polib>=1.1.0
- microsofttranslator>=0.7
six
goslate
vcrpy