1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-02 05:21:39 +02:00

Translate missing string

"one of the peers" was hardcoded instead of being localized
This commit is contained in:
Daniel Berteaud 2014-04-19 19:23:27 +02:00
parent 21b77c9bb9
commit 28b897e2b9
3 changed files with 4 additions and 1 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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');
} }
}); });