implement localization

This commit is contained in:
Dennis Eichhorn 2020-03-22 18:42:34 +01:00
parent 773fbe458f
commit 0396129a2a
4 changed files with 78 additions and 0 deletions

View File

@ -39,6 +39,14 @@ final class CollectionMapper extends MediaMapper
],
];
/**
* Model to use by the mapper.
*
* @var string
* @since 1.0.0
*/
protected static string $model = Collection::class;
/**
* Primary table.
*

View File

@ -65,6 +65,14 @@ class MediaMapper extends DataMapperAbstract
],
];
/**
* Model to use by the mapper.
*
* @var string
* @since 1.0.0
*/
protected static string $model = Media::class;
/**
* Primary table.
*

View File

@ -0,0 +1,19 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Media
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
return ['Navigation' => [
'Create' => 'Erstellen',
'List' => 'Liste',
'Media' => 'Media',
]];

View File

@ -0,0 +1,43 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Media
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
return ['Media' => [
'Account' => 'Account',
'AddToCollection' => 'Zum Ordner hinzufügen',
'Author' => 'Autor',
'Changed' => 'Geändert',
'Changedby' => 'Geändert by',
'Created' => 'Erstellt',
'Creator' => 'Ersteller',
'Data' => 'Daten',
'Description' => 'Beschreibung',
'Edit' => 'Bearbeiten',
'Editability' => 'Bearbeitung',
'Extension' => 'Endung',
'FilePath' => 'Dateipfad',
'Files' => 'Dateien',
'Media' => 'Media',
'Name' => 'Name',
'Path' => 'Pfad',
'PathSettings' => 'Pfad Einstellung',
'Permission' => 'Rechte',
'Preview' => 'Vorschau',
'RandomPath' => 'Zufälliger Pfad',
'Select' => 'Auswahl',
'Settings' => 'Einstellungen',
'Size' => 'Größe',
'Type' => 'Typ',
'Upload' => 'Hochladen',
'Visibility' => 'Sichtbarkeit',
]];