From: Richard Heck Date: Mon, 29 Mar 2010 21:33:26 +0000 (+0000) Subject: If the translation fails for some reason, just return what we were X-Git-Tag: 2.0.0~3645 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c6721161b0c2953e16e7927cefd1b20ab7c61fb9;p=features.git If the translation fails for some reason, just return what we were given. This is already how it is done in client/. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33935 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/Messages.cpp b/src/support/Messages.cpp index b578c53dc5..fc6ca0aaf0 100644 --- a/src/support/Messages.cpp +++ b/src/support/Messages.cpp @@ -159,9 +159,10 @@ docstring const Messages::get(string const & m) const char const * m_c = m.c_str(); char const * trans_c = gettext(m_c); docstring trans; - if (!trans_c) - LYXERR(Debug::LOCALE, "Undefined result from gettext"); - else if (trans_c == m_c) { + if (!trans_c) { + LYXERR(Debug::LOCALE, "Undefined result from gettext for `" << m << "'."); + trans = from_ascii(m); + } else if (trans_c == m_c) { //LYXERR(Debug::LOCALE, "Same as entered returned"); trans = from_ascii(m); } else {