SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XML Import

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
direct



Joined: 22 Feb 2010
Posts: 4

PostPosted: Mon Mar 28, 2011 10:57 am    Post subject: XML Import Reply with quote

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:

Code:

<?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">&amp;Abbrechen</Language>
        </String>
        <String ID="btnLogin">
          <Language Name="de-DE">&amp;Loginbla</Language>
          <Language Name="es-ES">Conectarbla</Language>
        </String>
      </Section>
    </Form>
  </FORMS>
</XML>



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]
Back to top
View user's profile Send private message
direct



Joined: 22 Feb 2010
Posts: 4

PostPosted: Mon Mar 28, 2011 1:40 pm    Post subject: Reply with quote

Hi,
the problem has changed a bit...
I came across the Merge-function and tried to merge those files together.
Now I need a specification, how the XML-File should look like in order to import it in the right way.

I tried the following:

Code:

<?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="btnLogin">
          <Language Name="es-ES">Conectarbla</Language>
          <Language Name="en-GB">ConnectBlae</Language>
        </String>
      </Section>
    </Form>
    <Form Name="TPEP">
      <Section Name="Captions">
        <String ID="Close1">
          <Language Name="es-ES">Cerrar Übla</Language>
        </String>
        <String ID="Hilfe1">
          <Language Name="en-GB">Help me</Language>
        </String>
        <String ID="PEP1xdrucken1">
          <Language Name="en-GB">Print Onetime</Language>
        </String>
      </Section>
      <Section Name="Multilines">
      </Section>
      <Section Name="Strings">
      </Section>
    </Form>
  </FORMS>
</XML>


but this fills the "help me" and the "print Onetime" into Spanish language?!?

Please tell me, how the XML should be formatted in Order to refill the tables in the right way.

Thanks, Regards,
Holger Prokoph[/code]
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Tue Mar 29, 2011 2:01 pm    Post subject: Reply with quote

Hello,

Please see our reply by email.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group