From 8f56b543a56586eefcb12a73c6b24ef2e252038e Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Mon, 16 Apr 2018 22:52:50 +0200 Subject: [PATCH 1/1] [BUGFIX] Fix partial translations fallback ref #168 --- lib/lang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lang.php b/lib/lang.php index cc0a9ac..45b1a2e 100644 --- a/lib/lang.php +++ b/lib/lang.php @@ -20,7 +20,7 @@ function t($string_id) { $r = t_in($string_id, t_select_lang()); - if ($r === false) { + if ($r === false || $r === "") { $r = t_in($string_id, "en"); if ($r === false) { return "FIX ME: " . $string_id; -- 2.34.1