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...Custom Module localization RESX file, label does not show valueCustom Module localization RESX file, label does not show value
Previous
 
Next
New Post
4/12/2014 8:09 AM
 

Created a resx file for custom module.

 Trying to show a key value on label using following

  <asp:Label class="textDesc" id="cphMain_ctl03_Login1_UserNameLabel" for="cphMain_ctl03_Login1_UserName"
ResourceKey="Email.Text"></asp:Label>

Nothing is shown on label.

But following works

<%= Localization.GetString("Email.Text",LocalResourceFile)%>

Above statement always shows value for the default language no matter which language user selects. How can I show correct value to user based on language selected?

 Please help

 Regards

Saurabh

 
New Post
4/17/2014 12:29 PM
 

Hi Saurabh,

What version of DNN did you use?

Did you enable localization for these languages?

Did language code of target *.resx files matched with target language code?

Best Regards,

Sergey Yuryev

 
New Post
4/17/2014 10:16 PM
 
I don't see a runat="server" in the markup you posted for the ASP.Net Label web control. If that is missing in the actual markup that would prevent the lable from participating in DNN's localization.

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/18/2014 7:48 AM
 

Thanks I actually missed runat tag which was causing this issue.

 Regards

Saurabh

 
New Post
4/25/2014 7:18 AM
 

Dear Bill

 Localization still does not work. I always get values from default language and not the one user selected.

Regards

Saurabh

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Custom Module localization RESX file, label does not show valueCustom Module localization RESX file, label does not show value


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out