Translating (using resources?)

Nov 7 2003 2:26 PM
Hi, I read a short article here about using and creating resources. Some questions just came to my mind. I'll put my code here in the beginning, and some questions following: namespace MyGame { public class Game { static void Main() { ResourceWriter rw = new ResourceWriter("MyGame.resources"); rw.AddResource("Name", "Miksan"); rw.Generate(); rw.Close(); ResourceManager rm = new ResourceManager("MyGame.MyGame", Assembly.GetExecutingAssembly()); MessageBox.Show(rm.GetString("Name")); } } } Why does the extension has to be .resources? Do I have to use Generate method? Why do I have to use string like this to read the resource "MyGame.MyGame"? Why can't I use there the original filename? What is the executing assembly? How can I know if the fetching of the resource failed? How the heck should I edit these resource files? Do I have to produce every resource file by doing it by hand? Is there any editor for these? I'm using the resources for translating, is this format even the correct one? What is the "assembly file resource" found in the vs.net "add new file" menu (xml and with an editor)? Can it (.resx) be used for translating? How would I read them in my program? etc. Well, I've got too many questions. I'm quite lost with this resource thing. Can you help?