SaaS CMS has officially launched! Learn more now.

Setting CurrentPage.LanguageID doesn't work after upgrade to 4.62B


Just upgraded a site form 4.51 til 4.62, and in one of the aspx-pages, we set the CurrentPage.LanguageID programmatically, to either "SV" och "EN". For some reason, this doesn't change the page language efter the upgrade. The LanguageID gets set, but the variables we get from the lang-files only comes from the default language.

Any ideas?

Oct 09, 2008 13:42

Any ideas on how to programmatically set the language for a page?


Oct 10, 2008 16:17

You could try to change the CurrentCulture-thread.

Oct 11, 2008 11:53

Thanks for your reply.

I've tried setting it (in Page_Load) but without any change. The Culture gets set, but the variables are still in Swedish.


Oct 13, 2008 9:02

More ideas?


Oct 20, 2008 16:00

Try this one:

LanguageContext.Current.CurrentUILanguage = "EN";

Oct 20, 2008 17:00

Thank you! This solved my problem (LanguageContext.Current.CurrentUILanguageID is the correct property).


Oct 22, 2008 11:03
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.