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...meta:resourcekey / resourcekey checkboxlist stumped.meta:resourcekey / resourcekey checkboxlist stumped.
Previous
 
Next
New Post
4/11/2008 3:48 PM
 

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 8:02 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
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/14/2008 10:03 AM
 

hm.. that is what I was afraid of.

Thank you for the thread that was very helpful!

 
New Post
4/19/2008 3:51 PM
 

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
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...meta:resourcekey / resourcekey checkboxlist stumped.meta:resourcekey / resourcekey checkboxlist stumped.


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