all notifications are translated now closes #1388

This commit is contained in:
barisusakli
2014-04-16 15:31:47 -04:00
parent e00f49ae8c
commit f9897daad1
7 changed files with 58 additions and 53 deletions

View File

@@ -194,7 +194,7 @@ SocketModules.chats.send = function(socket, data, callback) {
function sendChatNotification(fromuid, touid, username) {
if (!module.parent.exports.isUserOnline(touid)) {
var notifText = 'New message from <strong>' + username + '</strong>';
var notifText = '[[notifications:new_message_from,' + username + ']]';
notifications.create({
text: notifText,
path: 'javascript:app.openChat(&apos;' + username + '&apos;, ' + fromuid + ');',