I have implemented localization in my windows forms application using
resource file. A text file is created with <value>=<string> combination for
each langauge and named beased on cuture like Resource.ja-JP.txt. Resgen is
used to create .resource file from this text file.
After setting the currentculture and currentUI culture to the thread,
created resource manager like
ResourceManager rm =
ResourceManager.CreateFileBasedResourceManager("resource", path, null);
After that i am reading the values like
string name =rm.GetString("0288");
My application is quite big and contains lot of localized info, all the data
is stored in seperate files for each language, but even a single file is
around 50k in size.
sometimes after doing so many operations on the application,the localized
info is not getting read from the resource file, not sure whether the file is
getting locked or not.
I just want to know is it the best way, or is there any improvements can be
made here, or is there any issue if i go ahead with the current approach.
If i use satelite assembly i will have to keep them with project manifest
and extra recompilation would be required. thats why i choose this approach,
if any have a good idea please help me thanks.