473,795 Members | 2,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do u handle multi-language resource files

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.res x' and 'Items.resx' have the same manifest resource
name '<Namespace>.It ems.resources'.

The reason for this error is cause Visual Studio.net will always create a
resource file called 'Items.aspx.res x' automatically. Even if I delete this
autogenerated file, Visual Studio.net will re-create it. So what is
happening is that 'Items.aspx.res x' 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
Nov 18 '05 #1
4 5037
There are certain things where it is better to give in and do it the way MS
wants you to, which is the pageName.aspx.r esx, even if you have to delete
and then drop your file in with the same name. MS does listen to feedback
and will change things over time, but you are often stuck to begin with.

If you are really stuck on having the file Images.resx, here is an idea to
try. Not sure if it will work, but it is the best shot.

1. Open ProjectName.vbp roj (VB.NET) or ProjectName.csp roj (C#) in notepad
2. Find the name of the resx file (the default name pageName.aspx.r esx) and
change to the name you desire
3. Drop your file in the folder.
4. Open the project

The test will likely come when you add the French language file. I would do
this ASAP to see if this solution will work. If not, you are back to
pageName.aspx.r esx.

If it works, post a followup.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** ***
Think outside the box!
*************** *************** *************** *************** ***
"JollyK" <Jo****@email.c om> wrote in message
news:Oh******** ******@TK2MSFTN GP11.phx.gbl...
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.res x' and 'Items.resx' have the same manifest resource name '<Namespace>.It ems.resources'.

The reason for this error is cause Visual Studio.net will always create a
resource file called 'Items.aspx.res x' automatically. Even if I delete this autogenerated file, Visual Studio.net will re-create it. So what is
happening is that 'Items.aspx.res x' 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

Nov 18 '05 #2
There are certain things where it is better to give in and do it the way MS
wants you to, which is the pageName.aspx.r esx, even if you have to delete
and then drop your file in with the same name. MS does listen to feedback
and will change things over time, but you are often stuck to begin with.

If you are really stuck on having the file Images.resx, here is an idea to
try. Not sure if it will work, but it is the best shot.

1. Open ProjectName.vbp roj (VB.NET) or ProjectName.csp roj (C#) in notepad
2. Find the name of the resx file (the default name pageName.aspx.r esx) and
change to the name you desire
3. Drop your file in the folder.
4. Open the project

The test will likely come when you add the French language file. I would do
this ASAP to see if this solution will work. If not, you are back to
pageName.aspx.r esx.

If it works, post a followup.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** ***
Think outside the box!
*************** *************** *************** *************** ***
"JollyK" <Jo****@email.c om> wrote in message
news:Oh******** ******@TK2MSFTN GP11.phx.gbl...
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.res x' and 'Items.resx' have the same manifest resource name '<Namespace>.It ems.resources'.

The reason for this error is cause Visual Studio.net will always create a
resource file called 'Items.aspx.res x' automatically. Even if I delete this autogenerated file, Visual Studio.net will re-create it. So what is
happening is that 'Items.aspx.res x' 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

Nov 18 '05 #3
Hello Greg,
Your solution is very interesting, but it is not working because if I change
the name of the file in the .csproj(C#) file, VS.NET will recreate a brand
new file with aspx.resx extention.

"Cowboy (Gregory A. Beamer) [MVP]" <No************ @comcast.netNoS pamM> wrote
in message news:u8******** ******@TK2MSFTN GP11.phx.gbl...
There are certain things where it is better to give in and do it the way MS wants you to, which is the pageName.aspx.r esx, even if you have to delete
and then drop your file in with the same name. MS does listen to feedback
and will change things over time, but you are often stuck to begin with.

If you are really stuck on having the file Images.resx, here is an idea to
try. Not sure if it will work, but it is the best shot.

1. Open ProjectName.vbp roj (VB.NET) or ProjectName.csp roj (C#) in notepad
2. Find the name of the resx file (the default name pageName.aspx.r esx) and change to the name you desire
3. Drop your file in the folder.
4. Open the project

The test will likely come when you add the French language file. I would do this ASAP to see if this solution will work. If not, you are back to
pageName.aspx.r esx.

If it works, post a followup.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** ***
Think outside the box!
*************** *************** *************** *************** ***
"JollyK" <Jo****@email.c om> wrote in message
news:Oh******** ******@TK2MSFTN GP11.phx.gbl...
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.res x' and 'Items.resx' have the same manifest

resource
name '<Namespace>.It ems.resources'.

The reason for this error is cause Visual Studio.net will always create a resource file called 'Items.aspx.res x' automatically. Even if I delete

this
autogenerated file, Visual Studio.net will re-create it. So what is
happening is that 'Items.aspx.res x' 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


Nov 18 '05 #4
Hello Greg,
Your solution is very interesting, but it is not working because if I change
the name of the file in the .csproj(C#) file, VS.NET will recreate a brand
new file with aspx.resx extention.

"Cowboy (Gregory A. Beamer) [MVP]" <No************ @comcast.netNoS pamM> wrote
in message news:u8******** ******@TK2MSFTN GP11.phx.gbl...
There are certain things where it is better to give in and do it the way MS wants you to, which is the pageName.aspx.r esx, even if you have to delete
and then drop your file in with the same name. MS does listen to feedback
and will change things over time, but you are often stuck to begin with.

If you are really stuck on having the file Images.resx, here is an idea to
try. Not sure if it will work, but it is the best shot.

1. Open ProjectName.vbp roj (VB.NET) or ProjectName.csp roj (C#) in notepad
2. Find the name of the resx file (the default name pageName.aspx.r esx) and change to the name you desire
3. Drop your file in the folder.
4. Open the project

The test will likely come when you add the French language file. I would do this ASAP to see if this solution will work. If not, you are back to
pageName.aspx.r esx.

If it works, post a followup.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** ***
Think outside the box!
*************** *************** *************** *************** ***
"JollyK" <Jo****@email.c om> wrote in message
news:Oh******** ******@TK2MSFTN GP11.phx.gbl...
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.res x' and 'Items.resx' have the same manifest

resource
name '<Namespace>.It ems.resources'.

The reason for this error is cause Visual Studio.net will always create a resource file called 'Items.aspx.res x' automatically. Even if I delete

this
autogenerated file, Visual Studio.net will re-create it. So what is
happening is that 'Items.aspx.res x' 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


Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1949
by: Jinlin | last post by:
I found a interesting problem in C# and couldn't explain it. The code to reproduce it is very simple: 1. Create a windows application in C#. 2. Listen to the activated event on the default form --- Form1.cs 3. Create a method DoUpdate() which will popup two dialog boxes "Dialog box one" and "Dialog box two". 4. Call DoUpdate() in the activated event handling. It will look like the following:
2
7214
by: Simon Niederberger | last post by:
Hi I've written a Windows Service which has - several (0-100) listeners threads which spawn worker threads based on events, timers etc - several (0-300) worker threads which handle data (message based) and terminate after processing I'm wondering what exactly happens when I stop the service. I don't see an ThreadAbortedException, but I'm worried my worker threads might be
6
2874
by: Leandro Berti via DotNetMonster.com | last post by:
Hi All, I wrote a code to do serial communication with an equipament. When i use the code outside of threaded class it seens work properly, but when i put inside a class and execute a thread in the first seconds the communication is ok, later i receive read/write error. I?ve been in MSDN site and there i discover that the read/write error is a INVALID_HANDLE problem. But why??? I just create the serial communication file and use it....
2
1866
by: lucy | last post by:
Hi, I'm working on a multi-threading web application. I'm using Application_Error event to write exception detail to windows event log to help debug. It seems exception happened in the second thread doesn't fire this event. I tried to use trace.write() method. It doesn't seem work either. I'm out of idea. Any help is highly appreciated. Lucy
12
3753
by: Aaron Smith | last post by:
What is the best way to handle data in a multiple user environment? We have forms that will allow users to add edit and delete data from a table on SQL server. The data could be edited on multiple machines at the same time. How do you keep the dataset constantly updated with changes made to the data? I'm playing with just calling the fill method, but it seems pretty unstable at times. Especially when deleting records, they don't seem to...
3
5864
by: Basel | last post by:
Hi All I'm using SetConsoleCtrlHandler to handle Ctrl-C event. But I have a problem using it in multi-threaded applications (it doesn't invoke handler function). What is the correct way to handle Ctrl-C event in a multi-threaded application??
1
2391
by: rapin | last post by:
How do you make javascript’s string functions (like toUpperCase() or substr()) run under SpiderMonkey to handle multi-byte characters. For example: var strTest = "ørnen på"; var strWork = strTest.toUpperCase(); print( strWork ); The result is øRNEN På
4
2600
by: Rui Maciel | last post by:
I want to support Unicode on a pet project of mine (small markup language parser). I've read a bit about Unicode (didn't delved beyond the basics) and I searched for some info on how to support Unicode on C programs. Unfortunately I wasn't able to find articles that could be considered more than loose ends, small blog entries and side remarks, never delving too much into specifics. From what I gathered, the two main methods (based on...
8
2892
by: dmoore | last post by:
Hi folks, I've seen the following issue come up in multiple posts to this mailing list: I have a python program that spawns a child process with popen or popen2 or popen3 or popen2.popen2 etc. the child process is interactive: it asks for input then spits out some output, asks for more input then spits out some output. for example, consider the trivial child program:
4
2705
by: MartinRinehart | last post by:
Thinking about unclosed multi-line quotes. When you open a multi-line quote (type '"""') what does your editor do? Does it color the remainder of your text as a quote, or does it color the line with the open quote as a quote and leave the rest of your code alone? What do you want it to do? This is a tokenizer question in disguise, of course. The simple way to
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.