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 

Globalizer writes localized resx-Files twice in the project

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



Joined: 09 Oct 2018
Posts: 2

PostPosted: Tue Oct 09, 2018 3:18 pm    Post subject: Globalizer writes localized resx-Files twice in the project Reply with quote

Hello,

I have a Windows-Forms-Project in which some localied resources have the name in lower case and not in camel case like the form name. (I don't know the reason). For example:

TestForm.cs
TestForm.de.resx
TestForm.en.resx
testform.fr.resx
testform.es.resx
TestForm.ru.resx

After globalizer has written the resources it writes for all the forms with a resource in lower case name two entries in the project file. For example

EmbeddedResource Include=testform.de.resx>
DependentUpon>TestForm.cs</DependentUpon>
/EmbeddedResource>
EmbeddedResource Include=TestForm.de.resx>
DependentUpon>TestForm.cs</DependentUpon>
/EmbeddedResource>
EmbeddedResource Include=testform.en.resx>
DependentUpon>TestForm.cs</DependentUpon>
/EmbeddedResource>
EmbeddedResource Include=TestForm.en.resx>
DependentUpon>TestForm.cs</DependentUpon>
/EmbeddedResource>

I removed the '<' sign at the start, because your forum software don't like ist.

Therefore Visuel studio dont't compile the project.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4876

PostPosted: Wed Oct 10, 2018 11:06 am    Post subject: Reply with quote

Is it possible for you to send a sample project which has this problem (zipped) to support@infralution.com for us to have a look at?

Which version of Globalizer are you using?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
UweJan



Joined: 09 Oct 2018
Posts: 2

PostPosted: Wed Oct 10, 2018 1:48 pm    Post subject: Reply with quote

I send a sample project to you. I'm using version 4.0.1.0
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4876

PostPosted: Fri Oct 12, 2018 12:36 am    Post subject: Reply with quote

The problem here is that Globalizer treats entries in the project file as case sensitive and so doesn't recognise the lower case resources as the same as the Camel case. The lower case resources must have been created either manually or by some other tool. The easiest solution would be, to after scanning the resources, simply open your project, select the Show All Files option and then remove the offending lower case resources from the project. When you then build from Globalizer it will create the language resource files - with the correct Camel case.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
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