Translate missing string

"one of the peers" was hardcoded instead of being localized
master
Daniel Berteaud 11 years ago
parent 21b77c9bb9
commit 28b897e2b9
  1. 1
      lib/Vroom/I18N/en.pm
  2. 1
      lib/Vroom/I18N/fr.pm
  3. 3
      public/js/vroom.js

@ -19,6 +19,7 @@ our %Lexicon = (
"EMAIL_SIGN" => "VROOM! And video conferencing becomes free, simple and safe", "EMAIL_SIGN" => "VROOM! And video conferencing becomes free, simple and safe",
"ROOM_LOCKED" => "This room is now locked", "ROOM_LOCKED" => "This room is now locked",
"ROOM_UNLOCKED" => "This room is now unlocked", "ROOM_UNLOCKED" => "This room is now unlocked",
"ONE_OF_THE_PEERS" => "one of the peers",
"ROOM_LOCKED_BY_s" => "%s locked the room", "ROOM_LOCKED_BY_s" => "%s locked the room",
"ROOM_UNLOCKED_BY_s" => "%s unlocked the room", "ROOM_UNLOCKED_BY_s" => "%s unlocked the room",
"OOOPS" => "Ooops", "OOOPS" => "Ooops",

@ -21,6 +21,7 @@ our %Lexicon = (
"INVITE_SENT_TO_s" => "Une invitation a été envoyée à %s", "INVITE_SENT_TO_s" => "Une invitation a été envoyée à %s",
"ROOM_LOCKED" => "Ce salon est maintenant verrouillé", "ROOM_LOCKED" => "Ce salon est maintenant verrouillé",
"ROOM_UNLOCKED" => "Ce salon est maintenant déverrouillé", "ROOM_UNLOCKED" => "Ce salon est maintenant déverrouillé",
"ONE_OF_THE_PEERS" => "un des participants",
"ROOM_LOCKED_BY_s" => "%s a verrouillé le salon", "ROOM_LOCKED_BY_s" => "%s a verrouillé le salon",
"ROOM_UNLOCKED_BY_s" => "%s a déverrouillé le salon", "ROOM_UNLOCKED_BY_s" => "%s a déverrouillé le salon",
"OOOPS" => "Oups", "OOOPS" => "Oups",

@ -22,6 +22,7 @@ var locale = {
CAM_SUSPENDED: '', CAM_SUSPENDED: '',
CAM_RESUMED: '', CAM_RESUMED: '',
SET_YOUR_NAME_TO_CHAT: '', SET_YOUR_NAME_TO_CHAT: '',
ONE_OF_THE_PEERS: '',
ROOM_LOCKED_BY_s: '', ROOM_LOCKED_BY_s: '',
ROOM_UNLOCKED_BY_s: '', ROOM_UNLOCKED_BY_s: '',
CANT_SEND_TO_s: '', CANT_SEND_TO_s: '',
@ -367,7 +368,7 @@ function initVroom(room) {
// Error sending something through dataChannel // Error sending something through dataChannel
webrtc.on('cantsend', function (peer, message){ webrtc.on('cantsend', function (peer, message){
if (message.type == 'textChat') { if (message.type == 'textChat') {
var who = (peers[peer.id].hasName) ? peers[peer.id].displayName : 'one of the peers'; var who = (peers[peer.id].hasName) ? peers[peer.id].displayName : locale.ONE_OF_THE_PEERS;
$.notify(sprintf(locale.CANT_SEND_TO_s, who), 'error'); $.notify(sprintf(locale.CANT_SEND_TO_s, who), 'error');
} }
}); });

Loading…
Cancel
Save