From 5f665603615916dd59c36162f4bb1f33fcd3ba0e Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 30 Oct 2015 00:00:53 -0400 Subject: [PATCH] i8n for usercards --- lib/persona.js | 4 ++-- templates/modules/usercard.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/persona.js b/lib/persona.js index 40613f0..3f1aff6 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -1,6 +1,6 @@ "use strict"; -/*globals ajaxify, config, utils, templates, app, socket, Slideout, NProgress*/ +/*globals ajaxify, config, utils, app, socket, Slideout, NProgress*/ $(document).ready(function() { setupNProgress(); @@ -176,7 +176,7 @@ $(document).ready(function() { data = (ajaxify.data.topics || ajaxify.data.posts)[index].user; socket.emit('user.isFollowing', {uid: data.uid}, function(err, isFollowing) { - templates.parse('modules/usercard', data, function(html) { + app.parseAndTranslate('modules/usercard', data, function(html) { var card = $(html); avatar.parents('a').after(card.hide()); diff --git a/templates/modules/usercard.tpl b/templates/modules/usercard.tpl index b98396e..eb2bc11 100644 --- a/templates/modules/usercard.tpl +++ b/templates/modules/usercard.tpl @@ -15,11 +15,11 @@
- Posts + [[global:posts]] {postcount}
- Reputation + [[global:reputation]] {reputation}