Answered by:
Changing culture or UI culture doesn't change page contents

Question
-
User-703432812 posted
Hi,
I have a dual-language site (English/Slovakian). I would like to test that the translations on the page are working correctly without having to run the project.
Surely if I set the UI culture or culture setting on the page, it should pull the correct translations out of the appropriate .resx file.
However, even when I set the culture to sk-SK instead of en-GB on the page, I still see the english text in the page in preview mode.
I know this works ok when I run the project (in the code I switch languages on the current thread), but there are certain error messages I want to see translated ok, instead of having to run through all the possible error paths.
Any ideas?
Tuesday, May 8, 2007 11:30 AM
Answers
-
User-503940700 posted
AFAIK changing the document culture properties will not help unless you change the culture of the currently executing thread.
Hope this helps,
Vivek
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, May 15, 2007 2:01 AM
All replies
-
User-503940700 posted
How are you changing the culture? In what method?
Vivek
Tuesday, May 8, 2007 1:17 PM -
User-703432812 posted
I am changing it in the Document properties in the Properties box inside Visual Studio.
Wednesday, May 9, 2007 4:10 AM -
User-503940700 posted
AFAIK changing the document culture properties will not help unless you change the culture of the currently executing thread.
Hope this helps,
Vivek
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, May 15, 2007 2:01 AM -
User-703432812 posted
Ok I kind of gathered that too, I just thought it would be useful if I could see the translated page somehow in design/preview mode.Tuesday, May 15, 2007 5:11 AM