Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
KNaveenraj-ladybird committed Oct 20, 2023
1 parent 22d01f8 commit 6885c0f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/FaveoStorage/lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
'container' => 'Container',
'endpoint' => 'End Point',
'url_type' => 'Url Type',
'save' => 'Save',
];
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function postSettings(Request $request)
$string = $string_www.$sting_ssl;
$this->writeHtaccess($string);

return redirect()->back()->with('success', 'updated');
return redirect()->back()->with('success', trans('lang.updated'));
} catch (Exception $ex) {
dd($ex);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Common/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function edit_social_buttons($id, Widgets $widgets, Request $request)
try {
$widget->save();

return redirect()->back()->with('success', $widget->name.' Saved Successfully');
return redirect()->back()->with('success', $widget->name.trans('lang.save-successful'));
} catch (Exception $e) {
return redirect()->back()->with('fails', $e->errorInfo[2]);
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Job/QueueController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function update($id, QueueRequest $request)
}
}

return redirect()->back()->with('success', 'Updated');
return redirect()->back()->with('success',trans('lang.updated'));
} catch (Exception $ex) {
return redirect()->back()->with('fails', $ex->getMessage());
}
Expand All @@ -95,7 +95,7 @@ public function activate($id)
$queue->status = 1;
$queue->save();

return redirect()->back()->with('success', 'Activated');
return redirect()->back()->with('success', trans('lang.activated'));
} catch (Exception $ex) {
return redirect()->back()->with('fails', $ex->getMessage());
}
Expand Down
5 changes: 4 additions & 1 deletion lang/ar/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@
'deleted-users' => 'المستخدمين المحذوفين',
'view-option' => 'خيارات العرض',
'accoutn-not-verified' => 'حساب المستخدم غير موثق',
'enabled' => 'ممكّن',
'enabled' => 'مفعل',
'disabled' => 'معطّل',
'user-account-is-deleted' => 'تم حذف حساب المستخدم هذا.',
'restore-user' => 'استعادة حساب المستخدم',
Expand Down Expand Up @@ -1710,4 +1710,7 @@
'delete_file' => 'حذف ملف',
'log_file_50M_please_download_it.' => 'ملف السجل أكبر من 50 ميجا، يرجى تنزيله.',
'support' => 'يدعم',
'activated' => 'مفعل',
'add-child' => 'إضافة طفل',
'save-successful' => 'تم الحفظ بنجاح ',
];
4 changes: 4 additions & 0 deletions lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -1682,4 +1682,8 @@
'delete_file' => 'Delete file',
'log_file_50M_please_download_it.' => 'Log file >50M, please download it.',
'support' => 'Support',
'optional' => 'Optional',
'activated' => 'Activated',
'add-child' => 'Add Child',
'save-successful' => ' Saved Successfully',
];
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class="nav-link active"
{!! link_to_route('forms.show', Lang::get('lang.view_this_form') ,[$form->id],['id'=>'View','class'=>'btn btn-primary btn-sm']) !!}
</div>
<div class="btn-group">
{!! link_to_route('forms.add.child', 'Add Child' ,[$form->id],['id'=>'add-child','class'=>'btn btn-primary btn-sm']) !!}
{!! link_to_route('forms.add.child', Lang::get('lang.add-child') ,[$form->id],['id'=>'add-child','class'=>'btn btn-primary btn-sm']) !!}
</div>
<div class="btn-group">
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#delete{{$form->id}}">{!! Lang::get('lang.delete_from') !!}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class="nav-link active"
@endif
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">URL Settings</h3>
<h3 class="card-title">URL {{trans('lang.settings')}}</h3>
</div>

<div class="card-body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<div class="col-md-6">
{!! Form::open(['id'=>'merge-form','method' => 'PATCH'] )!!}
<label>{!! Lang::get('lang.title') !!}</label>
<input type="text" name='title' class="form-control" value="" placeholder="Optional" />
<input type="text" name='title' class="form-control" value="" placeholder="{{trans('lang.optional')}}" />
</div>
<div class="col-md-6">
<label>{!! Lang::get('lang.select-pparent-ticket') !!}</label>
Expand Down

0 comments on commit 6885c0f

Please sign in to comment.