Merge branch 'translation-settings-improvements' into yubo

merge-requests/7/merge
Nuno 4 years ago
commit 484f3662b3

@ -882,9 +882,11 @@ void CGroupInSceneBubbleManager::chatOpen (uint32 nUID, const ucstring &ucsText,
string::size_type endOfOriginal = ucsText.find(ucstring("}@{"));
if (startTr != string::npos && endOfOriginal != string::npos) {
bool inverse = false;
string lang = toUpper(ucsText.substr(startTr+2, 2)).toString();
CCDBNodeLeaf *node= NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:TRANSLATION:" + lang + ":INVERSE_DISPLAY", false);
bool inverse = node->getValueBool();
if (node)
inverse = node->getValueBool();
if (!inverse)
{

Loading…
Cancel
Save