The app is used internally only and its settings page was German already. Mails, controller error messages (shown in the form), the settings section name and the mail sender are now written in German directly instead of going through IL10N without any translation files. Nextcloud's own mail footer is requested in German as well.
34 lines
690 B
PHP
34 lines
690 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\WorkflowDeckAutomation\Settings;
|
|
|
|
use OCA\WorkflowDeckAutomation\AppInfo\Application;
|
|
use OCP\IURLGenerator;
|
|
use OCP\Settings\IIconSection;
|
|
|
|
class PersonalSection implements IIconSection {
|
|
public function __construct(
|
|
private IURLGenerator $urlGenerator,
|
|
) {
|
|
}
|
|
|
|
public function getID(): string {
|
|
return Application::APP_ID;
|
|
}
|
|
|
|
public function getName(): string {
|
|
// German only, like the rest of this internal app.
|
|
return 'Deck Workflow-Automatisierung';
|
|
}
|
|
|
|
public function getPriority(): int {
|
|
return 50;
|
|
}
|
|
|
|
public function getIcon(): string {
|
|
return $this->urlGenerator->imagePath(Application::APP_ID, 'app.svg');
|
|
}
|
|
}
|