summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]forum/skins/default/media/js/com.cnprog.i18n.js2
-rwxr-xr-x[-rw-r--r--]forum/skins/default/media/js/com.cnprog.post.js5
2 files changed, 4 insertions, 3 deletions
diff --git a/forum/skins/default/media/js/com.cnprog.i18n.js b/forum/skins/default/media/js/com.cnprog.i18n.js
index da9bf396..56ea1062 100644..100755
--- a/forum/skins/default/media/js/com.cnprog.i18n.js
+++ b/forum/skins/default/media/js/com.cnprog.i18n.js
@@ -147,6 +147,8 @@ var i18nEs = {
'enter url':'introduzca direcciones web, ejemplo:<br />http://www.cnprog.com/ \"titulo del enlace\"</p>"',
'upload image':'cargar imagen:',
'questions/' : 'preguntas/',
+ 'answers/' : 'respuestas/',
+ 'comments/' : 'comentarios/',
'vote/' : 'votar/'
};
diff --git a/forum/skins/default/media/js/com.cnprog.post.js b/forum/skins/default/media/js/com.cnprog.post.js
index 4325e665..38ff8df1 100644..100755
--- a/forum/skins/default/media/js/com.cnprog.post.js
+++ b/forum/skins/default/media/js/com.cnprog.post.js
@@ -516,7 +516,7 @@ function createComments(type) {
var getComments = function(id, jDiv) {
//appendLoaderImg(id);
- $.getJSON(scriptUrl + objectType + "s/" + id + "/" + $.i18n._("comments/"),
+ $.getJSON(scriptUrl + $.i18n._(objectType + "s/") + id + "/" + $.i18n._("comments/"),
function(json) { showComments(id, json); });
};
@@ -575,10 +575,9 @@ function createComments(type) {
var formSelector = "#" + formId;
var textarea = $(formSelector + " textarea");
- //todo fix url translations!!!
$.ajax({
type: "POST",
- url: scriptUrl + objectType + "s/" + id + "/" + $.i18n._("comments/"),
+ url: scriptUrl + $.i18n._(objectType + "s/") + id + "/" + $.i18n._("comments/"),
dataType: "json",
data: { comment: textarea.val() },
success: function(json) {