diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b9dc7a5..cab9f5e 100755 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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]`. diff --git a/Interfaces/OMS/Exporter.php b/Interfaces/OMS/Exporter.php index 8bb5a89..001a799 100755 --- a/Interfaces/OMS/Exporter.php +++ b/Interfaces/OMS/Exporter.php @@ -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'); diff --git a/Interfaces/OMS/Importer.php b/Interfaces/OMS/Importer.php index 08c5f63..d99c8e3 100755 --- a/Interfaces/OMS/Importer.php +++ b/Interfaces/OMS/Importer.php @@ -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');