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...Custom LocalizationProviderCustom LocalizationProvider
Previous
 
Next
New Post
6/24/2012 5:48 AM
 
If I create a new ILocalizationProvider, how do I get DNN to use it? I don't see anything in the web.config for it, unlike many of the other providers.I am moving to 6.2 from 5.6 and need to migrate the custom approach I have used to check resources in a database first before looking in the .resx files. This works fine and was a couple of lines of code to Localize.vb, which, of course, meant a custom dotnetnuke.dll.I see in 6.2 the code I amended is now in a LocalizationProvider. I could simply redo the code change or maybe I could create a new ILocalizationProvider and avoid changing core DNN?
 
New Post
6/25/2012 5:53 PM
 
at present there isnt a way without editing core code AFAIK as the provider definition is not loaded from a configuration file. One alternative is to use an ExpressionBuilder then you need to use your own expression syntax to trigger when it's used (there is already a core example for the dnnLoc alternative localization syntax)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/26/2012 8:45 AM
 
Thanks. I was trying to avoid modifying core (again!).

I must admit, I thought the whole point of providers was to load them in the config so you can replace them with your own? Ah well. next release maybe?
 
New Post
6/26/2012 9:17 AM
 
please log it as an enhancement request at support.dotnetnuke.com - it was actually the 1st provider created way back in 3.0, im not sure why it's configuration was not publically exposed (though we created it prior to .net 2.0 being public released so it was probably to protect against breaking changes)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/26/2012 2:11 PM
 
You might be better off modifying the core to load the localization provider from web.config and then use your own provider. Then submit the code to DNN corp for inclusion. Faster than entering it as an enhancement and more likely it will get added to the core.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Custom LocalizationProviderCustom LocalizationProvider


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