XML Import
Posted: Mon Mar 28, 2011 10:57 am
Hi,
we are encountering a problem while importing a XML file into a .sib File.
We try to import only those languages that are filled in the xml.
Example:
What happens, when I Import the XML:
The languages, that are not present, get deleted in the TsiLang Files Editor. The translation of &Abbrechen gets deleted as well.
What we want:
Import the XML so that only the Filled languages get imported.
All other String IDs (like "BtnCancel"), where only the de-DE - Language is filled should not change the File at all. Also the other languages (like it-IT or en-GB) should not get deleted.
Is there a flag in the XML to force such importing?
Regards,
Holger Prokoph
[/code]
we are encountering a problem while importing a XML file into a .sib File.
We try to import only those languages that are filled in the xml.
Example:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<XML>
<HEAD>
<SilEditor_Version>5.2.0.29</SilEditor_Version>
<CreationDate Format="dd/mm/yyyy">25.03.2011</CreationDate>
<CreationTime Format="hh:nn:ss">16:46:08</CreationTime>
<Source_Type>.sib</Source_Type>
<Source_UTF-8>False</Source_UTF-8>
</HEAD>
<FORMS>
<Form Name="TfrmLogin">
<Section Name="Captions">
<String ID="btnCancel">
<Language Name="de-DE">&Abbrechen</Language>
</String>
<String ID="btnLogin">
<Language Name="de-DE">&Loginbla</Language>
<Language Name="es-ES">Conectarbla</Language>
</String>
</Section>
</Form>
</FORMS>
</XML>
The languages, that are not present, get deleted in the TsiLang Files Editor. The translation of &Abbrechen gets deleted as well.
What we want:
Import the XML so that only the Filled languages get imported.
All other String IDs (like "BtnCancel"), where only the de-DE - Language is filled should not change the File at all. Also the other languages (like it-IT or en-GB) should not get deleted.
Is there a flag in the XML to force such importing?
Regards,
Holger Prokoph
[/code]