Add localization for the new display name feature (ask on join)

master
Daniel Berteaud 11 years ago
parent 5cda9f2bea
commit 43169f282e
  1. 4
      lib/Vroom/I18N/en.pm
  2. 4
      lib/Vroom/I18N/fr.pm
  3. 2
      public/vroom.pl

@ -64,6 +64,10 @@ our %Lexicon = (
"YOUR_NAME" => "Your name",
"NAME_SENT_TO_OTHERS" => "This name will be sent to the other peers so they can identify you. You need to set your name before you can chat",
"DISPLAY_NAME_TOO_LONG" => "This name is too long",
"DISPLAY_NAME_REQUIRED" => "You need to enter your name",
"SET_A_DISPLAY_NAME" => "Please set your name before you can join the room",
"FORCE_DISPLAY_NAME" => "Participants will be asked for their name before they can join the room",
"NAME_WONT_BE_ASKED" => "Participant won't have to type their name before they can join the room",
"CHANGE_COLOR" => "Change your color",
"CLICK_TO_CHAT" => "Click to access the chat",
"PREVENT_TO_JOIN" => "Prevent other participants to join this room",

@ -69,6 +69,10 @@ our %Lexicon = (
"NAME_SENT_TO_OTHERS" => "Ce nom sera envoyé aux autres participants pour qu'ils puissent vous identifier. " .
"Vous devez en saisir un avant de pouvoir utiliser le tchat",
"DISPLAY_NAME_TOO_LONG" => "Ce nom est trop long",
"DISPLAY_NAME_REQUIRED" => "Vous devez entrer votre nom",
"SET_A_DISPLAY_NAME" => "Merci de saisir votre nom avant de pouvoir rejoindre le salon",
"FORCE_DISPLAY_NAME" => "Les participants devront saisir un nom avant de pouvoir rejoindre le salon",
"NAME_WONT_BE_ASKED" => "La saisie du nom ne sera plus obligatoire pour rejoindre ce salon",
"CHANGE_COLOR" => "Changez de couleur",
"CLICK_TO_CHAT" => "Cliquez ici pour accéder au tchat",
"PREVENT_TO_JOIN" => "Empêchez d'autres participants de rejoindre ce salon",

@ -866,7 +866,7 @@ post '/action' => sub {
}
elsif($type eq 'set' && $self->ask_for_name($room,'1')){
$status = 'success';
$msg = $self->l('NAME_WILL_BE_ASKED');
$msg = $self->l('FORCE_DISPLAY_NAME');
}
elsif($type eq 'unset' && $self->ask_for_name($room,'0')){
$status = 'success';

Loading…
Cancel
Save