Skip to content

Commit

Permalink
Merge pull request #36445 from nextcloud/Valdnet-patch-4
Browse files Browse the repository at this point in the history
l10n: Change admin to administrator
  • Loading branch information
skjnldsv authored Jan 31, 2023
2 parents 825a067 + 928f626 commit e7c9fdb
Showing 1 changed file with 5 additions and 5 deletions.
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 administration theming images folder');
}

public function run(IOutput $output): void {
$output->info('Migrating admin images');
$output->info('Migrating administration 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 administration 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 administration 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 administration image folder', [$e->getMessage()]));
}
}
}

0 comments on commit e7c9fdb

Please sign in to comment.