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  |  

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


  Ads  
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
 


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
517 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.

 


AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
Swanzey Internet Group LLC
DotNetNuke design, development, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com

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