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...change language doesnchange language doesn't work after update from 5.6 to 6.0
Previous
 
Next
New Post
8/16/2011 5:38 AM
 
Hi,

I've updated a DNN 5.6 to 6.0 and now when I try to change the language, the url won't be generated correctly:
instead of: blabla.com/de-at/home.aspx
will be changed in blabla.com/dotnetnuke.services.localization.locale/home.aspx


in DotNetNuke.UI.Skins.Controls.LanguageTokenReplace the following method is executed:

01.private string newUrl(string newLanguage)
02.        {
03.            var objSecurity = new PortalSecurity();
04.            Locale newLocale = LocaleController.Instance.GetLocale(newLanguage);
05. 
06.            //Ensure that the current ActiveTab is the culture of the new language
07.            int tabId = objPortal.ActiveTab.TabID;
08.            bool islocalized = false;
09. 
10.            TabInfo localizedTab = new TabController().GetTabByCulture(tabId, objPortal.PortalId, newLocale);
11.            if (localizedTab != null)
12.            {
13.                islocalized = true;
14.                tabId = localizedTab.TabID;
15.            }
16. 
17.            return
18.                objSecurity.InputFilter(
19.                    Globals.NavigateURL(tabId, objPortal.ActiveTab.IsSuperTab, objPortal, HttpContext.Current.Request.QueryString["ctl"], newLanguage, getQSParams(newLocale.ToString(), islocalized)),
20.                    PortalSecurity.FilterFlag.NoScripting);
21.        }

at line 19: newLocale.ToString() is executed and it returns: dotnetnuke.services.localization.locale instead of "de-AT". 

i've took a look in DotNetNuke.Services.Localization.Locale and the "toString" method is not overriden -> so it is impossible to work...

Does anyone know what is wrong? (I could repair it but I want to know why it doesn't work - because I did a fresh dnn 6 install and everything works perfect..)

many thanks,

Victor
 
New Post
8/16/2011 6:55 AM
 
I think you are a victim of this error
http://support.dotnetnuke.com/issue/V...

Jan
 
New Post
8/16/2011 7:02 AM
 
please go to module settings of Languages module in Admin menu, and toggle "include locale in URL" setting

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/16/2011 7:16 AM
 
Ohh man! There is a setting for this hide in settings for the module....
 
New Post
8/16/2011 8:24 AM
 
Sebastian Leupold wrote:
please go to module settings of Languages module in Admin menu, and toggle "include locale in URL" setting

 thanks for the answer.
 it is working when I set the setting but it is not what i want :). language should not be in the url ...
 i've just saw that the CurrentCulture and CurrentUICulture is also not set properly when the language is changed..

best regards,
Victor

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...change language doesnchange language doesn't work after update from 5.6 to 6.0


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