From: Jerome Jutteau Date: Mon, 16 Apr 2018 20:52:50 +0000 (+0200) Subject: [BUGFIX] Fix partial translations fallback X-Git-Tag: 3.4.1~12 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/8f56b543a56586eefcb12a73c6b24ef2e252038e?ds=sidebyside [BUGFIX] Fix partial translations fallback ref #168 --- 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;