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  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  Localization doesnt work for some reason in some ascx file
Previous Previous
 
Next Next
New Post 5/12/2008 9:01 PM
User is offline pullp
34 posts
10th Ranked


Localization doesnt work for some reason in some ascx file 

OK..I have created a project for Custom Modules and I set out to Localize it.

 

Here is the structure

ViewSampleModule.ascx

EditSampleModule.ascx

Settings.ascx

SampleCtl.ascx  ..====> Its resx file is SampleCtl.ascx.resx placed under App_LocalResources

 

Now I have following HTML on both SampleCtl.ascx and ViewSampleModule.ascx

            <asp:Button ID="cnclBtn" runat="server" resourcekey="cnclBtn"/>

            <dnn:label id="Label1" runat="server" ControlName="txEnter"></dnn:label>

In SampleCtl.ascx file they showup empty whereas in ViewSampleModule.ascx it works just fine.

 

The entries in both the resx files are same,

  <data name="cnclBtn.Text" xml:space="preserve">
    <value>Cancel</value>
  </data>
  <data name="Label1.Help" xml:space="preserve">
    <value>Enter User Id</value>
  </data>
  <data name="Label1.Text" xml:space="preserve">
    <value>To</value>
  </data>

 

Any suggestions on how to get this working

 
New Post 5/13/2008 12:46 AM
User is offline Sebastian Leupold
14222 posts
www.deutschnetnuke.de
1st Ranked












Re: Localization doesnt work for some reason in some ascx file 

Did you check out the Module Developers Localization Guide, available from Resources > Dócumentation > Downloads page in menu above?


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 5/13/2008 5:51 AM
User is offline pullp
34 posts
10th Ranked


Re: Localization doesnt work for some reason in some ascx file 

 Sebastian Leupold wrote

Did you check out the Module Developers Localization Guide, available from Resources > Dócumentation > Downloads page in menu above?

 

I was able to resolve my issue as below.

I was using "SampleCtl.ascx" inside ViewModule.ascx..and The LocalResourceFIle is having a  value of "ID" for SampleCtl.ascx.cs at runtime, which never existed in the system.

 

So in OnInit() inside SampleCtl.ascx. I am explicitly setting LocalResourceFile to "SampleCtl.ascx.rex"

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  Localization doesnt work for some reason in some ascx file
 


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.

 


telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com
CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult

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