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

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Login and Registration page mixing languagesLogin and Registration page mixing languages
Previous
 
Next
New Post
9/15/2015 12:14 AM
 
Sorry I forgot to mention that if I de-activate Italian and access the pages directly from the browser, the HOME part of the breadcrumb is correctly retrived (the italian one if I include it-it in the ur and the english one if I include en-us)

Cheers
Gaspare
 
New Post
9/15/2015 3:29 AM
 
the problem is caused by Site Settings not providing the proper pages to select from per language, i.e. when being in Italian, you should be able to assign an Italian page and in English an English page for Home, Registration etc.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/15/2015 3:55 AM
 
That is right... in fact Site Settings in Italian I can see and assign the localized version of the page and in Site Settings in English I see the english version. So the registration page in the Italian Site Settings is "Registrazione" and in the English Site Settings is "Register".

At run time the page is correctly served, except for example in the breadcrumb where the home of the current localized version of the website is wrongly calculated (while the current page url is instead the correct one).

I'll try to set up a debbugable version of DNN so that I should be able to trace what is going on with the multi Language engine...

I'll be back with an update as soon as I find out what is causing this behaviour.

Gaspare
 
New Post
9/15/2015 5:04 AM
 
please be aware that Register and Login control exist and are translated according to the current language, DESPITE the language associated with the page. A few page titles might get translated using static localization like Register and Login, this might end up in confusing observations.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/22/2015 7:11 AM
 
Hi again Leupold,
a litte update on this matter with my findings.

The language skin object appers to be the bad guy for messing up languages in the very same page (even if this wrecking behaviour is erratic and usually happens after a while).
What happens is then when the skin objects generates text and links to be rendered on the page it calls the following method at line 282 of /admin/skins/language.ascx.cs:

strReturnValue = LocalTokenReplace.ReplaceEnvironmentTokens(strReturnValue);

When the methods returns, the PortalSettings.PortalAlias is set to the PortalAliasInfo of the CultureCode for which the text/link is being generated by the skin object.

So, just to be clear, I have 2 languages: English and Italian.
I run the website that starts in Italian.
When the language object is rendered, the PortalSettings.PortalAlias is referring correctly to the Italian info.
Then the above method is called for Italian (no change in PortalAlias) and English (PortalAlias is reset to the English information) while all the other values in PortalSettings such as CultureCode, HomeTabId, RegisterTabId, etc. are correctly loaded.

The result is that the other skin objects in the page (i.e. the breadcrumb) is confused when generating the ROOT link because the PortalAlias is the wrong one.

If I modify the above line with:

PortalAliasInfo pai = PortalSettings.PortalAlias;
strReturnValue = LocalTokenReplace.ReplaceEnvironmentTokens(strReturnValue);
PortalSettings.PortalAlias = pai;

everything works like a charm.

Of course this is not a solution, but just a mean to understand what is going wrong. Next step is to understand why the call to ReplaceEnvironmentTokens(strReturnValue) should change the PortalSettings.PortalAlias value.

If you have any hint to shortend the investigation, it will be most welcome.

Thank you
Gaspare

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Login and Registration page mixing languagesLogin and Registration page mixing languages


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