From 391bfb77b1c5c53a503e109f36b7ba797b6653d0 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 4 Apr 2015 12:49:40 +0200 Subject: [PATCH] ylanguage.cpp: detect missing translations; THX to GetAway! Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/966e0125dd5d80192e3e6c9f2891bb7941b4cbee Author: vanhofen Date: 2015-04-04 (Sat, 04 Apr 2015) Origin message was: ------------------ - ylanguage.cpp: detect missing translations; THX to GetAway! ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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; } //-----------------------------------------------------------------------------