Resx resources or database for globalization resources

I am trying to get culture specific resources to work with asp.net mvc 3 application.

If I have LanguageResources.resx and LanguageResources.en-UK.resx in my App_GlobalResources folder, then I get the error message "The Resources namespace already contains a definition for" LanguageResources "

This is the end of a long series of problems that I experienced trying to get certain resources to work. I must say, I am not impressed with the documentation that Microsoft provides for using this feature.

I am considering using a database table to store strings related to my culture, instead I can just create a dictionary of all the values ​​that will be available to my controller and views.

Has anyone else made such a decision or had any direct knowledge of performance issues related to using a database for culture-specific rows?

Has anyone else given up resources?

+3
source share
1 answer

I must admit, I tried to reproduce your flaw, and I was successful. Visual Studio seems to generate an extra class when you add something.en-UK.resx. It’s strange. It should not allow you to add anything like this in the first place, because there is no such culture.

? LanguageResources.en-GB.resx
LanguageResources.en-GB.resx. .

, , (.. - ).
. ( ). , .

+1

All Articles