string translate
This commit is contained in:
parent
8e8b356524
commit
9c19cee904
|
@ -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");
|
||||
|
|
|
@ -16,7 +16,7 @@ urlpatterns = patterns('',
|
|||
|
||||
# for human translators
|
||||
(r'^trans/(?P<model>[A-Za-z].*?)/(?P<field>[A-Za-z].*?)/(?P<page_no>\d*)/', 'ships.views.translate'),
|
||||
# (r'^dotrans/(?P<model>[A-Za-z].*?)/(?P<field>[A-Za-z].*?)/', 'ships.views.dotranslate'),
|
||||
(r'^dotrans/(?P<model>[A-Za-z].*?)/(?P<field>[A-Za-z].*?)/', 'ships.views.dotranslate'),
|
||||
|
||||
# for automated google translation
|
||||
(r'^googletranslate/(?P<model>[A-Za-z].*?)/(?P<field>[A-Za-z].*?)/', 'ships.views.googletranslate'),
|
||||
|
|
Loading…
Reference in New Issue
Block a user