J
JollyK
Hello friends,
In a large asp.net project, I don't think it is a good idea for having one
common resource file containing all localized strings for the whole
application. I think a better approach would be to have individual resx
files for each form/user control.
My main problem is having difficulties in naming my resource file.
For example, suppose I have a web form called Items.aspx. I want to have a
resource file for it and name it Items.resx, but Visual Studio.net will show
an error during compilation mentioning...
Resources 'Items.aspx.resx' and 'Items.resx' have the same manifest resource
name '<Namespace>.Items.resources'.
The reason for this error is cause Visual Studio.net will always create a
resource file called 'Items.aspx.resx' automatically. Even if I delete this
autogenerated file, Visual Studio.net will re-create it. So what is
happening is that 'Items.aspx.resx' and 'Items.resx' are both clashing.
How do I solve this issue because I would like to also have a resource file
in a french version named Items.fr-ca.resx.
I would also like to hear a discussion on what would be the best approach to
deal with multi-language resource files.
Thanks..
JK
In a large asp.net project, I don't think it is a good idea for having one
common resource file containing all localized strings for the whole
application. I think a better approach would be to have individual resx
files for each form/user control.
My main problem is having difficulties in naming my resource file.
For example, suppose I have a web form called Items.aspx. I want to have a
resource file for it and name it Items.resx, but Visual Studio.net will show
an error during compilation mentioning...
Resources 'Items.aspx.resx' and 'Items.resx' have the same manifest resource
name '<Namespace>.Items.resources'.
The reason for this error is cause Visual Studio.net will always create a
resource file called 'Items.aspx.resx' automatically. Even if I delete this
autogenerated file, Visual Studio.net will re-create it. So what is
happening is that 'Items.aspx.resx' and 'Items.resx' are both clashing.
How do I solve this issue because I would like to also have a resource file
in a french version named Items.fr-ca.resx.
I would also like to hear a discussion on what would be the best approach to
deal with multi-language resource files.
Thanks..
JK