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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksDNN newbie needs your expert advice on localization of contained controlDNN newbie needs your expert advice on localization of contained control
Previous
 
Next
New Post
2/2/2007 6:19 PM
 
I came across this issue. Hope somebody can help me out.

The module I'm building have serveral controls, and main view control contains all other controls. While localization of main view control works fine, localization of contained controls doesn't work. Strange thing is that when any of these contained controls is used as main view control, localization works. Any idea how to fix this?

Thank you so much

Frank
 
New Post
3/29/2007 8:41 AM
 
Still haven't solved the issue, any help from core team?

thanks a lot.
 
New Post
3/29/2007 9:53 AM
 
Hi Frank,

Chances are the LocalResourceFile that the contained control is using isn't the one you expect. IIRC, the localization files for contained controls need to be in the parent control's App_LocalResources subdirectory with a name that reflects the ID of the contained control.

It's been awhile and my memory is a little hazy, so I reccommend taking a look at the contained control's localresourcefile variable and making sure your resources are located at this spot. You can also explicitly set this path when instantiating the control: <mynamespace:mycontrol id="foo" runat="server" localresourcefile="..." />

Hope this helps!

B

Brandon Haynes
BrandonHaynes.org
 
New Post
3/31/2007 2:36 PM
 

Please take a look at this document Module Localization Guide.

All items related to localization issues in module development can be found here. I suppose your issue is related to the fact that your control does not inherint from PortalModuleBase or UserControlBase. Or maybe you dinamically load the controls. If this is the case you have to manually setup the LocalResourceFile in your control code:

   LocalResourceFile = DotNetNuke.Services.Localization.Localization.GetResourceFile(this, "controlfilename.ascx");


Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
3/31/2007 7:32 PM
 

Thanks so much, guys. Will try it out.

Frank

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksDNN newbie needs your expert advice on localization of contained controlDNN newbie needs your expert advice on localization of contained 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