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...Localization has killed my site DNN 7.4.0Localization has killed my site DNN 7.4.0
Previous
 
Next
New Post
5/13/2015 12:14 AM
 

I have tried to switch on localization on my site. After switching it on, and following the steps to get started at http://dotnetnuke.nl/Portals/16/downloads/documenten/DotNetNuke%20Module%20Localization%20Guide.pdf I now cannot open the page localization for my pages. Instead I get an error:

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Sequence contains more than one matching element ---> System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) at DotNetNuke.Modules.Admin.Languages.CLControl.DnnPages.Page(String locale) in e:\ka72\beta\DesktopModules\Admin\Languages\CLControl.ascx.cs:line 749 at DotNetNuke.Modules.Admin.Languages.CLControl.BindAll(Int32 tabID) in e:\ka72\beta\DesktopModules\Admin\Languages\CLControl.ascx.cs:line 299 at DotNetNuke.Modules.Admin.Tabs.ManageTabs.BindCLControl() at DotNetNuke.Modules.Admin.Tabs.ManageTabs. (EventArgs e) --- End of inner exception stack trace ---

Also, when logged in as administator, every page in my menu is duplicated (The menu is double-long)

I have only two languages, en-US (default) and fr-FR.


 
New Post
5/13/2015 2:54 AM
 
some item seems to be doubled, but it is not clear, which one. I'd check tables languages, portalLanguages and portalLocalization

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/13/2015 7:20 AM
 

I've backed out all the changes. I had to disable French, then in Admin/Languages I had to click the button to remove localization ("Disable Localized Content"?). I still had a bunch of duplicate pages that I had to delete one by one in the Page Management area. (So, if I had a page called "Locations" I also had one called "Locations (fr-FR)")

After that I tried switching on localized content and only localizing one page. When I tried that, a similar problem occurred.

  1. Click "Enable Localized Content"
  2. Then leave the "make all pages translatable" checkbox unchecked and click the next "Enable Localized Content" button.
  3. So far so good. My URL includes en-us. I go to my Locations page.
  4. On the Edit Page menu, pick "Page Localization"
  5. On the popup screen, click "Make Page Translatable"
  6. Localization window shows up, but there is only en_US localization visible in the window. No fr-FR.
  7. Now my menu has a "Locations" page and a new "Locations (en-US)" page that is identical.
  8. Switch my language to French using the little globe icon.
  9. Now on my menu, Locations disappears and I have a new item "Locations (en-US) (fr-FR)"
  10. I go to that page, select Page Localization, and then I get this error:[L]Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: La séquence contient plusieurs éléments correspondants. ---> System.InvalidOperationException: La séquence contient plusieurs éléments correspondants. à System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) à DotNetNuke.Modules.Admin.Languages.CLControl.DnnPages.Page(String locale) dans c:\LocalWebsites\dnnka72\DesktopModules\Admin\Languages\CLControl.ascx.cs:ligne 749 à DotNetNuke.Modules.Admin.Languages.CLControl.BindAll(Int32 tabID) dans c:\LocalWebsites\dnnka72\DesktopModules\Admin\Languages\CLControl.ascx.cs:ligne 299 à DotNetNuke.Modules.Admin.Tabs.ManageTabs.BindCLControl() dans c:\LocalWebsites\dnnka72\DesktopModules\Admin\Tabs\ManageTabs.ascx.cs:ligne 258 à DotNetNuke.Modules.Admin.Tabs.ManageTabs.BindLocalization(Boolean rebind) dans c:\LocalWebsites\dnnka72\DesktopModules\Admin\Tabs\ManageTabs.ascx.cs:ligne 230 à DotNetNuke.Modules.Admin.Tabs.ManageTabs. (EventArgs e) dans c:\LocalWebsites\dnnka72\DesktopModules\Admin\Tabs\ManageTabs.ascx.cs:ligne 1523 --- Fin de la trace de la pile d'exception interne ---

The languages table lists the two languages. en-US has NULL as the FallbackCulture. fr-FR has blank as the FallbackCulture. Other than that it looks ok. The tables PortalLanguages and PortalLocalization buth have two records in them, one for each language.


 
New Post
5/13/2015 11:27 AM
 
are you sure, default language of your portal is set to "en-US"? it sounds to me, like the default is not properly selected.
fr-FR should have en-US as fallback language.
your initial pages should have portal default languages associated (database table" Tabs")

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/13/2015 3:55 PM
 

Here's the data from my Tabs table for the Locations page. Most records have NULL for the CultureCode at present.

TabID TabOrder TabName CultureCode UniqueId DefaultLanguageGuid LocalizedVersionGuid TabPath
91 21 Locations en-US E254738B-CD45-4630-A3CC-A883E2C66EF5 F1D0D848-F6AC-4852-BBC1-C06508FAAA96 21C11CBE-F512-4613-8E3D-245C41B5ED80 //Locations
2101 35 Locations (en-US) en-US F1D0D848-F6AC-4852-BBC1-C06508FAAA96 NULL 8F02A7CC-DC97-464C-907F-E1405652C9C9 //Locations(en-US)
2102 37 Locations (en-US) (fr-FR) fr-FR 1646CA49-045E-4ECB-BDCD-45B10815FB56 F1D0D848-F6AC-4852-BBC1-C06508FAAA96 E406EC10-D659-4C74-A3D1-46C5E5A62042 //Locations(en-US)(fr-FR)

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localization has killed my site DNN 7.4.0Localization has killed my site DNN 7.4.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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out