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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ProfileEditorControl and localizationProfileEditorControl and localization
Previous
 
Next
New Post
3/18/2008 4:24 PM
 

I'm using the ProfileEditorControl in my own module to display a specific list of user profile properties.  It's working great except I'm not getting the localized text.  This means that the actual property name and not the entered more friendly name is displayed.  Since I can't change the actual property name there is no way for me to see "First Name:" instead of "FirstName".

I've tried the following:

1) Setting the LocalResourceFile property of my ProfileEditorControl to point to DotNetNuke.Common.ApplicationPath & "/Admin/Users/App_LocalResources/Profile" which is where it points to when used on the DNN Profile.ascx control.

2) Setting the LocalResourceFile property of my ProfileEditorControl to point to Me.LocalResourceFile and copying Profile.ascx.Portal-0.resx to my module's App_LocalResource folder.

3) Leaving he LocalResourceFile property of my ProfileEditorControl blank and copying Profile.ascx.Portal-0.resx to my module's App_LocalResource folder.

I've also tried #2 and #3 with Profile.ascx.Portal-0.resx renamed to match my module's control ASCX file with and without the Portal-0.

Nothing I've tried has worked and my attempts to look at / step through the code has not helped a whole lot.  I thought I understood how localization in ASP.NET and DNN worked but this one has got me stumpted.  Does anybody have any other suggestions for me?

 

 
New Post
3/19/2008 1:48 PM
 

Ok, I solved my own problem.  It seems that the ResourceKey that is being sent to the label is being built in part with the ID of the ProfileEditorControl.  Therefore I needed to make the name of my ProfileEditorControl the same as what is on DNN's Profile.ascx page.  I also then needed to set the LocalResourceFile to "~/Admin/Users/App_LocalResources/Profile.ascx".

All is good now.

 
New Post
3/15/2013 5:44 PM
 

David! Thank you - man... this was confusing me forever. 

By the way... what? Is it just me or is that a terrible way to do this? I would like to place a few different editors on a single page and I can't do it now because of this...

Anyway - thank you.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ProfileEditorControl and localizationProfileEditorControl and localization


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