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 for UserControlLocalization for UserControl
Previous
 
Next
New Post
8/19/2011 3:02 AM
 
Hi,

I need to create one web application mainly have one user control with some css and js with multilingual support.
The reason is, this control can be reusable and can be used in any DNN website as well as normal Asp.Net website. 

The problem is how can i localize this control so it can be work in normal asp.net website as well as in DNN? 

I have tried with asp.net localization thats worked in normal websites but didnt work in DNN as it has its own localization framework.

Thanks
Fenil
 
New Post
8/21/2011 9:38 AM
 
this is not possible im afraid as we use our own localization provider (and disable asp.net's default one) as you've noticed. We do this as we support localized text at a portal level as well as the file level. Please note, DotNetNuke 6 also added support for a slightly different way to use localization, rather than the resource key you can now use <asp:Label ID="Label1" runat="server" Text="<%$ dnnLoc:resxKey %>"></asp:Label>

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/19/2012 9:25 PM
 
Hey, I have exactly the same issue with you. I can't  understand why DNN has that design for multi-lingual. I just turn to ExpressionBuilder. I am tring on it.
 
New Post
6/19/2012 10:02 PM
 
The latest discovery is the name of Thread.Current.Culture and Thread.Current.UICulture are en-US in dnn environment.
If I simply run the code in normal asp.net environment, they are zh-CN.
It seems that the DNN framework hacked the Thread.Current.Culture and UICulture in the httpModule level.
 
New Post
6/19/2012 10:59 PM
 
I just completed the my DicExpressionBuilder that can work in both normal asp.net and DNN.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localization for UserControlLocalization for UserControl


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