impl. todos or move to Project.md

This commit is contained in:
Dennis Eichhorn 2021-09-27 23:14:00 +02:00
parent 3f84308c01
commit b0aa60a334
3 changed files with 29 additions and 10 deletions

View File

@ -12,14 +12,7 @@ If you have a good idea for improvement feel free to create a new issue with all
### Issues
Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the code and have the following structure:
```php
/**
* @todo Orange-Management/Orange-Management#ISSUE_NUMBER [d:difficulty]
* Description for the issue
*/
```
Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the `Project.md` file in the `Docs` repository.
The issue information can be used to provide additional information such as priority, difficulty and type. For your first issue try to find a issue marked `[d:first]` or `[d:beginner]`.

View File

@ -47,6 +47,19 @@ final class Exporter extends ExporterAbstract
*/
private int $account = 1;
/**
* Constructor
*
* @param ConnectionAbstract $local Database connection
*
* @since 1.0.0
*/
public function __construct(ConnectionAbstract $local)
{
$this->local = $local;
$this->app->l11nManager->loadLanguageFile('Exchange', __DIR__ . '/Lang/lang.php');
}
/**
* Export all data in time span
*
@ -84,7 +97,7 @@ final class Exporter extends ExporterAbstract
$log = new ExchangeLog();
$log->createdBy = $this->account;
$log->setType(ExchangeType::EXPORT);
$log->message = 'Language file exported.'; // @todo: localize!
$log->message = $this->app->l11nManager->getText($request->header->l11n->getLanguage(), 'Exchange', '', 'LangFileExported');
$log->subtype = 'language';
$log->exchange = (int) $request->getData('id');

View File

@ -50,6 +50,19 @@ final class Importer extends ImporterAbstract
*/
private int $account = 1;
/**
* Constructor
*
* @param ConnectionAbstract $local Database connection
*
* @since 1.0.0
*/
public function __construct(ConnectionAbstract $local)
{
$this->local = $local;
$this->app->l11nManager->loadLanguageFile('Exchange', __DIR__ . '/Lang/lang.php');
}
/**
* Import all data in time span
*
@ -106,7 +119,7 @@ final class Importer extends ImporterAbstract
$log = new ExchangeLog();
$log->createdBy = $this->account;
$log->setType(ExchangeType::IMPORT);
$log->message = 'Language file imported.'; // @todo: localize!
$log->message = $this->app->l11nManager->getText($request->header->l11n->getLanguage(), 'Exchange', '', 'LangFileImported');
$log->subtype = 'language';
$log->exchange = (int) $request->getData('id');