Widget::TranslateString function returning not a correct value when you have a string with a quote.
Description
Description
Details
Details
- Severity
- Major
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
Steps To Reproduce
Use this code on a keyPress for example :
string m_param1 = "Raven's Cove"; string p1 = Widget.TranslateString( "#" + m_param1 ); GetGame().GetMission().OnEvent( ChatMessageEventTypeID, new ChatMessageEventParams( CCDirect, "", "m_param1 : " + m_param1 + " p1 : " + p1, "" ) );
This return this
m_param1 : Raven's Cove p1 : 's Cove
But p1 should be an empty string because there is no translation for "Raven's Cove" existing.