Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

Fix translations fallback for bad keys

ellite2f3fb1ee8ba3
diff --git a/includes/i18n/getlang.php b/includes/i18n/getlang.php
index 345c74d..b615d1c 100644
--- a/includes/i18n/getlang.php
+++ b/includes/i18n/getlang.php
@@ -13,7 +13,7 @@ function translate($text, $translations) {
if (array_key_exists($text, $translations)) {
return $translations[$text];
} else {
- require_once 'en.php';
+ require 'en.php';
if (array_key_exists($text, $i18n)) {
return $i18n[$text];
} else {