I wonder if it is possible to make your application multilingual by simply creating resource files for every required language
Like
Resource.resx for English //string abc(name)=xyz(value)
Resource.zh.resx for Chinese //string abc(name)=zh(value)
And simply placing a string in your view(single view only that support multilingual) string like
@appName.Resource.abc
and
<globalization culture="en-GB" uiCulture="auto:en-GB" />
in Web.Config
Now my question is
Is this enough to get started with multilingual sites i.e if I change the preferred language in my browser to Chinese the content of page is changing? But how does this work?
What I know is
- Browser returns preferred culture list
Need to know - How mapping to particular resource file take place. I mean both resource files (Resource.resx and Resource.zh.resx) in my example have an 'abc' property with different value. How does asp.net figure out which value to render? Is there any naming convention?