Luke

Luke

  • NA
  • 13
  • 0

Localization of Resource Files - how to use the resource.designer.cs code

Apr 30 2009 3:15 PM

I'm trying to implement an multi-lingual GUI for a winforms application.

I have all the GUI string in one Resource file which i've already had translated.

 

The way I'd like to implement it is to use the Resource.designer.cs code to call the strings.

This would allow me to use intelisense to find the strings.  Currently my code can do this with the english resource file.  I can call Resources.ErrorApplicationError to get the string.

 

The problem is that since the classes generated in the designer class do no inherit from a common source I can't change the Reources variable to point to any of the other languages. 

I would try to make an interface that implements all the strings, but the Resources class members are implemented as statics so its not allowed.

 

Any ideas?  I feel i must be missing something.

 


Answers (1)