View previous topic :: View next topic |
Author |
Message |
lsw
Joined: 27 Jan 2012 Posts: 6
|
Posted: Mon May 05, 2014 2:57 pm Post subject: Language order in gxl-File |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed May 07, 2014 1:49 am Post subject: |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon May 12, 2014 7:09 am Post subject: |
|
|
Both of these issues have now been fixed in Version 3.6.3 of Globalizer - just released _________________ Infralution Support |
|
Back to top |
|
|
lsw
Joined: 27 Jan 2012 Posts: 6
|
Posted: Mon May 12, 2014 1:28 pm Post subject: |
|
|
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 |
|
|
|