Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Language order in gxl-File

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support
View previous topic :: View next topic  
Author Message
lsw



Joined: 27 Jan 2012
Posts: 6

PostPosted: Mon May 05, 2014 2:57 pm    Post subject: Language order in gxl-File Reply with quote

We keep our Globalizer files under version control.
Sometimes Globalizer changes the order of all the language elements and thus making the Diff of that particular Commit unreadable.
For example:
Code:

    <Translation>
      <Target>...</Target>
      <Context>Monday</Context>
      <Invariant>Monday</Invariant>
      <de-CH-XXX Status="Translated">1955-Monday</de-CH-XXX>
      <en Status="Translated">Monday</en>
      <fr Status="Translated">Lundi</fr>
      <de Status="Translated">Montag</de>
      <it Status="Translated">Lunedě</it>
      <pt Status="Translated">Segunda</pt>
    </Translation>


Code:

    <Translation>
      <Target>...</Target>
      <Context>Monday</Context>
      <Invariant>Monday</Invariant>
      <de Status="Translated">Montag</de>
      <de-CH-XXX Status="Translated">1955-Monday</de-CH-XXX>
      <en Status="Translated">Monday</en>
      <fr Status="Translated">Lundi</fr>
      <it Status="Translated">Lunedě</it>
      <pt Status="Translated">Segunda</pt>
    </Translation>


Note that the element <de> has changed it position in the File.
We haven't been able to reproduce why it happens. But it seems that some computers tend to prefer one ordering over the other.


Additionally, we have noted that the xml elements under
Code:
Infralution.Globalizer/Workspace/BuildOptions/Cultures
increase in number over time.

Steps:
1. Open a Globalizer file with a text editor and check the number of elements in the above element
2. Open the file with Globalizer
3. Save it
4. Open the file again in the text editor and compare the number of xml elements
==> For every culture there is a new xml element
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed May 07, 2014 1:49 am    Post subject: Reply with quote

I think the first issue is occurring because you are loading the workspace with a different Globalizer language selected. The cultures are sorted by their display name when they are loaded - which I think is causing this issue - so when you save it the order has changed. I will consider whether we can do something so that the saved order is independent of this.

The second issue is definitely a bug (although other than increasing the file size needlessly it doesn't have any other effects). We will fix this in the next minor release soon.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon May 12, 2014 7:09 am    Post subject: Reply with quote

Both of these issues have now been fixed in Version 3.6.3 of Globalizer - just released
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
lsw



Joined: 27 Jan 2012
Posts: 6

PostPosted: Mon May 12, 2014 1:28 pm    Post subject: Reply with quote

Very nice.
Switching the language (with version 3.6.2) didn't work for me. But the new version works perfectly.
Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support 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 phpBB © 2001, 2005 phpBB Group