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 of 3rd Party ControlsLocalization of 3rd Party Controls
Previous
 
Next
New Post
10/17/2008 11:34 AM
 

I am trying to integrate DevExpress controls into my Modules. Under normal use in an aspx page in a normal web site they work fine. But when put into a module in DNN the localization fails.

For example they support localization as such:

<dxe:ASPxButton ID="ASPxButton1" runat="server" Text="ASPxButton" meta:resourcekey="btnReturnRS"> </dxe:ASPxButton>

The entry in the resource file is btnReturnRS.Text with the Value Return

For some reasom under DNN the resource cannot be found and is not updated like it does under a normal aspx page. Is this a bug or does the core need to be changed to recognize these 3rd party tags? If it does is there some where I could start?

Walt

 

 
New Post
10/18/2008 7:41 AM
 

I'm facing the same problem. It looks like DNN only supports the 2 resource files in the App_GlobalResources dir and you can't add new ones.

Too bad Devex controls expect the resources in this dir. I think it is a shortcoming of DNN.

You could off course change the core, but i don't do that. You could as an alternative use only 1 local resource for your module and put all translations in there.

 

 
New Post
10/19/2008 7:43 AM
 

this should work: (assuming your modulecontrol's filename is moduleview.ascx)

  • put the control in your ascx file like this (leave out "meta:">: <dxe:ASPxButton ID="ASPxButton1" runat="server" Text="ASPxButton" resourcekey="btnReturnRS"> </dxe:ASPxButton>
  • make sure you created a resx file with the name moduleview.ascx.resx in a folder app_localresourcefiles. This folder should be at the same level as your modulecontrol
  • make sure you've created a key with this name: btnReturnRS.Text
  • view the module in dnn, dnn should localize the text property of the control

if this is not working, the workaround is doing this in code behind:

ASPxButton1.Text = Localization.GetString("btnReturnRS",LocalResourceFile)


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
10/20/2008 1:32 PM
 

I had already done as you had metioned, that's why I reported this problem. The work around is also known but would considerably slow down the page in actual use for all the controls I need to use. Again that's why I'm asking here. Is this a DNN Issue? I have a sample app from dev Express that uses User Controls and it appears to work. It's only under the dnn enviornment that it seems to fail. Has anyone else tried to use Dev Express in there modules or is this a problem with DNN?

 
New Post
10/20/2008 7:23 PM
 

For those that care I have found where the problem lies but not how to fix it. IT appears that devExpress uses the microsoft best practice of using meta:resourcekey= when the resourcekey is not a property of the control as is the case of devExpress controls. This causes dnn to fail when loading the user control (must not understand the meta:). When used outside the DNN enviornment it works fine as a user control and I can provide an example project if anyone is interested. Can this be reported as bug or must it be requested as suggestion for further enhancement?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localization of 3rd Party ControlsLocalization of 3rd Party Controls


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