How to rewrite global resources value programatically?Or how to create a new global resources file for new language dynamically?
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
in fact I want my site admin able to create new language in his adminpanel. is there any simple way? thanks mehran
-
in fact I want my site admin able to create new language in his adminpanel. is there any simple way? thanks mehran
I am not sure but, you can provide an interface where your admin user can provide the resource value and using
ResourceWriter
class you can achieve this.System.Resources.ResourceWriter rw = new System.Resources.ResourceWriter("English.resources");
rw.AddResource("ResourceKey", "Value");
rw.Generate();
rw.Close();WWW, WCF, WWF, WPF, WFC .... WTF