Hey all,
I am trying to separate my translation text from my application. To do this, I would like to use resources, but as a text file. I saw that you can create a text file that looks like the following:
MyKey=MyText
MyKey2=MyText2
etc.
What I am wondering is, is there a nice way to access this file and get it by the key, like properties files in java?
I tried this, but it doesn't seem to work:
ResourceManager manager1 = ResourceManager .CreateFileBase dResourceManage r("TestResource s.en-US.txt", loc, typeof(string)) ;
Console.WriteLi ne("Reached: {0}", manager1.GetStr ing("MyTestReso urce"));
Thanks in advance.
I am trying to separate my translation text from my application. To do this, I would like to use resources, but as a text file. I saw that you can create a text file that looks like the following:
MyKey=MyText
MyKey2=MyText2
etc.
What I am wondering is, is there a nice way to access this file and get it by the key, like properties files in java?
I tried this, but it doesn't seem to work:
ResourceManager manager1 = ResourceManager .CreateFileBase dResourceManage r("TestResource s.en-US.txt", loc, typeof(string)) ;
Console.WriteLi ne("Reached: {0}", manager1.GetStr ing("MyTestReso urce"));
Thanks in advance.
Comment