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 doesnt work for some reason in some ascx fileLocalization doesnt work for some reason in some ascx file
Previous
 
Next
New Post
5/13/2008 12:01 AM
 

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 3:46 AM
 

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


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/13/2008 8:51 AM
 

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
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localization doesnt work for some reason in some ascx fileLocalization doesnt work for some reason in some ascx file


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