Localization using resource files

Nultinsinia

New Member
I have a problem with resx based localization.It's an ASP.NET MVC3 project. I have two assemblies: \[code\]Web\[/code\] and \[code\]Resource\[/code\]. \[code\]Web\[/code\] contains all MVC related stuff, and \[code\]Resource\[/code\] contains resx files for localization(I am building site with 3 different languages available like \[code\]file.resx\[/code\], \[code\]file.en-AU.resx\[/code\], \[code\]file.en-US.resx\[/code\]).Now the weird thing is that this is all working really nicely on my local machine using VS2010 and IIS when I add the Resource project reference as a Project, but when I add the reference to the Resource.dll in my bin - it doesn't work.I tried to output \[code\]Thread.CurrentThread.CurrentUICulture\[/code\] in my views, just before outputting localized strings. It gives me selected culture, which is right, but nevertheless strings are rendered as a fallback value, not localized one.Could anyone tell me why it wouldn't work if I add the reference as a dll file in my bin?
 
Back
Top