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...PagerSettings NextPageText localization problemPagerSettings NextPageText localization problem
Previous
 
Next
New Post
2/6/2009 7:21 AM
 

Hi,

I am using localization to fill the NextPageText in a gridview. Using this code:
<PagerSettings Mode="NextPreviousFirstLast" NextPageText="<%$ Resources:NextPageText) %>"
             PreviousPageText="<%$ Resources:PreviousPageText) %>"/>

When I load the module in DotNetNuke I get the following error:
DotNetNuke.Services.Exceptions.ModuleLoadException: The resource object with key 'NextPageText)' was not found.

Somebody seen this before?

Thanks in advance!

greets

Heisa

 

 

 
New Post
2/6/2009 11:01 AM
 

Hi,

DNN uses it own (limited) way of dealing with static localization. Refer to the module localization guide for more info on how to implement module localization.

The standard asp.net 2.0 localization features, including the localization expressions <%$ Resources:... %>, do not work because DNN removes the build provider for .resx files in the web.config:

<buildProviders>
        <remove extension=".resx" />

You can uncomment this line, and your expression will work (proper syntax would probably be <%$ Resources:NextPageText) %>, not <%$ Resources:NextPageText %> -- trailing parenthesis...). But, you will encounter errors after this, since some DNN resx files are not compatible with the asp.net resx format.

You can use Brandon Hayes' resx build provider which will enable your installation to work with DNN localization and asp.net 2.0 localization. http://www.codeplex.com/DNNLocalization Note however that this requires an installation with full trust permissions, so that may not deal well in shared hosting environments.

I am not aware if this has changed in DNN 5.

 
New Post
7/3/2009 9:31 AM
 

Hi,

 

Thanks!

A bit late :)

I solved it filling the gridview .pagersettings.NextPageText and PreviousPageText in the code behind.

Regards,

Heisa

 

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...PagerSettings NextPageText localization problemPagerSettings NextPageText localization problem


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