Connecting Tech Pros Worldwide Forums | Help | Site Map

Internationalize the MessageBox in Compact Framework

Member
 
Join Date: Oct 2008
Posts: 50
#1: Oct 7 '08
Hello,

I have a question regarding internationalization. We are working on an application that is going to be used in different countries. Already we have internationalized every string that can be internationalized (text on buttons, labels etc). The problem is MessageBoxes also need to be internationalized. For instance Yes and No. I know this depends on the regional settings in your OS. But I need this to be set on user level and not OS level.

I wanted to set the CultureInfo when the user selects another language at the start, like the following line.:

Thread.CurrentThread.CurrentCulture = New CultureInfo("fr-FR", False)

The problem is that this is not possible with CF. How can I internationalize the buttons of the MessageBox? Do I need to create a new kind of MessageBox?


Kind regards,
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#2: Oct 7 '08

re: Internationalize the MessageBox in Compact Framework


Hi,

Personally I would probably override the existing messagebox class if you can and then try and update the enumerator for the buttons... that might be an option

Mark
Member
 
Join Date: Oct 2008
Posts: 50
#3: Oct 7 '08

re: Internationalize the MessageBox in Compact Framework


I created my own MessageBox variant which seems to work fine :)
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#4: Oct 7 '08

re: Internationalize the MessageBox in Compact Framework


Quote:

Originally Posted by SvenV

I created my own MessageBox variant which seems to work fine :)

Feel free to post any code you think might be helpful to anyone in the same situation in the future.

Reap what you sow and all that....

Mark
Reply