Jump to content

[SOLVED] WidgetLabel with a child element, not being translated.


photo

Recommended Posts

Hi,

 

I'm afraid only way for now is to escape XML-tags and add this full string to the dictionary:

<?xml version="1.0" encoding="utf-8"?>
<dictionary version="1.00">
	<msg>
		<src>IDS_STRING</src>
		<tr>String is demo</tr>
	</msg>
	<msg>
		<src><center>IDS_STRING</center></src>
		<tr><center>String is demo</center></tr>
	</msg>	
	<msg>
		<src><font color="#ff00ff">IDS_STRING</font></src>
		<tr><font color="#ff00ff">String is demo</font></tr>
	</msg>
	<msg>
		<src><font size="10">IDS_STRING</font></src>
		<tr><font size="10">String is demo</font></tr>
	</msg>
</dictionary>

Sorry for the inconvenience.

string_is_demo.png

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

The other options is to use "<![CDATA[]]>" XML tag:

<?xml version="1.0" encoding="utf-8"?>
<dictionary version="1.00">
    <msg>
        <src><![CDATA[<font color="#ff00ff">IDS_STRING</font>]]></src>
        <tr><![CDATA[<font color="#ff00ff">Translation</font>]]></tr>
    </msg>
</dictionary>
Link to comment
×
×
  • Create New...