Chinese missing in Dictionary Manager import

This forum designated to discuss the TsiLang Components Suite.
Post Reply
rodney232
Posts: 8
Joined: Mon Mar 27, 2017 10:04 pm

Chinese missing in Dictionary Manager import

Post by rodney232 »

I am trying to import a Delphi *.TMX file containing English, Arabic, Spanish and Simplified Chinese (zh-CN) into the Dictionary Manager. A dialog appears asking to 'Please specify the language names to import'. The languages in the list do not include zh-CN Chinese.
The Chinese language translations are in the TMX file but the Dictionary Manager is not recognizing them.
How can I overcome this problem?

isiticov
Site Admin
Posts: 2207
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Please send us sample TMX file to reproduce this problem. We will check this. Thank you.

rodney232
Posts: 8
Joined: Mon Mar 27, 2017 10:04 pm

Post by rodney232 »

I have figured out what is wrong (see example TMX file below).
The Dictionary Manager is determining what languages are in the file by looking at the FIRST <tu> entry. If there is no 'es-ES' in a <tuv> tag under the first <tu> tag then the Dictionary Manager will only display possible languages to import as Arabic, Chinese and Japanese even though there are Spanish translation/s further on. The Dictionary Manager should scan the whole file for languages, not just the first <tu> tag.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE tmx SYSTEM "http&#58;//www.gala-global.org/oscarStandards/tmx/tmx14.dtd">
<tmx version="1.4">
	<header creationtool="Borland Integrated Translation Environment" creationtoolversion="9.0" segtype="sentence" datatype="plaintext" creationdate="20170503T04&#58;49&#58;30Z" adminlang="en-AU" srclang="en-AU" changedate="20170510T00&#58;57&#58;03Z"/>
	<body>
		<tu>
			<tuv xml&#58;lang="en-AU">
				<seg>Select directory</seg>
			</tuv>
			<tuv xml&#58;lang="ar-SA">
				<seg>اختيار دليل</seg>
			</tuv>
			<tuv xml&#58;lang="zh-CN">
				<seg>选择路径</seg>
			</tuv>
			<tuv xml&#58;lang="ja-JP">
				<seg>ディレクトリを�択</seg>
			</tuv>
		</tu>
		<tu>
			<tuv xml&#58;lang="en-AU">
				<seg>Cancel</seg>
			</tuv>
			<tuv xml&#58;lang="ar-SA">
				<seg>إلغاء</seg>
			</tuv>
			<tuv xml&#58;lang="zh-CN">
				<seg>�消</seg>
			</tuv>
			<tuv xml&#58;lang="es-ES">
				<seg>Cancelar</seg>
			</tuv>
			<tuv xml&#58;lang="ja-JP">
				<seg>キャンセル</seg>
			</tuv>
		</tu>
	</body>
</tmx>

Post Reply