2

I tried searching a lot for internationalization of custom messages but made me more and more confused.

What I need is just one small thing.

Currently when I write following lines,

int i = 5;
int j = 10 / (i - i);

it gives me exception in English. Even by throwing DivideByZero Exception in English like "Attempted Divide By Zero".

I just want this message in some other language i.e hi-IN culture.

I do have Hindi language installed in my OS as well. I tried changing Culture, UICulture everything. None are working.

Does anyone has any idea?

leppie
  • 115,091
  • 17
  • 196
  • 297
Pratik
  • 103
  • 1
  • 2
  • 10
  • 1
    http://stackoverflow.com/questions/209133/c-sharp-exception-messages-in-english – Jannik Dec 15 '14 at 07:13
  • 1
    Have you installed the .NET framework language packs? (localized exception messages are part of the .NET framework language packs) – road242 Dec 15 '14 at 07:59
  • @road242: Is Windows Language pack for Hindi and .Net Language pack for Hindi different? – Pratik Dec 15 '14 at 08:13
  • I think so but I don't know if Hindi is supported, see language packs at: http://www.microsoft.com/en-Us/download/details.aspx?id=40751 – road242 Dec 15 '14 at 08:20
  • @road242: You were right dear. Its working now. – Pratik Dec 15 '14 at 09:03

0 Answers0