mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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
This commit is contained in:
parent
29c93f87e6
commit
c6721161b0
@ -159,9 +159,10 @@ docstring const Messages::get(string const & m) const
|
|||||||
char const * m_c = m.c_str();
|
char const * m_c = m.c_str();
|
||||||
char const * trans_c = gettext(m_c);
|
char const * trans_c = gettext(m_c);
|
||||||
docstring trans;
|
docstring trans;
|
||||||
if (!trans_c)
|
if (!trans_c) {
|
||||||
LYXERR(Debug::LOCALE, "Undefined result from gettext");
|
LYXERR(Debug::LOCALE, "Undefined result from gettext for `" << m << "'.");
|
||||||
else if (trans_c == m_c) {
|
trans = from_ascii(m);
|
||||||
|
} else if (trans_c == m_c) {
|
||||||
//LYXERR(Debug::LOCALE, "Same as entered returned");
|
//LYXERR(Debug::LOCALE, "Same as entered returned");
|
||||||
trans = from_ascii(m);
|
trans = from_ascii(m);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user