View previous topic :: View next topic |
Author |
Message |
adi200
Joined: 29 Aug 2008 Posts: 3
|
Posted: Wed Sep 03, 2008 12:34 pm Post subject: Resource file name uniqueness |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Sep 03, 2008 10:44 pm Post subject: |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Oct 31, 2008 2:22 am Post subject: |
|
|
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 |
|
|
|