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...Localization of user controls inside a user controlLocalization of user controls inside a user control
Previous
 
Next
New Post
9/12/2018 8:07 AM
 

Hi (sorry repeating previous post because it had several lines deleted)

I have the same problem and have read through this thread and tried everything to no avail. I am using DNN 8.0.4 which has been upgraded from V6.1.3 via the preferred upgrade route..

My skin user control pulls in localisation text fine. This skin control displays two common child user controls which are used in several skin files. I am trying to add localisation to one of these child user controls.

The span placeholder tag is loading into the child control when browsing but the child control is not pulling in the localisation text from its resource file which is located in the App_LocalResources sub-folder.

Stripped down a little my main skin code is:

<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" CodeBehind="Blar.ascx.vb" %>

<%@ Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.DDRMenu.TemplateEngine" Assembly="DotNetNuke.Web.DDRMenu" %>

<%@ Register TagPrefix="dnn" TagName="MENU" src="~/DesktopModules/DDRMenu/Menu.ascx" %>

<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>

<%@ Register src="~/Portals/0/Skins/MySkin/ctrlContactUs.ascx" tagname="ctrlContactUs" tagprefix="cu1" %>

 

Child Control:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctrlContactUs.ascx.vb" Inherits="Portals_0_Skins_MySkin_ctrlContactUs" %>

<%@ Register TagPrefix="uc" TagName="CONTACTUS" Src="~/Admin/Skins/Text.ascx" %>

     "<div class="intro"><uc:CONTACTUS runat="server" id="dnnContactIntro" Text="Contact details:" ResourceKey="Intro" /></div>"

    "<div class="phone"><uc:CONTACTUS runat="server" id="dnnContactPhone" Text=" " ResourceKey="Phone" /></div>"


Child Resource in  sub-folder App_LocalResources/ctrlContactUs.ascx.resx:

"<?xml version="1.0" encoding="utf-8"?>"

"<root>"

 " <data name="Intro.Text" xml:space="preserve">"

    "<value>Our experienced team are here to help. Contact us to discuss your application.</value>"

  "</data>"

  "<data name="Phone.Text" xml:space="preserve">"

   " <value>+44 (0)1249 715698</value>"

"</root>"

The site is switching languages fine and showing the language/culture in the urls. I do not have any specific site aliases set for each language but it is working absolutely fine.

Any help with the above would be most appreciated as I've spent a day trying everything I can think of to get these child user controls pulling in their resource information.

Many thanks in advance.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localization of user controls inside a user controlLocalization of user controls inside a user control


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