Yes, this is known bug #95725. Thank you for reporting!
Thanks, Speaking of bugs where can I find the bug list for EPiServer 7?
http://world.episerver.com/Support/Bug-List/ only contains up to EPiServer 6 R2
Sorry to revive this old post, but for those trying to find bug #95725: It seems that this issue was not fixed until Episerver 7.5, as bug number 91856.
I have a web site built in WebForms that are upgraded from EPiServer 6 to EPiServer 7 I quite often use the Translate web control and the Translate methods without specifying any languages to let EPiServer decide which translation to use.
When browing in View mode (outside EPiServer UI) everything seems ok, I can switch language by browsing with different language prefix in the url exactly like everything is supposed to behave.
But when I'm previewing a page in OPE mode, the Translate methods does not seem to follow the same language as I wish to see the content.
I've found out that while in OPE, the CultureInfo.CurrentUICulture seems to be read from the uiCulture attribute on the Globalization section in web.config.
It does not matter which LanguageBranch or MasterLanguage my CurrentPage have, which SiteHost language is set in EPiServerFramework.config or which language i select in the Sites tab on the Navigation Gadget.
I can easily replicate this in Alloy Templates
1: Adding following to /Resources/LanguageFiles/Views.xml:
2: Make sure that Swedish is activated in Admin mode
3: Make sure Swedish is an Available Language for your web site in Language Settings
4: Translate your start page to Swedish and browse to your Swedish translation on http://localhost:17000/sv/
5: Make sure that the watermark/placeholder on the quicksearch text field is "Sök".
6: Browse to english version on http://localhost:17000/ and make sure that the watermark/placeholder is still "Search"
7: Log on to EPiServer UI and preview both the swedish and english version. Both languages have the watermark/placeholder "Search" in the quicksearch field.
8: Go to web.config and change the uiCulture to uiCulture="sv" in the globalization section.
9: Go back to EPiServer UI and preview both the swedish and english version. Both languages have the watermark/placeholder "Sök" in the quicksearch field.