mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
update language strings action added
This commit is contained in:
@@ -892,8 +892,8 @@ return [
|
||||
'audios' => 'Audios',
|
||||
'documents' => 'Documents',
|
||||
'paginator' => 'Showing {from} - {to} from {total} records',
|
||||
'require_email_verification' => 'Require Email Verification',
|
||||
'require_email_verification_note' => 'Turn on, if you want to allow user email verification.',
|
||||
'require_email_verification' => 'Require Verify Email Address',
|
||||
'require_email_verification_note' => 'Turn on, if you want verify user email address after registration.',
|
||||
'completed' => 'Completed',
|
||||
'error' => 'Error',
|
||||
'cancelled' => 'Cancelled',
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Domain\Localization\Actions;
|
||||
|
||||
use DB;
|
||||
|
||||
class UpdateLanguageStringsAction
|
||||
{
|
||||
public function __invoke(array $list): void
|
||||
{
|
||||
collect($list)
|
||||
->each(fn(...$item) => DB::table('language_translations')
|
||||
->where('lang', 'en')
|
||||
->where('key', $item[1])
|
||||
->update(['value' => $item[0]])
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ namespace Domain\Maintenance\Controllers;
|
||||
|
||||
use DB;
|
||||
use Domain\Localization\Actions\DeleteLanguageStringsAction;
|
||||
use Domain\Localization\Actions\UpdateLanguageStringsAction;
|
||||
use Schema;
|
||||
use Storage;
|
||||
use Artisan;
|
||||
@@ -22,6 +23,7 @@ class UpgradeSystemController extends Controller
|
||||
public function __construct(
|
||||
public UpgradeDatabaseAction $upgradeDatabase,
|
||||
public DeleteLanguageStringsAction $deleteLanguageStrings,
|
||||
public UpdateLanguageStringsAction $updateLanguageStrings,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -148,5 +150,12 @@ class UpgradeSystemController extends Controller
|
||||
($this->deleteLanguageStrings)([
|
||||
'popup_2fa.disappear_qr'
|
||||
]);
|
||||
|
||||
($this->updateLanguageStrings)([
|
||||
'require_email_verification' => 'Require Verify Email Address',
|
||||
'require_email_verification_note' => 'Turn on, if you want to verify user email address after registration.',
|
||||
]);
|
||||
|
||||
Artisan::call('cache:clear');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user