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 

Resource file name uniqueness

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



Joined: 29 Aug 2008
Posts: 3

PostPosted: Wed Sep 03, 2008 12:34 pm    Post subject: Resource file name uniqueness Reply with quote

Hi,

I think that I've found a bug.
In our project we have two resource files with the same name, but different namespaces.

Thie file/directory structure looks like:

Code:

+project
  +folder1
      Msg.resx
   +folder2
      Msg.resx


During the scan only the first resource is taken (from the folder1). The second resource is omitted.

It appears that the resource file name must be unique (although it shouldn't be, because the namespaces and file locations are different in each case).

At first it doesn't look like a big limitation - there is usually only one messages file per project, but what happens if there are two forms with the same name and different namespaces (not so rare):

Code:

+formlibrary
   +namespace1
     Form1
   +namespace2
     Form1


--
adi
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Sep 03, 2008 10:44 pm    Post subject: Reply with quote

The current version of Globalizer.NET does require resx files to be unique within a project. In our experience it is fairly unusual to have non-unique resx filenames within a single project. You can work around the issue by changing the name of the file (in the solution window) to make it unique - then refactoring the class name back to the original name. This should then scan into Globalizer.NET - but you will have to adjust the resource name (in the propertys tab).

We will look at a change in the next release of Globalizer.NET to allow for multiple resx files with the same name in the same project.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Oct 31, 2008 2:22 am    Post subject: Reply with quote

Version 1.7.0 of Globalizer.NET (just released) addresses this issue and allows you to scan resource files with the same name but in different directories. You will still need to fix the ResourceName so that it matches the namespace of the associated form or control.
_________________
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