From 966e0125dd5d80192e3e6c9f2891bb7941b4cbee Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 4 Apr 2015 12:49:40 +0200 Subject: [PATCH] - ylanguage.cpp: detect missing translations; THX to GetAway! --- src/nhttpd/yhttpd_core/ylanguage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nhttpd/yhttpd_core/ylanguage.cpp b/src/nhttpd/yhttpd_core/ylanguage.cpp index 0e0e5189c..7c56f80ec 100644 --- a/src/nhttpd/yhttpd_core/ylanguage.cpp +++ b/src/nhttpd/yhttpd_core/ylanguage.cpp @@ -103,6 +103,8 @@ std::string CLanguage::getTranslation(std::string id){ trans=NeutrinoLanguage->getString(id,""); if(trans.empty()) trans=DefaultLanguage->getString(id,""); + if (trans.empty()) + trans = "# " + id + " #"; return trans; } //-----------------------------------------------------------------------------