dynamic - define language dynamically asp.net -
i have case have language defined admin. know how language supported web sites such http://www.codeproject.com/articles/163215/dynamic-definition-of-the-list-of-available-langua
thread.currentthread.currentculture = cultureinfo.createspecificculture(language); thread.currentthread.currentuiculture = new cultureinfo(language); }
but consumer wants define language doesnt need me change source code everytime wants add new language. have been searching reached nothing. give me idea how that?
you can build own resourceexpressionbuilder stores key/value/language information in database table. can provide interface in administration add languages , update values based on database table. expression builder allow use same syntax localization built in resource files. not fast , easy solution though. takes time implement this.
alternatively can teach customer create resource files , deploy them on server. should not require compilation.
here example on how override resource manager. can create own expression http://msdn.microsoft.com/en-us/library/aa905797.aspx http://msdn.microsoft.com/en-us/library/system.web.compilation.resourceexpressionbuilder.aspx
Comments
Post a Comment