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?
Chinese missing in Dictionary Manager import
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.
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://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:49:30Z" adminlang="en-AU" srclang="en-AU" changedate="20170510T00:57:03Z"/>
<body>
<tu>
<tuv xml:lang="en-AU">
<seg>Select directory</seg>
</tuv>
<tuv xml:lang="ar-SA">
<seg>اختيار دليل</seg>
</tuv>
<tuv xml:lang="zh-CN">
<seg>选择路径</seg>
</tuv>
<tuv xml:lang="ja-JP">
<seg>ディレクトリを�択</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="en-AU">
<seg>Cancel</seg>
</tuv>
<tuv xml:lang="ar-SA">
<seg>إلغاء</seg>
</tuv>
<tuv xml:lang="zh-CN">
<seg>�消</seg>
</tuv>
<tuv xml:lang="es-ES">
<seg>Cancelar</seg>
</tuv>
<tuv xml:lang="ja-JP">
<seg>ã‚ャンセル</seg>
</tuv>
</tu>
</body>
</tmx>