Language of the Framework

  • Thread starter Thread starter Michel Vanderbeke
  • Start date Start date
M

Michel Vanderbeke

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
 
Michel Vanderbeke said:
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.
 
Michel Vanderbeke said:
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
 
Hello,

Rory Becker said:
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
 
Michel

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

Cor
 
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
 
Cor Ligthert said:
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

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
 
Back
Top