김대욱

chat.js 수정_4

...@@ -63,10 +63,10 @@ var connect = function() { ...@@ -63,10 +63,10 @@ var connect = function() {
63 clients = []; 63 clients = [];
64 64
65 if(connected) { 65 if(connected) {
66 - updateBar('mdi-action-autorenew spin', 'Connection lost, reconnecting...', true); 66 + updateBar('mdi-action-autorenew spin', '접속이 종료 됐습니다, 재접속중입니다...', true);
67 67
68 timer = setTimeout(function() { 68 timer = setTimeout(function() {
69 - console.warn('Connection lost, reconnecting...'); 69 + console.warn('접속이 종료 됐습니다, 재접속중입니다...');
70 connect(); 70 connect();
71 }, 1500); 71 }, 1500);
72 } 72 }
...@@ -119,17 +119,17 @@ var connect = function() { ...@@ -119,17 +119,17 @@ var connect = function() {
119 if(data.reason == 'length') { 119 if(data.reason == 'length') {
120 message = 'Your username must have at least 3 characters and no more than 16 characters'; 120 message = 'Your username must have at least 3 characters and no more than 16 characters';
121 } 121 }
122 -/* 122 +
123 if(data.reason == 'format') { 123 if(data.reason == 'format') {
124 message = 'Your username must only contain alphanumeric characters (numbers, letters and underscores)'; 124 message = 'Your username must only contain alphanumeric characters (numbers, letters and underscores)';
125 } 125 }
126 -*/ 126 +
127 if(data.reason == 'taken') { 127 if(data.reason == 'taken') {
128 - message = 'This username is already taken'; 128 + message = '이 사용자명은 이미 사용중입니다.';
129 } 129 }
130 130
131 if(data.reason == 'banned') { 131 if(data.reason == 'banned') {
132 - message = 'You have been banned from the server for ' + data.time / 60 / 1000 + ' minutes. You have to wait until you get unbanned to be able to connect again'; 132 + message = '서버로부터 밴됐습니다. 재접속 가능 시간까지 ' + data.time / 60 / 1000 + '분 남았습니다.';
133 } 133 }
134 134
135 showChat('light', null, message); 135 showChat('light', null, message);
......