Page MenuHomeFeedback Tracker

Widget::TranslateString return not correct value for strings with a quote.
Assigned, UrgentPublic

Description

Widget::TranslateString function returning not a correct value when you have a string with a quote.

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.

Event Timeline

NiiRoZz created this task.Apr 26 2020, 5:56 PM
Geez changed the task status from New to Assigned.Apr 27 2020, 2:20 PM