Connecting Tech Pros Worldwide Help | Site Map

How do you implement a multi language GUI using resx files?

Newbie
 
Join Date: Nov 2009
Location: Sherbrooke,Canada
Posts: 1
#1: 2 Weeks Ago
Hi,

I am trying to implement a multi language GUI. I went on several websites and found documentation on resx files. I found it interesting but i must forgot one step.

I declared a resx file by default "Resources.resx" (english) and another for the french language "Resources.fr-CA.resx".

On my application i have a menu that allows the user to choose the language English or French. I am using WPF, and I tried some data binding like that :
  • Title="{x:Static res:Resources.ApplicationMainWindowTitle}"
with ApplicationMainWindowTitle is in the resx file. I also want to do it for buttons, label and others... and at runTime.

How do I implement my click event for language selection to change the language during runtime?

Thanks.
If it's not clear enough, i'll try to explain better.
Reply

Tags
resx, runtime