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

Vote:
 

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?

#25012
Oct 09, 2008 13:42
Vote:
 

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

 Jakob

#25066
Oct 10, 2008 16:17
Vote:
 

You could try to change the CurrentCulture-thread.

#25072
Oct 11, 2008 11:53
Vote:
 

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.

 

#25081
Oct 13, 2008 9:02
Vote:
 

More ideas?

Jakob

#25320
Oct 20, 2008 16:00
Vote:
 

Try this one:

LanguageContext.Current.CurrentUILanguage = "EN";

#25326
Oct 20, 2008 17:00
Vote:
 

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

 

#25350
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.