Jul 20, 2012 at 1:30 AM
Edited Jul 20, 2012 at 1:44 AM
I believe I have figured out how easy the Localization module is but I believe I'm missing something as it relates to supported languages that are not the default.
In my example I added "es-ES" and modified it to (and my MenuItem.cshtml for my theme to include the menutext in a @T() method....) to translate "Home" into "Casa" (yes I realize a nonsensical example...bare with me)....
I was able to quickly see this translated text when I set the default culture in the settings to "es-ES" and go to the page with the menu item...but that isn't my use case.
My use case is that I want @T() text to be translated if and only if the Language in the header of the persons web browser is set to es-ES...otherwise, the default should still be en-US
I found the option in IE9 and removed english and added global spanish (es-ES) I defaulted the website back to en but assumed that it would still translate. given my browser was sending spanish.
That part didn't work.... =(
I'm certainly on an English Windows 7 laptop. I just hope that there is an easy explanation for what I'm doing wrong and hopefully not a fundamental misunderstanding. I would like this to work for users that are truely on
a spanish browser but also would like to ensure I can properly test it prior.
Can anyone please assist on ensuring my understanding is correct and help on how to test?