diff --git a/lib/Vroom/I18N/en.pm b/lib/Vroom/I18N/en.pm index 174e77b..6b5826a 100644 --- a/lib/Vroom/I18N/en.pm +++ b/lib/Vroom/I18N/en.pm @@ -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", diff --git a/lib/Vroom/I18N/fr.pm b/lib/Vroom/I18N/fr.pm index 742f8ba..4314c1a 100644 --- a/lib/Vroom/I18N/fr.pm +++ b/lib/Vroom/I18N/fr.pm @@ -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", diff --git a/public/vroom.pl b/public/vroom.pl index df8fc7e..5ac1647 100755 --- a/public/vroom.pl +++ b/public/vroom.pl @@ -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';