From 487203436bed901234bf5464bb53ec123c3bd2b3 Mon Sep 17 00:00:00 2001 From: Remco Date: Mon, 2 Feb 2026 20:03:56 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=99=20Fix=20missing=20transolations=20?= =?UTF-8?q?=F0=9F=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Filament/Resources/Atom/Articles/ArticleResource.php | 3 +-- .../Resources/Atom/Permissions/PermissionResource.php | 4 ++-- .../app/Filament/Resources/Atom/Teams/TeamResource.php | 1 - .../Hotel/BadgeUploads/Pages/ManageBadgeUploads.php | 1 - .../app/Filament/Resources/User/Users/Pages/EditUser.php | 2 +- .../app/Filament/Resources/User/Users/UserResource.php | 1 - cms update/app/Helpers/helper.php | 2 +- .../Controllers/Community/WebsiteRareValuesController.php | 1 - cms update/app/Http/Middleware/InstallationMiddleware.php | 1 - cms update/app/Services/Parsers/ExternalTextsParser.php | 3 +++ cms update/app/Services/RconService.php | 7 ++++--- cms update/lang/vendor/filament/da/resources.php | 5 +++++ cms update/lang/vendor/filament/de/resources.php | 5 +++++ cms update/lang/vendor/filament/en/resources.php | 5 +++++ cms update/lang/vendor/filament/es/resources.php | 5 +++++ cms update/lang/vendor/filament/fi/resources.php | 5 +++++ cms update/lang/vendor/filament/fr/resources.php | 5 +++++ cms update/lang/vendor/filament/nl/resources.php | 5 +++++ cms update/lang/vendor/filament/pt_BR/resources.php | 5 +++++ cms update/lang/vendor/filament/tr/resources.php | 5 +++++ 20 files changed, 57 insertions(+), 14 deletions(-) diff --git a/cms update/app/Filament/Resources/Atom/Articles/ArticleResource.php b/cms update/app/Filament/Resources/Atom/Articles/ArticleResource.php index aea277f097..f480adb257 100644 --- a/cms update/app/Filament/Resources/Atom/Articles/ArticleResource.php +++ b/cms update/app/Filament/Resources/Atom/Articles/ArticleResource.php @@ -26,9 +26,8 @@ use Filament\Actions\RestoreBulkAction; use Filament\Actions\ViewAction; use Filament\Forms\Components\FileUpload; use Filament\Forms\Components\Hidden; -use Filament\Forms\Components\TextInput; -use Illuminate\Support\Str; use Filament\Forms\Components\RichEditor; +use Filament\Forms\Components\TextInput; use Filament\Forms\Components\Toggle; use Filament\Resources\Resource; use Filament\Schemas\Components\Tabs; diff --git a/cms update/app/Filament/Resources/Atom/Permissions/PermissionResource.php b/cms update/app/Filament/Resources/Atom/Permissions/PermissionResource.php index 643f8ee2d6..8bbf41e911 100644 --- a/cms update/app/Filament/Resources/Atom/Permissions/PermissionResource.php +++ b/cms update/app/Filament/Resources/Atom/Permissions/PermissionResource.php @@ -18,7 +18,6 @@ use Filament\Forms\Components\Toggle; use Filament\Forms\Components\ToggleButtons; use Filament\Pages\Enums\SubNavigationPosition; use Filament\Resources\Resource; -use Illuminate\Support\Str; use Filament\Schemas\Components\Grid; use Filament\Schemas\Components\Section; use Filament\Schemas\Components\Tabs; @@ -26,9 +25,10 @@ use Filament\Schemas\Components\Tabs\Tab; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Columns\ToggleColumn; use Filament\Tables\Table; -use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Schema; use Illuminate\Support\HtmlString; +use Illuminate\Support\Str; + // ensure Str is imported once class PermissionResource extends Resource diff --git a/cms update/app/Filament/Resources/Atom/Teams/TeamResource.php b/cms update/app/Filament/Resources/Atom/Teams/TeamResource.php index b96c5ccb95..94cc33d511 100644 --- a/cms update/app/Filament/Resources/Atom/Teams/TeamResource.php +++ b/cms update/app/Filament/Resources/Atom/Teams/TeamResource.php @@ -18,7 +18,6 @@ use Filament\Schemas\Schema; use Filament\Tables\Columns\IconColumn; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Table; -use Illuminate\Database\Eloquent\Model; class TeamResource extends Resource { diff --git a/cms update/app/Filament/Resources/Hotel/BadgeUploads/Pages/ManageBadgeUploads.php b/cms update/app/Filament/Resources/Hotel/BadgeUploads/Pages/ManageBadgeUploads.php index 0fd4baff05..5e90e28cd5 100644 --- a/cms update/app/Filament/Resources/Hotel/BadgeUploads/Pages/ManageBadgeUploads.php +++ b/cms update/app/Filament/Resources/Hotel/BadgeUploads/Pages/ManageBadgeUploads.php @@ -3,7 +3,6 @@ namespace App\Filament\Resources\Hotel\BadgeUploads\Pages; use Filament\Forms\Components\FileUpload; -use Filament\Forms\Components\TextInput; use Filament\Forms\Concerns\InteractsWithForms; use Filament\Forms\Contracts\HasForms; use Filament\Notifications\Notification; diff --git a/cms update/app/Filament/Resources/User/Users/Pages/EditUser.php b/cms update/app/Filament/Resources/User/Users/Pages/EditUser.php index 38bb4ee675..c789efc165 100644 --- a/cms update/app/Filament/Resources/User/Users/Pages/EditUser.php +++ b/cms update/app/Filament/Resources/User/Users/Pages/EditUser.php @@ -15,10 +15,10 @@ use Filament\Resources\Pages\EditRecord; use Filament\Support\Exceptions\Halt; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Facades\DB; -use Illuminate\Support\Str; /** * @method \App\Models\User getRecord() + * * @property-read \App\Models\User $record */ class EditUser extends EditRecord diff --git a/cms update/app/Filament/Resources/User/Users/UserResource.php b/cms update/app/Filament/Resources/User/Users/UserResource.php index 71e06b89ff..346dd25ac9 100644 --- a/cms update/app/Filament/Resources/User/Users/UserResource.php +++ b/cms update/app/Filament/Resources/User/Users/UserResource.php @@ -30,7 +30,6 @@ use Filament\Tables\Columns\IconColumn; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Table; use Illuminate\Database\Eloquent\Builder; -use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Hash; class UserResource extends Resource diff --git a/cms update/app/Helpers/helper.php b/cms update/app/Helpers/helper.php index f360120b70..bdcbd77c1d 100644 --- a/cms update/app/Helpers/helper.php +++ b/cms update/app/Helpers/helper.php @@ -49,7 +49,7 @@ if (! function_exists('findMigration')) { foreach (glob(database_path('migrations/*.php')) as $filename) { // Check if the migration file has the Schema::create() line with the given table name $content = file_get_contents($filename); - if (preg_match("/Schema::create\\(['\"]".preg_quote($tableName, '/')."['\"]/", $content)) { + if (preg_match("/Schema::create\\(['\"]" . preg_quote($tableName, '/') . "['\"]/", $content)) { return basename($filename, '.php'); } } diff --git a/cms update/app/Http/Controllers/Community/WebsiteRareValuesController.php b/cms update/app/Http/Controllers/Community/WebsiteRareValuesController.php index 9a77ebf779..47626f7cf9 100644 --- a/cms update/app/Http/Controllers/Community/WebsiteRareValuesController.php +++ b/cms update/app/Http/Controllers/Community/WebsiteRareValuesController.php @@ -8,7 +8,6 @@ use App\Models\Community\RareValue\WebsiteRareValue; use App\Models\Community\RareValue\WebsiteRareValueCategory; use App\Models\Game\Furniture\Item; use App\Services\Community\RareValues\RareValueCategoriesService; -use Illuminate\Http\RedirectResponse; use Illuminate\Support\Facades\Cache; use Illuminate\View\View; diff --git a/cms update/app/Http/Middleware/InstallationMiddleware.php b/cms update/app/Http/Middleware/InstallationMiddleware.php index ac626e1a3a..42d0c8b293 100644 --- a/cms update/app/Http/Middleware/InstallationMiddleware.php +++ b/cms update/app/Http/Middleware/InstallationMiddleware.php @@ -2,7 +2,6 @@ namespace App\Http\Middleware; -use App\Exceptions\MigrationFailedException; use App\Models\Miscellaneous\WebsiteInstallation; use App\Services\InstallationService; use Closure; diff --git a/cms update/app/Services/Parsers/ExternalTextsParser.php b/cms update/app/Services/Parsers/ExternalTextsParser.php index a565c6a385..a5e4a1f29b 100644 --- a/cms update/app/Services/Parsers/ExternalTextsParser.php +++ b/cms update/app/Services/Parsers/ExternalTextsParser.php @@ -13,14 +13,17 @@ class ExternalTextsParser 'flash' => [], ]; } + public function updateNitroBadgeTexts(string $code, string $title, string $description): void { // stub } + public function updateFlashBadgeTexts(string $code, string $title, string $description): void { // stub } + public function getBadgeImageUrl(string $badgeCode): string { return ''; diff --git a/cms update/app/Services/RconService.php b/cms update/app/Services/RconService.php index 3f1d006f47..67c2bfbcd3 100644 --- a/cms update/app/Services/RconService.php +++ b/cms update/app/Services/RconService.php @@ -258,9 +258,10 @@ class RconService /** * Send an RCON command safely from dashboard with error handling * - * @param string $command The command to send - * @param array $params The parameters for the command - * @param string $errorMessage The error message to log if command fails + * @param string $command The command to send + * @param array $params The parameters for the command + * @param string $errorMessage The error message to log if command fails + * * @throws RconConnectionException * @throws JsonException */ diff --git a/cms update/lang/vendor/filament/da/resources.php b/cms update/lang/vendor/filament/da/resources.php index 323fb209b9..12b2230dce 100644 --- a/cms update/lang/vendor/filament/da/resources.php +++ b/cms update/lang/vendor/filament/da/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Indstilling', 'plural' => 'CMS Indstillinger', ], + 'help-categories' => [ + 'navigation_label' => 'Administrer Hjælpekategorier', + 'label' => 'Hjælpekategori', + 'plural' => 'Hjælpekategorier', + ], 'help-question-categories' => [ 'navigation_label' => 'Administrer Kategorier', 'label' => 'Kategori', diff --git a/cms update/lang/vendor/filament/de/resources.php b/cms update/lang/vendor/filament/de/resources.php index 80355039a9..62ce082877 100644 --- a/cms update/lang/vendor/filament/de/resources.php +++ b/cms update/lang/vendor/filament/de/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Setting', 'plural' => 'CMS Settings', ], + 'help-categories' => [ + 'navigation_label' => 'Manage Help Categories', + 'label' => 'Help Category', + 'plural' => 'Help Categories', + ], 'help-question-categories' => [ 'navigation_label' => 'Manage Categories', 'label' => 'Category', diff --git a/cms update/lang/vendor/filament/en/resources.php b/cms update/lang/vendor/filament/en/resources.php index 0bbcba5830..bdcbc09eae 100644 --- a/cms update/lang/vendor/filament/en/resources.php +++ b/cms update/lang/vendor/filament/en/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Setting', 'plural' => 'CMS Settings', ], + 'help-categories' => [ + 'navigation_label' => 'Manage Help Categories', + 'label' => 'Help Category', + 'plural' => 'Help Categories', + ], 'help-question-categories' => [ 'navigation_label' => 'Manage Categories', 'label' => 'Category', diff --git a/cms update/lang/vendor/filament/es/resources.php b/cms update/lang/vendor/filament/es/resources.php index 8a0495112e..eb0bedef8d 100644 --- a/cms update/lang/vendor/filament/es/resources.php +++ b/cms update/lang/vendor/filament/es/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Configuración', 'plural' => 'Configuraciones de CMS', ], + 'help-categories' => [ + 'navigation_label' => 'Administrar Categorías de Ayuda', + 'label' => 'Categoría de Ayuda', + 'plural' => 'Categorías de Ayuda', + ], 'help-question-categories' => [ 'navigation_label' => 'Administrar Categorías', 'label' => 'Categoría', diff --git a/cms update/lang/vendor/filament/fi/resources.php b/cms update/lang/vendor/filament/fi/resources.php index 457e5a6262..cf3539861f 100644 --- a/cms update/lang/vendor/filament/fi/resources.php +++ b/cms update/lang/vendor/filament/fi/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Asetus', 'plural' => 'CMS-asetukset', ], + 'help-categories' => [ + 'navigation_label' => 'Hallinnoi Ohjecategories', + 'label' => 'Ohjekategoria', + 'plural' => 'Ohjekategoriat', + ], 'help-question-categories' => [ 'navigation_label' => 'Hallinnoi kategorioita', 'label' => 'Kategoria', diff --git a/cms update/lang/vendor/filament/fr/resources.php b/cms update/lang/vendor/filament/fr/resources.php index 145eedd5f4..851dd4e5f1 100644 --- a/cms update/lang/vendor/filament/fr/resources.php +++ b/cms update/lang/vendor/filament/fr/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Paramètre', 'plural' => 'Paramètres CMS', ], + 'help-categories' => [ + 'navigation_label' => 'Gérer les catégories d\'aide', + 'label' => 'Catégorie d\'aide', + 'plural' => 'Catégories d\'aide', + ], 'help-question-categories' => [ 'navigation_label' => 'Gérer les catégories de questions', 'label' => 'Catégorie', diff --git a/cms update/lang/vendor/filament/nl/resources.php b/cms update/lang/vendor/filament/nl/resources.php index 596dda1866..d25932fa71 100644 --- a/cms update/lang/vendor/filament/nl/resources.php +++ b/cms update/lang/vendor/filament/nl/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Instelling', 'plural' => 'CMS instellingen', ], + 'help-categories' => [ + 'navigation_label' => 'Beheer Help Categorieën', + 'label' => 'Help Categorie', + 'plural' => 'Help Categorieën', + ], 'help-question-categories' => [ 'navigation_label' => 'Beheer Vraag Categorieën', 'label' => 'Vraag Categorie', diff --git a/cms update/lang/vendor/filament/pt_BR/resources.php b/cms update/lang/vendor/filament/pt_BR/resources.php index 199b6bcfa3..30efc7a4ef 100644 --- a/cms update/lang/vendor/filament/pt_BR/resources.php +++ b/cms update/lang/vendor/filament/pt_BR/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Configuração', 'plural' => 'Configurações da CMS', ], + 'help-categories' => [ + 'navigation_label' => 'Gerenciar Categorias de Ajuda', + 'label' => 'Categoria de Ajuda', + 'plural' => 'Categorias de Ajuda', + ], 'help-question-categories' => [ 'navigation_label' => 'Gerenciar Categorias', 'label' => 'Categoria', diff --git a/cms update/lang/vendor/filament/tr/resources.php b/cms update/lang/vendor/filament/tr/resources.php index 69845c707d..ecd74e060b 100644 --- a/cms update/lang/vendor/filament/tr/resources.php +++ b/cms update/lang/vendor/filament/tr/resources.php @@ -37,6 +37,11 @@ return [ 'label' => 'Ayar', 'plural' => 'CMS Ayarları', ], + 'help-categories' => [ + 'navigation_label' => 'Yardım Kategorilerini Yönet', + 'label' => 'Yardım Kategorisi', + 'plural' => 'Yardım Kategorileri', + ], 'help-question-categories' => [ 'navigation_label' => 'Kategorileri Yönet', 'label' => 'Kategori',