Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Language Packs ...  DNN newbie needs your expert advice on localization of contained control
Previous Previous
 
Next Next
New Post 2/2/2007 2:19 PM
User is offline Frank Wang
21 posts
10th Ranked


DNN newbie needs your expert advice on localization of contained control 
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 5:41 AM
User is offline Frank Wang
21 posts
10th Ranked


Re: DNN newbie needs your expert advice on localization of contained control 
Still haven't solved the issue, any help from core team?

thanks a lot.
 
New Post 3/29/2007 6:53 AM
User is offline Brandon Haynes
542 posts
everysport.net
8th Ranked


Re: DNN newbie needs your expert advice on localization of contained control 
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 11:36 AM
User is offline Vicenç Masanas
1389 posts
www.disgrafic.com
6th Ranked








Re: DNN newbie needs your expert advice on localization of contained control 

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");


Disgrafic.com
 
New Post 3/31/2007 4:32 PM
User is offline Frank Wang
21 posts
10th Ranked


Re: DNN newbie needs your expert advice on localization of contained control 

Thanks so much, guys. Will try it out.

Frank

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Language Packs ...  DNN newbie needs your expert advice on localization of contained control
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com
PartnerPoint - Microsoft Technology Community
PartnerPoint is one of the largest online communities of Microsoft Partners Worldwide. With over 5,000 active members, it serves as a collaboration platform for other technology communties around the globe
www.partnerpoint.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP