🆙 Fix missing transolations 🆙

This commit is contained in:
Remco
2026-02-02 20:03:56 +01:00
parent 883cbbbfeb
commit 487203436b
20 changed files with 57 additions and 14 deletions
@@ -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;
@@ -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
@@ -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
{
@@ -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;
@@ -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
@@ -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
+1 -1
View File
@@ -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');
}
}
@@ -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;
@@ -2,7 +2,6 @@
namespace App\Http\Middleware;
use App\Exceptions\MigrationFailedException;
use App\Models\Miscellaneous\WebsiteInstallation;
use App\Services\InstallationService;
use Closure;
@@ -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 '';
+4 -3
View File
@@ -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
*/