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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  meta:resourcekey / resourcekey checkboxlist stumped.
Previous Previous
 
Next Next
New Post 4/11/2008 12:48 PM
Unresolved
User is offline chatters
2 posts
10th Ranked


meta:resourcekey / resourcekey checkboxlist stumped. 

I am stummped on how DNN Is handling the ResourceKey.
I have already implement the resource files throughout a DNN site.

But I cannot get the resourcekey to work with a checkbox list within a custom module.

example code:
<asp:CheckBoxList ID="chklApplicationCat" runat="server" CssClass="sfEntry_CheckBoxList" meta:resourcekey="chklApplicationCatResource1">
        <asp:ListItem  meta:resourcekey="ListItemResource1.Value" ></asp:ListItem>
        <asp:ListItem  meta:resourcekey="ListItemResource2"></asp:ListItem>
        <asp:ListItem  meta:resourcekey="ListItemResource3"></asp:ListItem>
        <asp:ListItem  meta:resourcekey="ListItemResource4"></asp:ListItem>
        <asp:ListItem  meta:resourcekey="ListItemResource5"></asp:ListItem>
    </asp:CheckBoxList>

 

Note: I attempted with resourceky="" instead of meta:resourcekey="" still with no luck.

the resx file is named the same way as the control.
My resx file looks like this

......
<data name="ListItemResource1.Text" xml:space="preserve">
    <value>test</value>
  </data>
  <data name="ListItemResource1.Value" xml:space="preserve">
    <value>test</value>
  </data>
......

I can find the resource file through Host -> Languages -> Language editor and edit it. But it seems the control is not loading the resx file or its values are being ignored..
I've read all the PDF docs as I stated I used resx files in DNN for simple label text and valdation error message replacement. Wondering why I cannot do this in DNN on checkboxes?


Thanks in advance!

 
New Post 4/11/2008 5:02 PM
User is offline William Severance
576 posts
www.wesnetdesigns.com
8th Ranked




Re: meta:resourcekey / resourcekey checkboxlist stumped. 
Modified By William Severance  on 4/11/2008 8:05:32 PM)

The CheckBoxList is not among those that are localized. I recall participating in a thread about this issue a few months back. Finally found it:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/77/threadid/196659/scope/posts/Default.aspx

 Also note (though not the problem with CheckBoxList localization), the attribute to use is 'resourcekey' not 'meta:resourcekey'.


Bill, WESNet Designs
 
New Post 4/14/2008 7:03 AM
User is offline chatters
2 posts
10th Ranked


Re: meta:resourcekey / resourcekey checkboxlist stumped. 

hm.. that is what I was afraid of.

Thank you for the thread that was very helpful!

 
New Post 4/19/2008 12:51 PM
User is offline Brandon Haynes
450 posts
everysport.net
8th Ranked


Re: meta:resourcekey / resourcekey checkboxlist stumped. 

Hi Chatters,

If you're stuck with a lot of already-developed usercontrols, there is also a way to re-enable ASP.NET localization to run side-by-side with DNN's implementation.  Generally, however, this should be a course of last resort.

I only mention it here as an additional option, in case the solutions mentioned in the other thread do not solve your problem.  Let me know if you are interested in going this route.

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  meta:resourcekey / resourcekey checkboxlist stumped.
 


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.

 


DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery
Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com

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