Skip to content

Commit b2696df

Browse files
committed
language changes
1 parent 0296b33 commit b2696df

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

lang/hi/lang.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@
7070
'notifications' => 'सूचनाएं',
7171
'activities' => 'गतिविधियां',
7272
'superadmin' => 'सुपर व्यवस्थापक',
73-
'change-password' => 'पासवर्ड बदलें'
73+
'change-password' => 'पासवर्ड बदलें',
74+
'are-you-sure-you-want-to-delete-activities' => 'Are you sure you want to delete <strong>Activities</strong>',
7475
];

resources/views/admin/activities.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
@section('script')
6868
<script>
6969
function delete_activity(){
70-
kchat_alert("Are you sure you want to delete <strong>Activities</strong>?",(function(){__post('/activity/delete',{'ids':getSelectedID()});}));
70+
kchat_alert("{{ __("lang.are-you-sure-you-want-to-delete-activities") }}",(function(){__post('/activity/delete',{'ids':getSelectedID()});}));
7171
}
7272
</script>
7373
@endsection

resources/views/admin/dashboard.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
labels: @json($dates),
121121
datasets: [{
122122
responsive: true,
123-
label: 'All message\'s per day',
123+
label: '{{ __('lang.all-messages-per-day') }}',
124124
data: @json($new_messages_perday),
125125
borderWidth: 1
126126
}]
@@ -145,7 +145,7 @@
145145
labels: @json($dates),
146146
datasets: [{
147147
responsive: true,
148-
label: 'All user\'s per day',
148+
label: '{{ __('lang.all-users-per-day') }}',
149149
data: @json($new_users_perday),
150150
borderWidth: 1
151151
}]
@@ -170,7 +170,7 @@
170170
labels: @json($dates),
171171
datasets: [{
172172
responsive: true,
173-
label: 'All conversation\'s per day',
173+
label: '{{ __('lang.all-conversations-per-day') }}',
174174
data: @json($new_conversations_perday),
175175
borderWidth: 1
176176
}]
@@ -195,7 +195,7 @@
195195
labels: @json($dates),
196196
datasets: [{
197197
responsive: true,
198-
label: 'All your message\'s per day',
198+
label: '{{ __('lang.all-your-messages-per-day') }}',
199199
data: @json($current_user_new_messages_perday),
200200
borderWidth: 1
201201
}]
@@ -220,7 +220,7 @@
220220
labels: @json($dates),
221221
datasets: [{
222222
responsive: true,
223-
label: 'All your conversation\'s per day',
223+
label: '{{ __('lang.all-your-conversations-per-day') }}',
224224
data: @json($current_user_new_conversations_perday),
225225
borderWidth: 1
226226
}]

resources/views/admin/members.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<a class="dropdown-item" onclick="SelectAll()" >{{ __("lang.select-all") }}</a>
3434
<a class="dropdown-item" onclick="delete_users()" >{{ __("lang.delete") }}</a>
3535
<a class="dropdown-item" onclick="set_inactive_users()" >{{ __("lang.set-inactive") }}</a>
36-
<a class="dropdown-item" onclick="set_active_users()" >Set Active</a>
36+
<a class="dropdown-item" onclick="set_active_users()" >{{ __("lang.set-active") }}</a>
3737
<a class="dropdown-item" onclick="block_users()" >{{ __("lang.block") }}</a>
3838
<a class="dropdown-item" onclick="unblock_users()" >{{ __("lang.unblock") }}</a>
3939
<a class="dropdown-item" onclick="make_admins()" >{{ __("lang.make-admin") }}</a>
@@ -106,7 +106,7 @@
106106
<input type="hidden" value="" id="m_user" />
107107
<a class="dropdown-item" onclick="delete_user()" >{{ __("lang.delete") }}</a>
108108
<a class="dropdown-item" onclick="set_inactive_user()" >{{ __("lang.set-inactive") }}</a>
109-
<a class="dropdown-item" onclick="set_active_user()" >Set Active</a>
109+
<a class="dropdown-item" onclick="set_active_user()" >{{ __("lang.set-active") }}</a>
110110
<a class="dropdown-item" onclick="block_user()" >{{ __("lang.block") }}</a>
111111
<a class="dropdown-item" onclick="unblock_user()" >{{ __("lang.unblock") }}</a>
112112
<a class="dropdown-item" onclick="make_admin()" >{{ __("lang.make-admin") }}</a>

