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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Multi-View Module Implementation Options Saga - Part II - LocalizationMulti-View Module Implementation Options Saga - Part II - Localization
Previous
 
Next
New Post
10/27/2009 7:56 PM
 

Hi All,

Trying here to get localization (via resource files) working for custom module view control used with ASP.NET MultiView control. No luck. :(

Is it supposed to work? Am I doing something wrong failing to get it working? (I have checked - when DNN Label control is used outside of ASP.NET MultiView control within the same "host" view control  then localization works OK. So there is a chance I mistyped the filename of the hosted in ASP.NET MultiView control while creating resource file for it. But I have checked it and it seems to be correct...

Is ASP.NET "guilty" in my case mangling control names, and then DNN core can't find proper item from resource file?

In general:

- Is localization supposed to work OK for controls hosted on ASP.NET MultiView or Wizard controls? (Expected answer is "YES" because as Sebastian noted in one the threads here DNN Installation is implemented using ASP.NET Wizard control.) If localization doesn't work by default in this case then I should manually implement for custom controls hosted on Multi-View or Wizard controls?

- Is localization supposed to work OK (by default with proper resource files) for formview, detailview and gridview ASP.NET controls when they used with templates and that latter templates do use DNN label and command button controls etc.?

- Will localization work OK if I will use LiveTabs module? (
http://www.snowcovered.com/Snowcovered2/Default.aspx?tabid=242&PackageID=15552)

Please point on DNN modules where wizard, multiview, formview, detailview and gridview ASP.NET controls are used for me to check how they are organized.

Thank you.

--Shamil

 

 

 

 
New Post
10/27/2009 9:04 PM
 

did you check out localization whitepaper and module developer localization guide from resouces > documentation > downloads in menu above? They are a few years old, but still valid!


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/28/2009 8:42 AM
 

Thank you, Sebastian,

That helped but there are some issues still:

Stacked view controls located on ASP.NET MultiView control do not get localized properly even when ResourceKey ="{{ResourceKeyCode}}" is used (the same View control displayed independently on a page within a module does have localization working properly). When I have used ResourceKey for one of the SharedResource entries it did worked well for stacked view control. So as far as far I see standard localization doesn't seems to work for stacked view controls (bug/feature).

What could be a workaround solution? I suppoose that could be a direct DNN API call Localization.GetString(...) for Text property?

Text='<%# Localization.GetString("MyControlKey",LocalResourceFile) %>'

Not sure if that will work but if it will then similar approach could help to localize HelpText...

And I can also make custom shared resource files, put them under \AppGlobalResources and use custom wrapper method(s) around Localization.GetString(...) to use that shared resources for localization..

That should work well, I suppose.

Thank you.

--Shamil
 

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Multi-View Module Implementation Options Saga - Part II - LocalizationMulti-View Module Implementation Options Saga - Part II - 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