using System;
using System.Resources;
class LanguageResourceWriter {
public static void WriteEnglishResources() {
ResourceWriter rw = new ResourceWriter("Eng.resources");
rw.AddResource("Greeting", "Hello");
rw.AddResource("Program Name", "AAA");
rw.AddResource("Author", "T");
rw.Close();
}
public static void WriteSpanishResources() {
ResourceWriter rw = new ResourceWriter("Span.resources");
rw.AddResource("Greeting", "Hola");
rw.AddResource("Program Name", "BBB");
rw.AddResource("Author", "FFF");
rw.Close();
}
public static void WriteFrenchResources() {
ResourceWriter rw = new ResourceWriter("French.resources");
rw.AddResource("Greeting", "Bonjour");
rw.AddResource("Program Name", "DDD");
rw.AddResource("Author", "EEE");
rw.Close();
}
public static void Main() {
WriteEnglishResources();
WriteSpanishResources();
WriteFrenchResources();
}
}
|