473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

How to get localized project resources in VB.Net 2005

Bob
I had developped a class in Vs2003 Vb.net that would give me localized
project ressources (not form ressources, these were in the individual
forms).
I had two files MyProjectResources.resx and MyProjectResources.fr.resx, they
were in the project folder topgether with all the forms and other files. The
clas that worked fine in Vs2003 no longer works in Vs2003. It gives me a
nothing value whenever I try to get a ressource string from the above
resource files and I know that the values passed to the class and used by it
are correct, it just won't work. I noticed that in My project there is a
file resource.resx and an associated designer. So I figure that if I want to
localize the project in 2005 for french I need to add a file
resource.fr.resx to the My project folder but I seem to be unable to do so.
I guess that if that worked I could the MY.resources and I would be getting
the correctly localized string back to put in message boxes and the like. Am
I right? If so how do I do this in Vs2005?

Thanks for any help

Bob
Jun 3 '06 #1
1 1843
"Bob" <bd*****@sgiims.com> schrieb:
So I figure that if I want to localize the project in 2005 for french
I need to add a file resource.fr.resx to the My project
folder but I seem to be unable to do so. I guess that if that worked I
could the MY.resources and I would be getting the correctly localized
string back to put in message boxes and the like. Am I right? If so how do
I do this in Vs2005?


Yes, this should work. Simply add additional resource files and name them
"resources.fr.resx", and 'My.Resources' will return the string depending on
the thread's current culture.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jun 3 '06 #2

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

Similar topics

4
by: Robert Misiak | last post by:
I've been trying out the .NET Memory Profiler (http://www.scitech.se/memprofiler/) and I found an excessive number of undisposed instances of BinaryReader after opening and then closing various...
2
by: Ajit | last post by:
Is it possible to have a web service name in localized string. Let's say, can I have a web service developed in C# having class name in Japanese? I am trying to build a web service as follows ...
3
by: Mark Findlay | last post by:
When programming reads of the Windows Registry, do the registry keys and values need to be localized for international use? For example, do I need to convert the key name...
3
by: Bob Trabucco | last post by:
Hello all, I have a ASP.NET website written using VS 2003. I am in the process of migrating it up to 2005. There is one problem I just can't seem to solve. In my original VS 2003 project I...
1
by: cold80 | last post by:
I'm trying to understand how VS 2005 and the .NET Framework 2.0 can be used for a localized application. I've read a lot of messages, posts and guides but I can find a straight answer. I would like...
0
by: Joe | last post by:
Hi, what circumstances can lead to the situation (I currently have this situation, but I don't know why...) that the list of Localized Resources outputs (in a VS 2005 setup project, in the File...
4
by: Steve | last post by:
When I create a new project in 2005, and I go to save the project files, vb.net displays a dialog box that repeats the name of the application and has a checkbox if I want to create a new directory...
5
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, I've created a class library assembly containing several string resource files, like: - TableColumns.resx - TableColumns.de.resx - General.resx - General.de.resx
1
by: Radu | last post by:
For stuff like <asp:CustomValidator id="validDate" Text="*" ErrorMessage= "<%$ Resources:Scorecards, String66 %>" Display="Dynamic" OnServerValidate="ServerValidate" runat="server">...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.