Merge branch 'translation-settings-improvements' into yubo

merge-requests/7/merge
Nuno 4 years ago
commit c6a798a33d

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

Loading…
Cancel
Save