Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arabic language added #8245

Merged
merged 12 commits into from
Oct 26, 2023
7 changes: 7 additions & 0 deletions app/FaveoLog/lang/ar/lang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return[
'logs' => 'مؤلف',
'system_logs' => 'سجلات النظام',

];
3 changes: 2 additions & 1 deletion app/FaveoLog/lang/en/lang.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

return [
'logs' => 'Logs',
'logs' => 'Logs',
'system_logs' => 'System logs',
];
8 changes: 4 additions & 4 deletions app/FaveoLog/views/log.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class="nav-link active"
<div class="container-fluid">
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">System Logs</h3>
<h3 class="card-title">{{Lang::get('log::lang.system_logs')}}</h3>
<div class="card-tools">
<a href="?dl={{ base64_encode($current_file) }}" class="btn btn-primary btn-sm text-white"><span class="fas fa-download"></span> Download file</a>
<a id="delete-log" href="?del={{ base64_encode($current_file) }}" class="btn btn-danger btn-sm text-white"><span class="fas fa-trash"></span> Delete file</a>
<a href="?dl={{ base64_encode($current_file) }}" class="btn btn-primary btn-sm text-white"><span class="fas fa-download"></span>{{trans('lang.download_file')}}</a>
<a id="delete-log" href="?del={{ base64_encode($current_file) }}" class="btn btn-danger btn-sm text-white"><span class="fas fa-trash"></span>{{trans('lang.delete_file')}}</a>
</div>
</div>
<div class="card-body">
Expand All @@ -61,7 +61,7 @@ class="nav-link active"
<div class="col-md-10 table-container">
@if ($logs === null)
<div>
Log file >50M, please download it.
{{trans('lang.log_file_50M_please_download_it.')}}
</div>
@else
<table id="table-log" class="table table-striped">
Expand Down
9 changes: 9 additions & 0 deletions app/FaveoStorage/lang/ar/lang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

return[
'storage' => 'تخزين',
'root' => 'جذر',
'system_logs' => 'سجلات النظام',
'default' => 'الافتراضي',
'save' => 'حفظ',
];
2 changes: 1 addition & 1 deletion app/FaveoStorage/views/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class="nav-link active"
<!-- /.box-body -->
</div>
<div class="card-footer">
{!! Form::submit('Save',['class'=>'btn btn-success']) !!}
{!! Form::submit(Lang::get('storage::lang.save'),['class'=>'btn btn-success']) !!}
{!! Form::close() !!}
</div>
<!-- /.box -->
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/helpdesk/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ public function deleteNotificationLog()
{
$days = Input::get('no_of_days');
if ($days == null) {
return redirect()->back()->with('fails', 'Please enter valid no of days');
return redirect()->back()->with('fails', \Illuminate\Support\Facades\Lang::get('lang.please_enter_valid_no_days'));
}
$date = new DateTime();
$date->modify($days.' day');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ public function org_list()
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Are You Sure ?</h4>
<h4 class="modal-title">'.\Lang::get('lang.are_you_sure').'</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
'.$model->user_name.'
</div>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">Close</button>
<a href="'.route('org.delete', $model->id).'"><button class="btn btn-danger">delete</button></a>
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">'.\Lang::get('lang.close').'</button>
<a href="'.route('org.delete', $model->id).'"><button class="btn btn-danger">'.\Lang::get('lang.delete').'</button></a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/Agent/kb/ArticleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ public function getData()
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Delete</h4>
<h4 class="modal-title">'.Lang::get('lang.delete').'</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
Are you sure you want to delete <b> '.$model->name.' </b> ?
<span>'.Lang::get('lang.are_you_sure_you_want_to_delete').'</span>&nbsp; <b> '.$model->name.' </b> ?
</div>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">Close</button>
<a href='.url("article/delete/$model->slug").'><button class="btn btn-danger">delete</button></a>
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">'.Lang::get('lang.close').'</button>
<a href='.url("article/delete/$model->slug").'><button class="btn btn-danger">'.Lang::get('lang.delete').'</button></a>
</div>
</div>
</div>
Expand Down
9 changes: 4 additions & 5 deletions app/Http/Controllers/Agent/kb/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use App\Http\Controllers\Controller;
use App\Http\Requests\kb\PageRequest;
// request
use App\Http\Requests\kb\PageUpdate;
use App\Model\kb\Page;
use Datatable;
// Model
Expand Down Expand Up @@ -91,15 +90,15 @@ public function getData()
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Delete</h4>
<h4 class="modal-title">'.Lang::get('lang.delete').'</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
Are you sure you want to delete <b>'.$model->name.'</b> ?
<span>'.Lang::get('lang.are_you_sure_you_want_to_delete').'</span>&nbsp;<b>'.$model->name.'</b> ?
</div>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">Close</button>
<a href="page/delete/'.$model->id.'"><button class="btn btn-danger">Delete</button></a>
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis2">'.Lang::get('lang.close').'</button>
<a href="page/delete/'.$model->id.'"><button class="btn btn-danger">'.Lang::get('lang.delete').'</button></a>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Requests/helpdesk/Job/TaskRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public function rules()
public function messages()
{
return [
'fetching-commands.required_if' => 'Please choose your Email Fetching timing',
'notification-commands.required_if' => 'Please choose your Email Notification timing',
'work-commands.required_if' => 'Please choose your Auto-close Workflow timing',
'fetching-commands.required_if' => trans('lang.Please_choose_your_Email_Fetching_timing'),
'notification-commands.required_if' => trans('lang.Please_choose_your_ Email_ Notification_timing'),
'work-commands.required_if' => trans('lang.Please_choose_your_Auto-close_Workflow_timing'),
'workflow-dailyAt.required_if' => 'Please enter the time for Auto-close Workflow timing',
'notification-dailyAt.required_if' => 'Please enter the time for Email Notification timing',
'fetching-dailyAt.required_if' => 'Please enter the time for Email Fetching timing',
Expand Down
25 changes: 25 additions & 0 deletions lang/ar/datatables.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

return [
'sEmptyTable' => 'لا تتوفر بيانات في الجدول',
'sInfo' => 'عرض _START_ إلى _END_ من إجمالي _TOTAL_ إدخال',
'sInfoEmpty' => 'عرض 0 إلى 0 من إجمالي 0 إدخال',
'sInfoFiltered' => '(منتقاة من إجمالي _MAX_ إدخال)',
'sInfoPostFix' => '',
'sInfoThousands' => ',',
'sLengthMenu' => '_MENU_ سجل لكل صفحة',
'sLoadingRecords' => 'جارٍ التحميل...',
'sProcessing' => 'جارٍ المعالجة...',
'sSearch' => 'بحث:',
'sZeroRecords' => 'لم يتم العثور على سجلات مطابقة',
'oPaginate' => [
'sFirst' => 'الأول',
'sLast' => 'الأخير',
'sNext' => 'التالي',
'sPrevious' => 'السابق',
],
'oAria' => [
'sSortAscending' => ': تفعيل لفرز العمود تصاعديًا',
'sSortDescending' => ': تفعيل لفرز العمود تنازليًا',
],
];
Loading