admin
-
11/16/2006 9:55:57 AM
Re: Getting translated UI culture strings to show
Hello,
Thank you for your message. Unfortunately, both are bugs in version 2.0a.
You can fix displaying of translated strings by adding the following lines into the app_code\cmspages\portalpage.cs, at the end of the PortalPage_PreInit method:
// Set the culture CurrentUserInfo ui = CMSContext.CurrentUser; if (ui != null) { if ((ui.PreferredCultureCode != null) && (ui.PreferredCultureCode != "")) { System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(ui.PreferredCultureCode); System.Threading.Thread.CurrentThread.CurrentCulture = ci; System.Threading.Thread.CurrentThread.CurrentUICulture = ci; } }
It will ensure that the UI culture is set to the current content culture on all portal pages and the translated strings will be used.
The second bug - saving of strings - will be fixed in version 2.0b next week.
I'm sorry for this inconvenience.
Best Regards,
|