Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Extend DNN: Localization problemExtend DNN: Localization problem
Previous
 
Next
New Post
4/1/2008 7:08 AM
 

Hi,

  I have recently update 2 DNN portals to 04.08.02, the first in english and the other in french that they are childs of the same root portal.

In each site I have a link to pass through the other one.
If i open the site directly writing url address, it works fine. But when i click the link to open the other site, menù, modules, ecc are loaded in the correct language but Login, Register (and controlling the sourcecode, everything about login and users) are in the wrong language.

I know it's stupid create more portals for more languages when we can use a multilanguage cms, but for storical reasons we must do this in this way. In past i have modify the dnn core because i need to set the language only from portalsettings and never from usersetting. I remember I did this in 1 line of code, changing the control that set the user language as default, after the user's login. Now I do it again, after have  updated DNN, but i have the impression that somethings change in  localization.

I try to use this methode: Localization.SetLanguage(PortalSettings.DefaultLanguage)
(Debugging it seems to be the correct way - PortalSettings.DefaultLanguage is always correct)

I think SetLanguage set the language in cookie or other kind of variable or parameter that was read to select the correct .resx file. It works but with the problem when i change portal.

Can someone help me?

Thanks

Ellis

 
New Post
4/2/2008 4:19 AM
 

Hi,

  I solved the problem changing the language set for the user directly from the localization lib.

I have set to portals.defaultlanguage the userlanguage. In this way i solved 2 problems:

  1. the wrong language for login/register on changing portal for unauthenticated users;
  2. the wrong language for authenticated users (wrong 'cause i want all the site localized on defaultlanguage);

Ellis Fantuzzi

 
New Post
9/27/2008 1:36 AM
 

Hi Ellis - just a quick note to thank you for your posting as it enabled me to save hours. Thanks Vig

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Extend DNN: Localization problemExtend DNN: Localization problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out