Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

l10n: Change admin to administrator #36445

Merged
merged 2 commits into from
Jan 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apps/theming/lib/Migration/MigrateAdminConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ public function __construct(
}

public function getName(): string {
return $this->l10n->t('Failed to clean up the old admin theming images folder');
return $this->l10n->t('Failed to clean up the old administrator theming images folder');
}

public function run(IOutput $output): void {
$output->info('Migrating admin images');
$output->info('Migrating administrator images');
$this->migrateAdminImages($output);
$this->cleanupAdminImages($output);
}

private function migrateAdminImages(IOutput $output): void {
try {
$images = $this->appData->getFolder('images');
$output->info('Migrating admin images');
$output->info('Migrating administrator images');

// get or init the global folder if any
try {
Expand All @@ -84,7 +84,7 @@ private function migrateAdminImages(IOutput $output): void {

$output->finishProgress();
} catch(NotFoundException $e) {
$output->info('No admin images to migrate');
$output->info('No administrator images to migrate');
}
}

Expand All @@ -95,7 +95,7 @@ private function cleanupAdminImages(IOutput $output): void {
$images->delete();
} catch (NotFoundException $e) {
} catch (Throwable $e) {
$output->warning($this->l10n->t('Failed to cleanup the old admin image folder', [$e->getMessage()]));
$output->warning($this->l10n->t('Failed to cleanup the old administrator image folder', [$e->getMessage()]));
}
}
}