Add a title on the remove email button

master
Daniel Berteaud 11 years ago
parent 2953f9eb84
commit fa2545b2fa
  1. 1
      lib/Vroom/I18N/en.pm
  2. 1
      lib/Vroom/I18N/fr.pm
  3. 5
      public/js/vroom.js

@ -84,6 +84,7 @@ our %Lexicon = (
"REMOVE_OWNER_PASSWORD" => "Remove the manager password. The room will become ephemeral", "REMOVE_OWNER_PASSWORD" => "Remove the manager password. The room will become ephemeral",
"ADD_NOTIFICATION" => "Add a notification", "ADD_NOTIFICATION" => "Add a notification",
"ADD_THIS_ADDRESS" => "Add this address", "ADD_THIS_ADDRESS" => "Add this address",
"REMOVE_THIS_ADDRESS" => "Remove this address",
"NOTIFICATION_ON_JOIN" => "You can set a list of email address which will receive a notification each time someone joins this room", "NOTIFICATION_ON_JOIN" => "You can set a list of email address which will receive a notification each time someone joins this room",
"s_WILL_BE_NOTIFIED" => "%s will receive a notification each time someone joins this room", "s_WILL_BE_NOTIFIED" => "%s will receive a notification each time someone joins this room",
"s_WONT_BE_NOTIFIED_ANYMORE" => "%s won't be notified anymore", "s_WONT_BE_NOTIFIED_ANYMORE" => "%s won't be notified anymore",

@ -90,6 +90,7 @@ our %Lexicon = (
"REMOVE_OWNER_PASSWORD" => "Supprimer le mot de passe du gestionnaire. Le salon redeviendra éphémère", "REMOVE_OWNER_PASSWORD" => "Supprimer le mot de passe du gestionnaire. Le salon redeviendra éphémère",
"ADD_NOTIFICATION" => "Ajouter une notification", "ADD_NOTIFICATION" => "Ajouter une notification",
"ADD_THIS_ADDRESS" => "Ajouter cette adresse", "ADD_THIS_ADDRESS" => "Ajouter cette adresse",
"REMOVE_THIS_ADDRESS" => "Supprimer cette adresse",
"NOTIFICATION_ON_JOIN" => "Vous pouvez ajouter des adresses email qui recevront une notification dès que quelqu'un rejoint ce salon", "NOTIFICATION_ON_JOIN" => "Vous pouvez ajouter des adresses email qui recevront une notification dès que quelqu'un rejoint ce salon",
"s_WILL_BE_NOTIFIED" => "%s recevra une notification à chaque fois qu'une personne rejoint ce salon", "s_WILL_BE_NOTIFIED" => "%s recevra une notification à chaque fois qu'une personne rejoint ce salon",
"s_WONT_BE_NOTIFIED_ANYMORE" => "%s ne recevra plus les notifications pour ce salon", "s_WONT_BE_NOTIFIED_ANYMORE" => "%s ne recevra plus les notifications pour ce salon",

@ -55,7 +55,8 @@ var locale = {
YOU_HAVE_RESUMED_s: '', YOU_HAVE_RESUMED_s: '',
CANT_SUSPEND_OWNER: '', CANT_SUSPEND_OWNER: '',
YOU_HAVE_KICKED_s: '', YOU_HAVE_KICKED_s: '',
CANT_KICK_OWNER: '' CANT_KICK_OWNER: '',
REMOVE_THIS_ADDRESS: ''
}; };
// Localize the strings we need // Localize the strings we need
@ -548,7 +549,7 @@ function initVroom(room) {
// Add a new email address in the list of the ones notified when someone joins // Add a new email address in the list of the ones notified when someone joins
function addNotifiedEmail(email){ function addNotifiedEmail(email){
var id = email.replace('@', '_AT_').replace('.', '_DOT_'); var id = email.replace('@', '_AT_').replace('.', '_DOT_');
$('<li></li>').html(email + ' <a href="javascript:void(0);" onclick="removeNotifiedEmail(\'' + email + '\');">' + $('<li></li>').html(email + ' <a href="javascript:void(0);" onclick="removeNotifiedEmail(\'' + email + '\');" title="' + locale.REMOVE_THIS_ADDRESS + '">' +
' <span class="glyphicon glyphicon-remove-circle"></span>' + ' <span class="glyphicon glyphicon-remove-circle"></span>' +
' </a>') ' </a>')
.attr('id', 'emailNotification_' + id) .attr('id', 'emailNotification_' + id)

Loading…
Cancel
Save