From 3c0e371910ec2b4d61889ff0fe32bca452f78401 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 19 Jul 2015 10:54:56 +0200 Subject: [PATCH] JS syntaxe change so xgettext can extract strings ID --- public/js/vroom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 2d6002f..f41b1c4 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -872,7 +872,7 @@ function initJoin(room){ else{ $('#authBeforeJoinButton').addClass('disabled'); $('#authBeforeJoinPass').parent().addClass('has-error'); - $('#authBeforeJoinPass').notify(localize(pass.length < 1 ? 'PASSWORD_REQUIRED' : 'PASSWORD_TOO_LONG'), 'error'); + $('#authBeforeJoinPass').notify(pass.length < 1 ? localize('PASSWORD_REQUIRED') : localize('PASSWORD_TOO_LONG'), 'error'); } }); // Submit the join password form @@ -895,7 +895,7 @@ function initJoin(room){ else{ $('#displayNamePreButton').addClass('disabled'); $('#displayNamePre').parent().addClass('has-error'); - $('#displayNamePre').notify(localize(name.length < 1 ? 'DISPLAY_NAME_REQUIRED' : 'DISPLAY_NAME_TOO_LONG'), 'error'); + $('#displayNamePre').notify(name.length < 1 ? localize('DISPLAY_NAME_REQUIRED') : localize('DISPLAY_NAME_TOO_LONG'), 'error'); } });