mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 18:00:40 +00:00
update language strings action added
This commit is contained in:
@@ -892,8 +892,8 @@ return [
|
|||||||
'audios' => 'Audios',
|
'audios' => 'Audios',
|
||||||
'documents' => 'Documents',
|
'documents' => 'Documents',
|
||||||
'paginator' => 'Showing {from} - {to} from {total} records',
|
'paginator' => 'Showing {from} - {to} from {total} records',
|
||||||
'require_email_verification' => 'Require Email Verification',
|
'require_email_verification' => 'Require Verify Email Address',
|
||||||
'require_email_verification_note' => 'Turn on, if you want to allow user email verification.',
|
'require_email_verification_note' => 'Turn on, if you want verify user email address after registration.',
|
||||||
'completed' => 'Completed',
|
'completed' => 'Completed',
|
||||||
'error' => 'Error',
|
'error' => 'Error',
|
||||||
'cancelled' => 'Cancelled',
|
'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 DB;
|
||||||
use Domain\Localization\Actions\DeleteLanguageStringsAction;
|
use Domain\Localization\Actions\DeleteLanguageStringsAction;
|
||||||
|
use Domain\Localization\Actions\UpdateLanguageStringsAction;
|
||||||
use Schema;
|
use Schema;
|
||||||
use Storage;
|
use Storage;
|
||||||
use Artisan;
|
use Artisan;
|
||||||
@@ -22,6 +23,7 @@ class UpgradeSystemController extends Controller
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
public UpgradeDatabaseAction $upgradeDatabase,
|
public UpgradeDatabaseAction $upgradeDatabase,
|
||||||
public DeleteLanguageStringsAction $deleteLanguageStrings,
|
public DeleteLanguageStringsAction $deleteLanguageStrings,
|
||||||
|
public UpdateLanguageStringsAction $updateLanguageStrings,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,5 +150,12 @@ class UpgradeSystemController extends Controller
|
|||||||
($this->deleteLanguageStrings)([
|
($this->deleteLanguageStrings)([
|
||||||
'popup_2fa.disappear_qr'
|
'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