resources/views/common/msg.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@extends('admin.master')
22

3-
@section('title', 'Message\'s')
3+
@section('title', __("lang.messages"))
44

55
@section('header')
66
<link href="/css/bootstrap.min.css" rel="stylesheet">
@@ -47,7 +47,7 @@
4747
</div>
4848
<div class="chat-history" id="Msgs" style="min-height: 50%;" >
4949
<image id="loading" src="/assets/loading.gif"/>
50-
<ul class="pl-3 pr-3" id="{{ __("lang.messages") }}"></ul>
50+
<ul class="pl-3 pr-3" id="Messages"></ul>
5151
<button type="button" id="gotobottom" class="btn btn-outline-secondary"><i class="fa fa-chevron-down"></i></button>
5252
</div>
5353
<div class="chat-message clearfix">
@@ -161,7 +161,7 @@
161161
</div>
162162
<div class="modal-footer">
163163
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ __("lang.close") }}</button>
164-
<button type="button" class="btn btn-primary" id="{{ __("lang.whiteboard") }}{{ __("lang.send") }}" data-dismiss="modal">{{ __("lang.send") }}</button>
164+
<button type="button" class="btn btn-primary" id="WhiteBoardSend" data-dismiss="modal">{{ __("lang.send") }}</button>
165165
</div>
166166
</div>
167167
</div>
@@ -171,7 +171,7 @@
171171
@section('script')
172172
<script type="text/javascript">
173173
174-
var shape,fill,points=[],x=y=0,c=document.getElementById("myCanvas"),ctx=c.getContext("2d"),color="#000000",border=1;function getMousePos(e,t){var n=e.getBoundingClientRect();x=t.clientX-n.left,y=t.clientY-n.top}function _wb_event(e,t){}function F_Points(){void 0!=shape&&(points[points.length]=[shape,color,border,[[x,y]]])}var tmp=0;function T_Points(){"Pencil"==shape||"bezier"==shape?(tmp=points[points.length-1][3].length,points[points.length-1][1]=color,points[points.length-1][2]=border,points[points.length-1][3][tmp]=[x,y]):void 0!=shape&&(points[points.length-1][1]=color,points[points.length-1][2]=border,points[points.length-1][3][0][2]=x,points[points.length-1][3][0][3]=y,points[points.length-1][4]=fill)}function Color(e){color=e.value}function bordersize(e){border=e.value}function filled(e){fill=e.checked}function draw(e,t){ctx.beginPath(),ctx.lineWidth=e[2],ctx.fillStyle=e[1],ctx.strokeStyle=e[1],"Line"==e[0]&&(ctx.moveTo(e[3][0][0],e[3][0][1]),ctx.lineTo(e[3][0][2],e[3][0][3])),"Circle"==e[0]&&ctx.arc(e[3][0][0],e[3][0][1],Math.sqrt((e[3][0][2]-e[3][0][0])*(e[3][0][2]-e[3][0][0])+(e[3][0][3]-e[3][0][1])*(e[3][0][3]-e[3][0][1])),0,2*Math.PI),"Rectangle"==e[0]&&(e[4]?ctx.fillRect(e[3][0][0],e[3][0][1],e[3][0][2]-e[3][0][0],e[3][0][3]-e[3][0][1]):ctx.strokeRect(e[3][0][0],e[3][0][1],e[3][0][2]-e[3][0][0],e[3][0][3]-e[3][0][1])),"clearRect"==e[0]&&ctx.clearRect(e[3][0][0],e[3][0][1],e[3][0][2]-e[3][0][0],e[3][0][3]-e[3][0][1]),"ellipse"==e[0]&&ctx.ellipse(e[3][0][0],e[3][0][1],Math.abs(e[3][0][2]-e[3][0][0]),Math.abs(e[3][0][3]-e[3][0][1]),0,0,2*Math.PI,!1),"Pencil"==e[0]&&(ctx.moveTo(e[3][0][0],e[3][0][1]),e[3].forEach(e=>{ctx.lineTo(e[0],e[1])})),"bezier"==e[0]&&(ctx.moveTo(e[3][0][0],e[3][0][1]),e[3].forEach(e=>{ctx.bezierCurveTo(e[0],e[1])})),e[4]&&ctx.fill(),ctx.stroke()}var go=!1;function buttons(e){shape=e.getAttribute("data")}function Clear(){points=[],ctx.clearRect(0,0,c.width,c.height)}function download(){let e=document.getElementById("myCanvas"),t=document.createElement("a"),n=e.toDataURL();t.href=n,t.download="KChat-{{ __("lang.whiteboard") }}.png",t.click()}function download_json(){let e=JSON.stringify(points),t=btoa(e),n=document.createElement("a");n.href="data:text/plain;base64,"+t,n.download="KChat-{{ __("lang.whiteboard") }}.json",n.click()}c.addEventListener("drag",function(e){_wb_event(e,"drag")},!1),c.addEventListener("click",function(e){_wb_event(e,"click")},!1),c.addEventListener("drop",function(e){_wb_event(e,"drop")},!1),c.addEventListener("keydown",function(e){_wb_event(e,"keydown")},!1),c.addEventListener("keypress",function(e){_wb_event(e,"keypress")},!1),c.addEventListener("keyup",function(e){_wb_event(e,"keyup")},!1),c.addEventListener("mousedown",function(e){_wb_event(e,"mousedown"),F_Points(),go=!0},!1),c.addEventListener("mouseenter",function(e){_wb_event(e,"mouseenter")},!1),c.addEventListener("mouseleave",function(e){_wb_event(e,"mouseleave")},!1),c.addEventListener("mousemove",function(e){_wb_event(e,"mousemove"),getMousePos(c,e),go&&(ctx.clearRect(0,0,c.width,c.height),points.forEach(draw),T_Points())},!1),c.addEventListener("mouseover",function(e){_wb_event(e,"mouseover")},!1),c.addEventListener("mouseout",function(e){_wb_event(e,"mouseout")},!1),c.addEventListener("mouseup",function(e){_wb_event(e,"mouseup"),T_Points(),go=!1,points.forEach(draw)},!1),c.addEventListener("mousewheel",function(e){_wb_event(e,"mousewheel")},!1),c.addEventListener("offline",function(e){_wb_event(e,"offline")},!1),c.addEventListener("online",function(e){_wb_event(e,"online")},!1);
174+
var shape,fill,points=[],x=y=0,c=document.getElementById("myCanvas"),ctx=c.getContext("2d"),color="#000000",border=1;function getMousePos(e,t){var n=e.getBoundingClientRect();x=t.clientX-n.left,y=t.clientY-n.top}function _wb_event(e,t){}function F_Points(){void 0!=shape&&(points[points.length]=[shape,color,border,[[x,y]]])}var tmp=0;function T_Points(){"Pencil"==shape||"bezier"==shape?(tmp=points[points.length-1][3].length,points[points.length-1][1]=color,points[points.length-1][2]=border,points[points.length-1][3][tmp]=[x,y]):void 0!=shape&&(points[points.length-1][1]=color,points[points.length-1][2]=border,points[points.length-1][3][0][2]=x,points[points.length-1][3][0][3]=y,points[points.length-1][4]=fill)}function Color(e){color=e.value}function bordersize(e){border=e.value}function filled(e){fill=e.checked}function draw(e,t){ctx.beginPath(),ctx.lineWidth=e[2],ctx.fillStyle=e[1],ctx.strokeStyle=e[1],"Line"==e[0]&&(ctx.moveTo(e[3][0][0],e[3][0][1]),ctx.lineTo(e[3][0][2],e[3][0][3])),"Circle"==e[0]&&ctx.arc(e[3][0][0],e[3][0][1],Math.sqrt((e[3][0][2]-e[3][0][0])*(e[3][0][2]-e[3][0][0])+(e[3][0][3]-e[3][0][1])*(e[3][0][3]-e[3][0][1])),0,2*Math.PI),"Rectangle"==e[0]&&(e[4]?ctx.fillRect(e[3][0][0],e[3][0][1],e[3][0][2]-e[3][0][0],e[3][0][3]-e[3][0][1]):ctx.strokeRect(e[3][0][0],e[3][0][1],e[3][0][2]-e[3][0][0],e[3][0][3]-e[3][0][1])),"clearRect"==e[0]&&ctx.clearRect(e[3][0][0],e[3][0][1],e[3][0][2]-e[3][0][0],e[3][0][3]-e[3][0][1]),"ellipse"==e[0]&&ctx.ellipse(e[3][0][0],e[3][0][1],Math.abs(e[3][0][2]-e[3][0][0]),Math.abs(e[3][0][3]-e[3][0][1]),0,0,2*Math.PI,!1),"Pencil"==e[0]&&(ctx.moveTo(e[3][0][0],e[3][0][1]),e[3].forEach(e=>{ctx.lineTo(e[0],e[1])})),"bezier"==e[0]&&(ctx.moveTo(e[3][0][0],e[3][0][1]),e[3].forEach(e=>{ctx.bezierCurveTo(e[0],e[1])})),e[4]&&ctx.fill(),ctx.stroke()}var go=!1;function buttons(e){shape=e.getAttribute("data")}function Clear(){points=[],ctx.clearRect(0,0,c.width,c.height)}function download(){let e=document.getElementById("myCanvas"),t=document.createElement("a"),n=e.toDataURL();t.href=n,t.download="KChat-whiteboard.png",t.click()}function download_json(){let e=JSON.stringify(points),t=btoa(e),n=document.createElement("a");n.href="data:text/plain;base64,"+t,n.download="KChat-whiteboard.json",n.click()}c.addEventListener("drag",function(e){_wb_event(e,"drag")},!1),c.addEventListener("click",function(e){_wb_event(e,"click")},!1),c.addEventListener("drop",function(e){_wb_event(e,"drop")},!1),c.addEventListener("keydown",function(e){_wb_event(e,"keydown")},!1),c.addEventListener("keypress",function(e){_wb_event(e,"keypress")},!1),c.addEventListener("keyup",function(e){_wb_event(e,"keyup")},!1),c.addEventListener("mousedown",function(e){_wb_event(e,"mousedown"),F_Points(),go=!0},!1),c.addEventListener("mouseenter",function(e){_wb_event(e,"mouseenter")},!1),c.addEventListener("mouseleave",function(e){_wb_event(e,"mouseleave")},!1),c.addEventListener("mousemove",function(e){_wb_event(e,"mousemove"),getMousePos(c,e),go&&(ctx.clearRect(0,0,c.width,c.height),points.forEach(draw),T_Points())},!1),c.addEventListener("mouseover",function(e){_wb_event(e,"mouseover")},!1),c.addEventListener("mouseout",function(e){_wb_event(e,"mouseout")},!1),c.addEventListener("mouseup",function(e){_wb_event(e,"mouseup"),T_Points(),go=!1,points.forEach(draw)},!1),c.addEventListener("mousewheel",function(e){_wb_event(e,"mousewheel")},!1),c.addEventListener("offline",function(e){_wb_event(e,"offline")},!1),c.addEventListener("online",function(e){_wb_event(e,"online")},!1);
175175
176176
</script>
177177
@endsection

resources/views/user/dashboard.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
labels: @json($dates),
6464
datasets: [{
6565
responsive: true,
66-
label: 'All your message\'s per day',
67-
data: @json($current_user_new_conversations_perday),
66+
label: '{{ __('lang.all-your-messages-per-day') }}',
67+
data: @json($current_user_new_messages_perday),
6868
borderWidth: 1
6969
}]
7070
},
@@ -88,8 +88,8 @@
8888
labels: @json($dates),
8989
datasets: [{
9090
responsive: true,
91-
label: 'All your conversation\'s per day',
92-
data: @json($current_user_new_messages_perday),
91+
label: '{{ __('lang.all-your-conversations-per-day') }}',
92+
data: @json($current_user_new_conversations_perday),
9393
borderWidth: 1
9494
}]
9595
},

0 commit comments

Comments
 (0)