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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesStand Alone ASPX page with resx inside DotNetNuke PortalStand Alone ASPX page with resx inside DotNetNuke Portal
Previous
 
Next
New Post
11/22/2013 4:42 PM
 

For several reasons i must include a stand alone page (.aspx) not relative to DotNetNuke portal inside a custom module. I ve manage to create the page, and connect it with module as necessary. My problem comes when i want to provide this page on a different language other than english. For some reason the resx files cannot be found from the page.

The language of the page is provided over url parameters (ex ?Lang=el-GR, ?Lang=en-US e.t.c.)

Any suggestions please.

 
New Post
11/23/2013 8:22 PM
 

You would need to look at how your aspx file is configured to handle multiple languages - by default language localization in generic aspx files is handled by examining the language that is set for the browser - NOT by examining a query string.

The Lang=el-GR  option in DNN is not standard aspx - it is a function of dnn's language resources - and is NOT controlled by the browser.

To get your own aspx to work with based on a querystring value - you would need to look at how the resource manager works - and override the default handling - to load the resource files you require.

http://msdn.microsoft.com/en-us/libra...

Westa

 
New Post
11/24/2013 3:07 AM
 

Thank you for your response. The problem actually is that (i think) because of the DNN structure for some reason the page does not resolve the proper path for the resx file. I am saying this as i am overiding the culture before the page load with InitializeCulture(). It does not recognize either the en-us default resx file. I ve placed resx files inside the module folder inside the App_LocalResources folder. I ve also created an App_LocalResources folder on the root of the portal just in case it would be recognized from this part.

How can i check the path that the file looking for the proper resources?

Any suggestions please.

 
New Post
11/24/2013 4:59 AM
 
Is your aspx page based on the normal asp.net pagebase or on the DotNetNuke.Framework.PageBase.

There are any number of odd issues that can occur when trying to run a generic aspx page inside the same application session as dnn.
dnn makes extensive changes at the globals level and also the httpmodule level.

Are you explicitly telling your page to use browser culture ?
<%@ Page UICulture="auto" Culture="auto" %>
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesStand Alone ASPX page with resx inside DotNetNuke PortalStand Alone ASPX page with resx inside DotNetNuke Portal


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