View previous topic :: View next topic |
Author |
Message |
sheitman
Joined: 27 Apr 2010 Posts: 98
|
Posted: Mon Sep 20, 2010 1:52 pm Post subject: delete&rebuild non-invariant resx files issue |
|
|
Hi
I use the build option "Delete and rebuild non-invariant Resx files" and I noticed that Globalizer adds some entries wich should not be there.
In this case its the traylocation for a tooltip component and $this.Localizable.
I also noticed that images are copied wic hare not in my globalizer project but in the invariant file.
I have to mention that my hole globalizer project includes only strings. Originally I imported them with a filter to string only.
Is it true that Globalizer adds some values secretly? If yes, why? And how can I change this?
Regards,
Sven
Last edited by sheitman on Tue Sep 21, 2010 7:41 am; edited 1 time in total |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Sep 20, 2010 10:59 pm Post subject: |
|
|
Can you email your invariant resx and culture specific resx generated by Globalizer.NET to support@infralution.com and we will take a look. _________________ Infralution Support |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Sep 21, 2010 7:59 am Post subject: |
|
|
The extra entries (like TrayLocation) in your resx are metadata - that means it is only used at design time. These entries are not compiled into your embedded resx files. To create the culture specific resx files Globalizer.NET copies the invariant file then strips out all of the data elements. It currently isn't stripping out the metadata elements which it probably should - although because these are not included in the compiled resources it is not really important. We will fix this in the next release. _________________ Infralution Support |
|
Back to top |
|
|
sheitman
Joined: 27 Apr 2010 Posts: 98
|
Posted: Tue Sep 21, 2010 8:36 am Post subject: |
|
|
Infralution wrote: | The extra entries (like TrayLocation) in your resx are metadata - that means it is only used at design time. These entries are not compiled into your embedded resx files. To create the culture specific resx files Globalizer.NET copies the invariant file then strips out all of the data elements. It currently isn't stripping out the metadata elements which it probably should - although because these are not included in the compiled resources it is not really important. We will fix this in the next release. |
Ok, thanks for the info.
My other problem was that after rebuild some files include images but my globalizer project contains only strings.
I noticed that the problematic resx file was not overwritten because there where no changes. However in this case it would be important to rewrite it because the existing resx file contains images and location information wich I want to strip of. Is there some way to force a rebuild no matter if there are changes? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Sep 21, 2010 10:46 am Post subject: |
|
|
We think we may have located a bug in this area. When there are no translations defined for a resx in a specific culture the resx file is still being created and has all the invariant resources in it. Is the symptom you are seeing. _________________ Infralution Support |
|
Back to top |
|
|
sheitman
Joined: 27 Apr 2010 Posts: 98
|
Posted: Tue Sep 21, 2010 10:57 am Post subject: |
|
|
Ok.
By the way this is the output text
Quote: | Building ..., Czech
No changes to ....cs.resx skipping writing |
If its right that you do not write a resx file if there are no changes so please change this also. Because the file could have changed by someone else (maybe via designer) and could contain unwanted data. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Sep 21, 2010 11:33 pm Post subject: |
|
|
If you select the "Delete and rebuild non-invariant Resx files" the resx file should be deleted in any case. _________________ Infralution Support |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Sep 22, 2010 4:30 am Post subject: |
|
|
Version 2.3.6 of Globalizer.NET has now been released. It includes a fix for the metadata issue (metadata elements are no longer copied to the culture specific resx files) and also fixes a bug when building resx files when there are no translations defined for a given culture. Hopefully these changes should resolve your issues. _________________ Infralution Support |
|
Back to top |
|
|
sheitman
Joined: 27 Apr 2010 Posts: 98
|
Posted: Wed Sep 22, 2010 10:01 am Post subject: |
|
|
Hi there. Tanks for the update. After some quick verifications it seems my issues are solved. |
|
Back to top |
|
|
|