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

Language of the Framework

Hello,

Is there a way to determine in which language the Framework is installed on
the PC?
In order to get values from the errorstrings (e.g. the linenumber on which
the error occured), I want to pick data from the errormessages.

Many thanks and greetings,

Michel
Jun 22 '07 #1
7 1308

"Michel Vanderbeke" <mi***************@skynet.bewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
Hello,

Is there a way to determine in which language the Framework is installed
on the PC?
The .Net Framework is common to all .Net languages. There is no need for you
to know this.
In order to get values from the errorstrings (e.g. the linenumber on which
the error occured), I want to pick data from the errormessages.

If you do a Stack Trace on a Exception, it will give you that information in
text. There is also Exception Message.Innertext that will give you detailed
information.

There is no need to know what language the .Net Framework is written in,
because all managed code languages like VB.Net or C#.Net can access the
Exception Messages with methods to expose the properties of the Exception.

Jun 22 '07 #2
"Michel Vanderbeke" <mi***************@skynet.bewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>Is there a way to determine in which language the Framework is
installed on the PC?
The .Net Framework is common to all .Net languages. There is no need
for you to know this.

There is no need to know what language the .Net Framework is written
in, because all managed code languages like VB.Net or C#.Net can
access the Exception Messages with methods to expose the properties of
the Exception.
Unless I misunderstand, I think the OP is referring to language in the sense
of English vs French vs German etc

--
Rory
Jun 22 '07 #3

"Rory Becker" <Ro********@newsgroup.nospamwrote in message
news:b0**************************@msnews.microsoft .com...
>"Michel Vanderbeke" <mi***************@skynet.bewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl. ..
>>Is there a way to determine in which language the Framework is
installed on the PC?
The .Net Framework is common to all .Net languages. There is no need
for you to know this.

There is no need to know what language the .Net Framework is written
in, because all managed code languages like VB.Net or C#.Net can
access the Exception Messages with methods to expose the properties of
the Exception.

Unless I misunderstand, I think the OP is referring to language in the
sense of English vs French vs German etc
You could be right. :)

Jun 22 '07 #4
Hello,

"Rory Becker" <Ro********@newsgroup.nospamschreef in bericht
news:b0**************************@msnews.microsoft .com...
>"Michel Vanderbeke" <mi***************@skynet.bewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl. ..
>>Is there a way to determine in which language the Framework is
installed on the PC?
The .Net Framework is common to all .Net languages. There is no need
for you to know this.

There is no need to know what language the .Net Framework is written
in, because all managed code languages like VB.Net or C#.Net can
access the Exception Messages with methods to expose the properties of
the Exception.

Unless I misunderstand, I think the OP is referring to language in the
sense of English vs French vs German etc
Thank you for your answer. I didn't make myself clear. This is exactly
what I meant.

I received a bit of code from someone, where I can extract the line-numer
where an error occurs from the error-message.
This code didn't work correctly in my program. The reason was that the
error-message was searched for the string ":line".
In my (dutch) framework the string I have to search for is ":regel". In the
English framework, it is ":line".

That is why I want to determine in which language the error messages are
given. I believe that depends on the framework that is used.

Many thanks and greetings,

Michel
Jun 22 '07 #5
Michel

I don't know this is from the framework, however
Threading.Thread.CurrentThread.CurrentUICulture.To String

Cor

"Michel Vanderbeke" <mi***************@skynet.beschreef in bericht
news:%2******************@TK2MSFTNGP02.phx.gbl...
Hello,

Is there a way to determine in which language the Framework is installed
on the PC?
In order to get values from the errorstrings (e.g. the linenumber on which
the error occured), I want to pick data from the errormessages.

Many thanks and greetings,

Michel


Jun 22 '07 #6
Michel,

I have the idea that your approach will fail. Not all messages comes from
the framework.
(I have showed this to the team they told that they would pay attention to
this for americans of course strange problem).

Beside of that I have the idea that in the Benelux a lot of systems have
Dutch setting with an English framework, most of us don't care about that
(the last not for you)

Cor

"Michel Vanderbeke" <mi***************@skynet.beschreef in bericht
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hello,

"Rory Becker" <Ro********@newsgroup.nospamschreef in bericht
news:b0**************************@msnews.microsoft .com...
>>"Michel Vanderbeke" <mi***************@skynet.bewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl.. .
Is there a way to determine in which language the Framework is
installed on the PC?

