Skip to content

Firefly III: a personal finances manager

worked in feedback by JC5

Dominic Guhl13a29a66c8a4
diff --git a/app/Api/V1/Controllers/BudgetLimitController.php b/app/Api/V1/Controllers/BudgetLimitController.php
index a7158c8dac..d1ac952326 100644
--- a/app/Api/V1/Controllers/BudgetLimitController.php
+++ b/app/Api/V1/Controllers/BudgetLimitController.php
@@ -165,7 +165,7 @@ class BudgetLimitController extends Controller
$data = $request->getAll();
$budget = $this->repository->findNull($data['budget_id']);
if (null === $budget) {
- throw new FireflyException(trans('error_unknown_budget'));
+ throw new FireflyException(trans('api.error_unknown_budget'));
}
$data['budget'] = $budget;
$budgetLimit = $this->blRepository->storeBudgetLimit($data);
diff --git a/app/Api/V1/Controllers/CategoryController.php b/app/Api/V1/Controllers/CategoryController.php
index 1f808f5b60..c2ff07d87b 100644
--- a/app/Api/V1/Controllers/CategoryController.php
+++ b/app/Api/V1/Controllers/CategoryController.php
@@ -163,7 +163,7 @@ class CategoryController extends Controller
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', 'application/vnd.api+json');
}
- throw new FireflyException(trans('error_store_new_category')); // @codeCoverageIgnore
+ throw new FireflyException(trans('api.error_store_new_category')); // @codeCoverageIgnore
}
/**
diff --git a/app/Api/V1/Controllers/ConfigurationController.php b/app/Api/V1/Controllers/ConfigurationController.php
index 28a099f114..95a969b7c3 100644
--- a/app/Api/V1/Controllers/ConfigurationController.php
+++ b/app/Api/V1/Controllers/ConfigurationController.php
@@ -57,7 +57,7 @@ class ConfigurationController extends Controller
$admin = auth()->user();
if (!$this->repository->hasRole($admin, 'owner')) {
- throw new FireflyException(trans('error_no_access')); // @codeCoverageIgnore
+ throw new FireflyException(trans('api.error_no_access')); // @codeCoverageIgnore
}
return $next($request);
diff --git a/app/Api/V1/Controllers/LinkTypeController.php b/app/Api/V1/Controllers/LinkTypeController.php
index f4a9a38a88..01969a9425 100644
--- a/app/Api/V1/Controllers/LinkTypeController.php
+++ b/app/Api/V1/Controllers/LinkTypeController.php
@@ -86,7 +86,7 @@ class LinkTypeController extends Controller
public function delete(LinkType $linkType): JsonResponse
{
if (false === $linkType->editable) {
- throw new FireflyException(trans('error_delete_link_type', [':id' => $linkType->id, ':name' => $linkType->name]));
+ throw new FireflyException(trans('api.error_delete_link_type', [':id' => $linkType->id, ':name' => $linkType->name]));
}
$this->repository->destroy($linkType);
diff --git a/app/Api/V1/Controllers/TransactionLinkController.php b/app/Api/V1/Controllers/TransactionLinkController.php
index 6e84e6b775..ca369509d5 100644
--- a/app/Api/V1/Controllers/TransactionLinkController.php
+++ b/app/Api/V1/Controllers/TransactionLinkController.php
@@ -165,7 +165,7 @@ class TransactionLinkController extends Controller
$inward = $this->journalRepository->findNull($data['inward_id'] ?? 0);
$outward = $this->journalRepository->findNull($data['outward_id'] ?? 0);
if (null === $inward || null === $outward) {
- throw new FireflyException(trans('error_source_or_dest_null'));
+ throw new FireflyException(trans('api.error_source_or_dest_null'));
}
$data['direction'] = 'inward';
diff --git a/resources/lang/cs_CZ/api.php b/resources/lang/cs_CZ/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/cs_CZ/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/de_DE/api.php b/resources/lang/de_DE/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/de_DE/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/el_GR/api.php b/resources/lang/el_GR/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/el_GR/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/es_ES/api.php b/resources/lang/es_ES/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/es_ES/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/fr_FR/api.php b/resources/lang/fr_FR/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/fr_FR/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/hu_HU/api.php b/resources/lang/hu_HU/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/hu_HU/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/id_ID/api.php b/resources/lang/id_ID/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/id_ID/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/it_IT/api.php b/resources/lang/it_IT/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/it_IT/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/nb_NO/api.php b/resources/lang/nb_NO/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/nb_NO/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/nl_NL/api.php b/resources/lang/nl_NL/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/nl_NL/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/pl_PL/api.php b/resources/lang/pl_PL/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/pl_PL/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/pt_BR/api.php b/resources/lang/pt_BR/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/pt_BR/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/ro_RO/api.php b/resources/lang/ro_RO/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/ro_RO/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/ru_RU/api.php b/resources/lang/ru_RU/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/ru_RU/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/tr_TR/api.php b/resources/lang/tr_TR/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/tr_TR/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/zh_CN/api.php b/resources/lang/zh_CN/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/zh_CN/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file
diff --git a/resources/lang/zh_TW/api.php b/resources/lang/zh_TW/api.php
deleted file mode 100644
index c0daaf8ad9..0000000000
--- a/resources/lang/zh_TW/api.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * api.php
- * Copyright (c) 2019 [email protected]
- *
- * This file is part of Firefly III (https://github.com/firefly-iii).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
-
-declare(strict_types=1);
-
-return [
-
-];
\ No newline at end of file