Last post Jul 28, 2006 12:06 AM by Gordon-Freeman
Jul 27, 2006 10:27 AM|niravparekh|LINK
I am using Resource files for localization. I am adding differnt resource files for different languages and adding Strings into that and as per language selection, i am retrieving string of respective file.
But I have to add some more languages runtime, so i have to generate resource file and its contents runtime, Can I do it ?
Can someone please provide me sample code to add resource file runtime and adding String Values or Images to that resource file at runtime.
Thanks in advance,
Jul 28, 2006 12:06 AM|Gordon-Freeman|LINK
There is no such api to do that yet~
BUT if you just use string resource file, notice it's xml file, and is text file~
SO if you wanna add a resource file, just try creating a text file with .resx as extension and fill it with desired schema (or just copy from another resource file which has its schema but is with no data)
AND if you wanna add string values, try the Xml way: open the file as
XmlDocument and modify it by use of
HOWEVER, when this comes to image.. emm.. may be complicated [:(]