The .Net Framework is common to all .Net languages. There is no need
for you to know this.

There is no need to know what language the .Net Framework is written
in, because all managed code languages like VB.Net or C#.Net can
access the Exception Messages with methods to expose the properties of
the Exception.

Unless I misunderstand, I think the OP is referring to language in the
sense of English vs French vs German etc

Thank you for your answer. I didn't make myself clear. This is exactly
what I meant.

I received a bit of code from someone, where I can extract the line-numer
where an error occurs from the error-message.
This code didn't work correctly in my program. The reason was that the
error-message was searched for the string ":line".
In my (dutch) framework the string I have to search for is ":regel". In
the English framework, it is ":line".

That is why I want to determine in which language the error messages are
given. I believe that depends on the framework that is used.

Many thanks and greetings,

Michel


Jun 22 '07 #7


"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:#m**************@TK2MSFTNGP06.phx.gbl...
Michel,

I have the idea that your approach will fail. Not all messages comes from
the framework.
(I have showed this to the team they told that they would pay attention to
this for americans of course strange problem).

Beside of that I have the idea that in the Benelux a lot of systems have
Dutch setting with an English framework, most of us don't care about that
(the last not for you)

Cor

"Michel Vanderbeke" <mi***************@skynet.beschreef in bericht
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hello,

"Rory Becker" <Ro********@newsgroup.nospamschreef in bericht
news:b0**************************@msnews.microsof t.com...
>>>"Michel Vanderbeke" <mi***************@skynet.bewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl. ..
Is there a way to determine in which language the Framework is
installed on the PC?
>
The .Net Framework is common to all .Net languages. There is no need
for you to know this.

There is no need to know what language the .Net Framework is written
in, because all managed code languages like VB.Net or C#.Net can
access the Exception Messages with methods to expose the properties of
the Exception.
Unless I misunderstand, I think the OP is referring to language in the
sense of English vs French vs German etc

Thank you for your answer. I didn't make myself clear. This is exactly
what I meant.

I received a bit of code from someone, where I can extract the line-numer
where an error occurs from the error-message.
This code didn't work correctly in my program. The reason was that the
error-message was searched for the string ":line".
In my (dutch) framework the string I have to search for is ":regel". In
the English framework, it is ":line".

That is why I want to determine in which language the error messages are
given. I believe that depends on the framework that is used.

Many thanks and greetings,

Michel


Lets all move to a single verbal (spoken) language. Then this would all be
settled and we wouldn't need multiple languages for our apps. I vote for
the language that primarily uses clicking sounds using the tongue (not sure
what language it is)...hmm, reading binary verbally would be pretty easy at
that point! :)

:P

Mythran
Jun 26 '07 #8

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

Similar topics

6
by: Wiktor Zychla | last post by:
I've downloaded the polish language pack for .Net Framework 1.1 and I've installed it. Now I expect to see any exception messages in my native language but I still get english texts in exception...
22
by: larry | last post by:
I was just looking at a demo training that mindleaders has on .net training: http://www.mindleaders.com/products/democourse3.asp And I don't believe this is correct or at least is misleading...
4
by: Kamen Yotov | last post by:
i have raised this question before, but i can't help it doing it again! why there is no separate newsgroup discussing the c#language, not the .net framework, visual c# etc. i am not that...
3
by: - HAL9000 | last post by:
Hello, Background: I am familiar with VB.NET, vanilla C++, and Pascal but not Csharp. Please confirm/comment: If I want to get a windows application running quickly (and minimize total...
2
by: rjack | last post by:
I'm using VS 2005 Beta 2. In VS 2003, the Page directive in an aspx page has Language and CodeBehind attributes. You can have the language be different than the code behind file language. For...
23
by: walterbyrd | last post by:
Way back when, I got a lot of training and experience in highly structued software development. These days, I dabble with web-development, but I may become more serious. I consider php to be an...
25
by: Dave | last post by:
I want to spend two minutes on my soapbox. I love C#. I am so productive in it it's ridiculous. But it's so easy to write code that uses poor design principles. Example: just making...
8
by: douglass_davis | last post by:
Some things i do not understand about CLR if any one could clear this up i would appreciate it. 1. When I compile a program in VB .NET 2003 and get an executable, does that executable contain...
22
by: ben mitch | last post by:
Hi I hope you'll see this cross-post (c/c++) as appropriate. I also admit immediately that the question *may* turn out to be compiler-/os-specific, in which case I apologize. But I wonder if...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.