From 298964971c82fd837b613f9eb55a484fae078a14 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Wed, 27 Mar 2024 08:28:48 +0300 Subject: [PATCH] improve phrases --- composer.lock | 138 +++++++++--------- resources/lang/ar/erebus.php | 5 - resources/lang/ar/tartarus.php | 7 + .../System/Resources/CompanyResource.php | 6 + .../CompanyResource/Pages/CompanySettings.php | 9 +- .../CompanyResource/Pages/EditCompany.php | 5 + 6 files changed, 94 insertions(+), 76 deletions(-) delete mode 100644 resources/lang/ar/erebus.php create mode 100644 resources/lang/ar/tartarus.php diff --git a/composer.lock b/composer.lock index a8f85a0..6f2c9fc 100644 --- a/composer.lock +++ b/composer.lock @@ -1398,7 +1398,7 @@ }, { "name": "filament/actions", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/actions.git", @@ -1451,7 +1451,7 @@ }, { "name": "filament/filament", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", @@ -1516,16 +1516,16 @@ }, { "name": "filament/forms", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "40665a05f3beeda10ec1db7ad78bee70e67afb5c" + "reference": "c864c8ac34e1372964d2d4e9595d10ddaabf88c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/40665a05f3beeda10ec1db7ad78bee70e67afb5c", - "reference": "40665a05f3beeda10ec1db7ad78bee70e67afb5c", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/c864c8ac34e1372964d2d4e9595d10ddaabf88c8", + "reference": "c864c8ac34e1372964d2d4e9595d10ddaabf88c8", "shasum": "" }, "require": { @@ -1568,20 +1568,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-23T20:58:49+00:00" + "time": "2024-03-23T23:27:26+00:00" }, { "name": "filament/infolists", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/infolists.git", - "reference": "77a49249e703b884a2cad9e5245ab8b1e7120832" + "reference": "64d1ed73e05eebb688e343348e126a038169c7d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/infolists/zipball/77a49249e703b884a2cad9e5245ab8b1e7120832", - "reference": "77a49249e703b884a2cad9e5245ab8b1e7120832", + "url": "https://api.github.com/repos/filamentphp/infolists/zipball/64d1ed73e05eebb688e343348e126a038169c7d0", + "reference": "64d1ed73e05eebb688e343348e126a038169c7d0", "shasum": "" }, "require": { @@ -1619,11 +1619,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-23T20:58:48+00:00" + "time": "2024-03-23T23:27:28+00:00" }, { "name": "filament/notifications", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", @@ -1675,7 +1675,7 @@ }, { "name": "filament/spatie-laravel-translatable-plugin", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/spatie-laravel-translatable-plugin.git", @@ -1720,7 +1720,7 @@ }, { "name": "filament/support", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", @@ -1777,7 +1777,7 @@ }, { "name": "filament/tables", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", @@ -1830,7 +1830,7 @@ }, { "name": "filament/widgets", - "version": "v3.2.59", + "version": "v3.2.60", "source": { "type": "git", "url": "https://github.com/filamentphp/widgets.git", @@ -2093,16 +2093,16 @@ }, { "name": "jeffgreco13/filament-breezy", - "version": "v2.3.0", + "version": "v2.3.1", "source": { "type": "git", "url": "https://github.com/jeffgreco13/filament-breezy.git", - "reference": "e7a9aa4996f13a4f10466c75b20cbaac7291ba2d" + "reference": "90dbbdc8388645188d443c671e32f3400641c524" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jeffgreco13/filament-breezy/zipball/e7a9aa4996f13a4f10466c75b20cbaac7291ba2d", - "reference": "e7a9aa4996f13a4f10466c75b20cbaac7291ba2d", + "url": "https://api.github.com/repos/jeffgreco13/filament-breezy/zipball/90dbbdc8388645188d443c671e32f3400641c524", + "reference": "90dbbdc8388645188d443c671e32f3400641c524", "shasum": "" }, "require": { @@ -2163,22 +2163,22 @@ ], "support": { "issues": "https://github.com/jeffgreco13/filament-breezy/issues", - "source": "https://github.com/jeffgreco13/filament-breezy/tree/v2.3.0" + "source": "https://github.com/jeffgreco13/filament-breezy/tree/v2.3.1" }, - "time": "2024-03-02T02:28:36+00:00" + "time": "2024-03-24T18:48:01+00:00" }, { "name": "kirschbaum-development/eloquent-power-joins", - "version": "3.5.2", + "version": "3.5.4", "source": { "type": "git", "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git", - "reference": "2fae3aca9eefd4591603a7e53406ab9f56b69fad" + "reference": "fc8bb379f062cd120ffab20a6913ad824c3366d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/2fae3aca9eefd4591603a7e53406ab9f56b69fad", - "reference": "2fae3aca9eefd4591603a7e53406ab9f56b69fad", + "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/fc8bb379f062cd120ffab20a6913ad824c3366d8", + "reference": "fc8bb379f062cd120ffab20a6913ad824c3366d8", "shasum": "" }, "require": { @@ -2225,9 +2225,9 @@ ], "support": { "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues", - "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.5.2" + "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.5.4" }, - "time": "2024-03-20T10:23:27+00:00" + "time": "2024-03-26T19:12:33+00:00" }, { "name": "lab404/laravel-impersonate", @@ -2298,16 +2298,16 @@ }, { "name": "lara-zeus/chaos", - "version": "v1.0.5", + "version": "v1.0.6", "source": { "type": "git", "url": "https://github.com/lara-zeus/chaos.git", - "reference": "e65418442beff381b551911f13cd73073db3f01b" + "reference": "8d1d295999569034c17c63e88d3aeb1d40a0d74c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lara-zeus/chaos/zipball/e65418442beff381b551911f13cd73073db3f01b", - "reference": "e65418442beff381b551911f13cd73073db3f01b", + "url": "https://api.github.com/repos/lara-zeus/chaos/zipball/8d1d295999569034c17c63e88d3aeb1d40a0d74c", + "reference": "8d1d295999569034c17c63e88d3aeb1d40a0d74c", "shasum": "" }, "require": { @@ -2362,7 +2362,7 @@ "type": "github" } ], - "time": "2024-03-20T01:04:07+00:00" + "time": "2024-03-25T01:14:20+00:00" }, { "name": "lara-zeus/erebus", @@ -2746,16 +2746,16 @@ }, { "name": "laravel/prompts", - "version": "v0.1.16", + "version": "v0.1.17", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "ca6872ab6aec3ab61db3a61f83a6caf764ec7781" + "reference": "8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/ca6872ab6aec3ab61db3a61f83a6caf764ec7781", - "reference": "ca6872ab6aec3ab61db3a61f83a6caf764ec7781", + "url": "https://api.github.com/repos/laravel/prompts/zipball/8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5", + "reference": "8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5", "shasum": "" }, "require": { @@ -2797,9 +2797,9 @@ ], "support": { "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.1.16" + "source": "https://github.com/laravel/prompts/tree/v0.1.17" }, - "time": "2024-02-21T19:25:27+00:00" + "time": "2024-03-13T16:05:43+00:00" }, { "name": "laravel/serializable-closure", @@ -3140,16 +3140,16 @@ }, { "name": "league/flysystem", - "version": "3.25.1", + "version": "3.26.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "abbd664eb4381102c559d358420989f835208f18" + "reference": "072735c56cc0da00e10716dd90d5a7f7b40b36be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/abbd664eb4381102c559d358420989f835208f18", - "reference": "abbd664eb4381102c559d358420989f835208f18", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/072735c56cc0da00e10716dd90d5a7f7b40b36be", + "reference": "072735c56cc0da00e10716dd90d5a7f7b40b36be", "shasum": "" }, "require": { @@ -3214,7 +3214,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.25.1" + "source": "https://github.com/thephpleague/flysystem/tree/3.26.0" }, "funding": [ { @@ -3226,7 +3226,7 @@ "type": "github" } ], - "time": "2024-03-16T12:53:19+00:00" + "time": "2024-03-25T11:49:53+00:00" }, { "name": "league/flysystem-local", @@ -5768,16 +5768,16 @@ }, { "name": "stechstudio/filament-impersonate", - "version": "3.7", + "version": "3.8", "source": { "type": "git", "url": "https://github.com/stechstudio/filament-impersonate.git", - "reference": "ed833ac52cc6dd7109ed9c0340bd90b1672c88b8" + "reference": "d24a9ffc1ef2f87940d151ca1cb2c2d2e5e524a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stechstudio/filament-impersonate/zipball/ed833ac52cc6dd7109ed9c0340bd90b1672c88b8", - "reference": "ed833ac52cc6dd7109ed9c0340bd90b1672c88b8", + "url": "https://api.github.com/repos/stechstudio/filament-impersonate/zipball/d24a9ffc1ef2f87940d151ca1cb2c2d2e5e524a8", + "reference": "d24a9ffc1ef2f87940d151ca1cb2c2d2e5e524a8", "shasum": "" }, "require": { @@ -5804,9 +5804,9 @@ "description": "A Filament package to impersonate your users.", "support": { "issues": "https://github.com/stechstudio/filament-impersonate/issues", - "source": "https://github.com/stechstudio/filament-impersonate/tree/3.7" + "source": "https://github.com/stechstudio/filament-impersonate/tree/3.8" }, - "time": "2024-02-23T12:34:23+00:00" + "time": "2024-03-25T03:05:55+00:00" }, { "name": "symfony/console", @@ -8864,16 +8864,16 @@ }, { "name": "laravel/pint", - "version": "v1.14.0", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "6b127276e3f263f7bb17d5077e9e0269e61b2a0e" + "reference": "c52de679b3ac01207016c179d7ce173e4be128c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/6b127276e3f263f7bb17d5077e9e0269e61b2a0e", - "reference": "6b127276e3f263f7bb17d5077e9e0269e61b2a0e", + "url": "https://api.github.com/repos/laravel/pint/zipball/c52de679b3ac01207016c179d7ce173e4be128c4", + "reference": "c52de679b3ac01207016c179d7ce173e4be128c4", "shasum": "" }, "require": { @@ -8926,7 +8926,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-02-20T17:38:05+00:00" + "time": "2024-03-26T16:40:24+00:00" }, { "name": "laravel/tinker", @@ -9439,16 +9439,16 @@ }, { "name": "orchestra/testbench", - "version": "v8.22.1", + "version": "v8.22.2", "source": { "type": "git", "url": "https://github.com/orchestral/testbench.git", - "reference": "2ab5afb6b4dbcc8ad132e60db4e6eb5f1069cb6d" + "reference": "d08b40877714370c8788ff1d9813d9fc9c6c55b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench/zipball/2ab5afb6b4dbcc8ad132e60db4e6eb5f1069cb6d", - "reference": "2ab5afb6b4dbcc8ad132e60db4e6eb5f1069cb6d", + "url": "https://api.github.com/repos/orchestral/testbench/zipball/d08b40877714370c8788ff1d9813d9fc9c6c55b2", + "reference": "d08b40877714370c8788ff1d9813d9fc9c6c55b2", "shasum": "" }, "require": { @@ -9456,7 +9456,7 @@ "fakerphp/faker": "^1.21", "laravel/framework": "^10.40", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": "^8.23.4", + "orchestra/testbench-core": "^8.23.5", "orchestra/workbench": "^1.4 || ^8.4", "php": "^8.1", "phpunit/phpunit": "^9.6 || ^10.1", @@ -9488,22 +9488,22 @@ ], "support": { "issues": "https://github.com/orchestral/testbench/issues", - "source": "https://github.com/orchestral/testbench/tree/v8.22.1" + "source": "https://github.com/orchestral/testbench/tree/v8.22.2" }, - "time": "2024-03-19T12:59:06+00:00" + "time": "2024-03-25T10:09:14+00:00" }, { "name": "orchestra/testbench-core", - "version": "v8.23.4", + "version": "v8.23.5", "source": { "type": "git", "url": "https://github.com/orchestral/testbench-core.git", - "reference": "a863b355bf73609121c1d2d08b3ffb8b27ecb8d0" + "reference": "0e5c930d247f50d1d6d5997441e57891af862634" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/a863b355bf73609121c1d2d08b3ffb8b27ecb8d0", - "reference": "a863b355bf73609121c1d2d08b3ffb8b27ecb8d0", + "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/0e5c930d247f50d1d6d5997441e57891af862634", + "reference": "0e5c930d247f50d1d6d5997441e57891af862634", "shasum": "" }, "require": { @@ -9582,7 +9582,7 @@ "issues": "https://github.com/orchestral/testbench/issues", "source": "https://github.com/orchestral/testbench-core" }, - "time": "2024-03-19T11:18:56+00:00" + "time": "2024-03-25T04:32:37+00:00" }, { "name": "orchestra/workbench", diff --git a/resources/lang/ar/erebus.php b/resources/lang/ar/erebus.php deleted file mode 100644 index 32aa3a2..0000000 --- a/resources/lang/ar/erebus.php +++ /dev/null @@ -1,5 +0,0 @@ - 'الموظفين', -]; diff --git a/resources/lang/ar/tartarus.php b/resources/lang/ar/tartarus.php new file mode 100644 index 0000000..13d21d8 --- /dev/null +++ b/resources/lang/ar/tartarus.php @@ -0,0 +1,7 @@ + 'الموظفين', + 'edit_company_label' => 'تعديل الشركة', + 'company_settings_label' => 'اعدادات الشركة', +]; diff --git a/src/Filament/Clusters/System/Resources/CompanyResource.php b/src/Filament/Clusters/System/Resources/CompanyResource.php index 705ae73..bffe5bd 100644 --- a/src/Filament/Clusters/System/Resources/CompanyResource.php +++ b/src/Filament/Clusters/System/Resources/CompanyResource.php @@ -15,6 +15,7 @@ use LaraZeus\Chaos\Filament\ChaosResource\ChaosTables; use LaraZeus\Tartarus\Filament\Clusters\System\Resources\CompanyResource\Pages; use LaraZeus\Tartarus\Models\Company; +use LaraZeus\Tartarus\TartarusPlugin; use STS\FilamentImpersonate\Tables\Actions\Impersonate; class CompanyResource extends ChaosResource @@ -27,6 +28,11 @@ class CompanyResource extends ChaosResource protected static ?int $navigationSort = 1; + public static function getNavigationGroup(): ?string + { + return TartarusPlugin::get()->getNavigationGroupLabel(); + } + public static function form(Form $form): Form { return ChaosForms::make($form, [ diff --git a/src/Filament/Clusters/System/Resources/CompanyResource/Pages/CompanySettings.php b/src/Filament/Clusters/System/Resources/CompanyResource/Pages/CompanySettings.php index fe35422..cf50899 100644 --- a/src/Filament/Clusters/System/Resources/CompanyResource/Pages/CompanySettings.php +++ b/src/Filament/Clusters/System/Resources/CompanyResource/Pages/CompanySettings.php @@ -28,11 +28,16 @@ class CompanySettings extends Page protected static string $view = 'zeus-tartarus::company.pages.company-settings'; - public static function langFile(): string + public static function getNavigationLabel(): string { - return 'companies'; + return __('zeus-tartarus::tartarus.company_settings_label'); } + /*public static function langFile(): string + { + return 'companies'; + }*/ + public function mount(int | string $record): void { /** diff --git a/src/Filament/Clusters/System/Resources/CompanyResource/Pages/EditCompany.php b/src/Filament/Clusters/System/Resources/CompanyResource/Pages/EditCompany.php index 4f20e4f..4b53c83 100644 --- a/src/Filament/Clusters/System/Resources/CompanyResource/Pages/EditCompany.php +++ b/src/Filament/Clusters/System/Resources/CompanyResource/Pages/EditCompany.php @@ -10,6 +10,11 @@ class EditCompany extends ChaosEditRecord { protected static string $resource = CompanyResource::class; + public static function getNavigationLabel(): string + { + return __('zeus-tartarus::tartarus.edit_company_label'); + } + protected function getHeaderActions(): array { return [