From 9c19cee90482a1f91e4a6420a49c796e4a07c36b Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 12 Mar 2012 11:49:05 +0530 Subject: [PATCH] string translate --- manifests/media/js/trans.js | 3 ++- manifests/urls.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/media/js/trans.js b/manifests/media/js/trans.js index f5e544a..7983387 100644 --- a/manifests/media/js/trans.js +++ b/manifests/media/js/trans.js @@ -16,7 +16,8 @@ $(function() { 'translation': val }; $(this).data("original", val); - var url = trans.model == 'Translation' ? '/stringtranslate/' : '/dotrans/'; +// var url = trans.model == 'Translation' ? '/stringtranslate/' : '/dotrans/'; + var url = '/stringtranslate/'; var $post = $.post(url, data, function(response) { console.log(response); }, "json"); diff --git a/manifests/urls.py b/manifests/urls.py index 346a9d9..7fc5954 100644 --- a/manifests/urls.py +++ b/manifests/urls.py @@ -16,7 +16,7 @@ urlpatterns = patterns('', # for human translators (r'^trans/(?P[A-Za-z].*?)/(?P[A-Za-z].*?)/(?P\d*)/', 'ships.views.translate'), -# (r'^dotrans/(?P[A-Za-z].*?)/(?P[A-Za-z].*?)/', 'ships.views.dotranslate'), + (r'^dotrans/(?P[A-Za-z].*?)/(?P[A-Za-z].*?)/', 'ships.views.dotranslate'), # for automated google translation (r'^googletranslate/(?P[A-Za-z].*?)/(?P[A-Za-z].*?)/', 'ships.views.googletranslate'),