473,387 Members | 1,588 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,387 software developers and data experts.

How to localize contents of a message box?

RD
got a messagebox that pops up saying in english.

If Text1.text = "" then
'The textbox is empty,
msgbox "Enter a value in your name field."

In french I would need "Inscrivez une valeur dans votre champ nom"

How would you do this using the resource files to contain the text?

thanks for any help.
Bob
Nov 21 '05 #1
2 4764
Good information on localization can be found at:

http://samples.gotdotnet.com/quickst...Resources.aspx
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"RD" <no****@nospam.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
got a messagebox that pops up saying in english.

If Text1.text = "" then
'The textbox is empty,
msgbox "Enter a value in your name field."

In french I would need "Inscrivez une valeur dans votre champ nom"

How would you do this using the resource files to contain the text?

thanks for any help.
Bob

Nov 21 '05 #2
RD
Thanks for your help.

I'm trying to apply the info in the artcles to a Winforms app and am having
some difficulty with executing the vbc command to link the default resource
file strings.resources to my application.

My source code is located in c:\mysources
compiled binaries are by default going to "=====>\bin
the language resource files would normally go into "====>\en
and
"====>\fr folders

My application is in a solution
Loginapp in which there is a project called Loginapp the startup form is
frmLogin.vb.

I can't run the vbc command which I thought should be (from the docs)

vbc t:/exe /res:strings.resources Loginapp.vb The cause seems to be simply
because there is no loginapp.vb file that was created during the project's
creation or while developping it. What file should the last parameter in the
vbc command refer to? I tried everything available, nothing seems to work.
:-(

Thanks for any help

Bob
"Mike McIntyre" <mi****@dotnetshowandtell.com> wrote in message
news:eN**************@TK2MSFTNGP10.phx.gbl...
Good information on localization can be found at:

http://samples.gotdotnet.com/quickst...Resources.aspx
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"RD" <no****@nospam.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
got a messagebox that pops up saying in english.

If Text1.text = "" then
'The textbox is empty,
msgbox "Enter a value in your name field."

In french I would need "Inscrivez une valeur dans votre champ nom"

How would you do this using the resource files to contain the text?

thanks for any help.
Bob


Nov 21 '05 #3

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

Similar topics

2
by: Philip | last post by:
Hey newsees, I'm trying to figure out a way to pass a user defined structure to a dll that I write (in vb6) from my app (also vb6) Then have the dll modify it and return the modified copy or...
7
by: Timothy Madden | last post by:
Hy all I have a form for uploading photos on a web page wich I need to translate in French. My problem is I have no ideea how to translate the Browse button of the <input type=file ...> element....
4
by: tonci.tomic | last post by:
For example, I cought System.Data.NoNullAllowedException with message: "Column 'XXX' does not allow nulls" I want to translate that message into croatian: "Kolona 'XXX' ne dozvoljava...
5
by: Jerry | last post by:
Does dot net frame prevoid any support for localizing Enum memebers? For example: enum Alignment { Left, Right } string left = Alignment.Left.ToString(); left is "Left", how to localize it?
0
by: PawelR | last post by:
Hello Group, I have question about component CrystalReportViewer. I use VS.NET 2003 and I need localize this component. How change Message and ToolTip, description etc. to other language? ...
19
by: JezB | last post by:
I have a DIV whose contents varies in size according to data. How can I size the DIV precisely to fit it's contents ?
5
by: WT | last post by:
Hello, Documentation speaks about a country list-box in the project properties, but this list box is missing in VS2005 Pro. Where is the problem ? CS
0
by: Arti | last post by:
Hi, Can somebody tell me how exactly one can localize a web application which makes use of custom control. The facts as i know are - The scope of the set of resources(default) or satellite...
2
by: J-L | last post by:
Hi, I'm searching a real good tutorial on using Gettext and .po files to localize a software on Visual C# 2008. Otherwise, a tool to Easily edit a .resx file ... Thanks for your help ... ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.