Skip to content

Commit 8e14318

Browse files
committed
Translations for Bangla (bn) added.
1 parent 9f05ba7 commit 8e14318

File tree

11 files changed

+281
-19
lines changed

11 files changed

+281
-19
lines changed

src/Console/InstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public function handle(): int
3636

3737
protected function phpBinary(): string
3838
{
39-
return (new PhpExecutableFinder())->find(false) ?: 'php';
39+
return (new PhpExecutableFinder)->find(false) ?: 'php';
4040
}
4141
}

src/Console/PublishLaravelTranslationsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function handle(): int
3232

3333
private function publishLang(string $lang): void
3434
{
35-
$filesystem = new Filesystem();
35+
$filesystem = new Filesystem;
3636

3737
$filesystem->copyDirectory(
3838
__DIR__."/../../stubs/lang/{$lang}",

stubs/app/Http/Middleware/HandleInertiaRequests.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace App\Http\Middleware;
44

5-
use Carbon\Carbon;
6-
use Inertia\Middleware;
7-
use Tighten\Ziggy\Ziggy;
85
use Illuminate\Http\Request;
6+
use Inertia\Middleware;
97
use Modules\Acl\Services\ListUserPermissions;
8+
use Tighten\Ziggy\Ziggy;
109

1110
class HandleInertiaRequests extends Middleware
1211
{
@@ -42,10 +41,10 @@ public function share(Request $request)
4241
'permissions' => $user ? (new ListUserPermissions)->run($user->id) : [],
4342
'isRootUser' => $user ? ($user->hasRole('root') ? true : false) : false,
4443
],
45-
'ziggy' => fn() => array_merge((new Ziggy)->toArray(), [
44+
'ziggy' => fn () => array_merge((new Ziggy)->toArray(), [
4645
'location' => $request->url(),
4746
]),
48-
'flash' => fn() => [
47+
'flash' => fn () => [
4948
'success' => $request->session()->get('success'),
5049
'error' => $request->session()->get('error'),
5150
],

stubs/lang/bn/auth.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Authentication Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines are used during authentication for various
11+
| messages that we need to display to the user. You are free to modify
12+
| these language lines according to your application's requirements.
13+
|
14+
*/
15+
16+
'failed' => 'এই পরিচয়পত্র আমাদের রেকর্ডের সাথে মেলে না।',
17+
'password' => 'পাসওয়ার্ড ভুল।',
18+
'throttle' => 'লগইন করার জন্য অনেকবার চেষ্টা করেছেন, :seconds সেকেন্ড পরে পুনরায় চেষ্টা করুন।',
19+
20+
];

stubs/lang/bn/pagination.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Pagination Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines are used by the paginator library to build
11+
| the simple pagination links. You are free to change them to anything
12+
| you want to customize your views to better match your application.
13+
|
14+
*/
15+
16+
'previous' => '&laquo; পূর্বে',
17+
'next' => 'পরবর্তি &raquo;',
18+
19+
'Showing' => 'দেখাচ্ছে',
20+
'to' => 'পর্যন্ত',
21+
'of' => 'এর মধ্যে',
22+
'results' => 'ফলাফলসমুহ',
23+
24+
];

stubs/lang/bn/passwords.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Password Reset Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines are the default lines which match reasons
11+
| that are given by the password broker for a password update attempt
12+
| has failed, such as for an invalid token or invalid new password.
13+
|
14+
*/
15+
16+
'reset' => 'আপনার পাসওয়ার্ড পুনরায় সেট করা হয়েছে!',
17+
'sent' => 'আমরা আপনার পাসওয়ার্ড পুনরায় সেট করার লিঙ্ক ই-মেইল করেছি!',
18+
'throttle' => 'লগইন করার জন্য অনেকবার চেষ্টা করেছেন, :seconds সেকেন্ড পরে পুনরায় চেষ্টা করুন।',
19+
'token' => 'এই পাসওয়ার্ড রিসেট টোকেনটি সঠিক নয়।',
20+
'user' => 'এই ই-মেইল দিয়ে কোন ব্যবহারকারী খুঁজে পাওয়া যাচ্ছে না',
21+
22+
];

0 commit comments

Comments
 (0)