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...Localize just a contact page with resx filesLocalize just a contact page with resx files
Previous
 
Next
New Post
7/20/2010 11:22 AM
 
Hi their,

I would like to localize just a contact page with spanish and german languague and may be in the future add dutch language to it.

I have tried all tricks but it does not seem to work. How can I make a page have multiple translation and links to the translations based on the query string?

Any sample or help will be great.

Thanks,
Wasay

http://blog.wasay.net
 
New Post
7/20/2010 11:25 AM
 
you may either use feedback module with appropriate module language packs or use an ML forms module, e.g. free Helferlein forms from www.helferlein.com

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/20/2010 12:16 PM
 
Thanks Sebastian for the reply. I was hoping for a bit different sample or example rather than a module approach. I have a page and the resource files at:

 /Portals/0/Pages/ContactForm.aspx
/App_GlobalResources/ContactForm.resx
/App_GlobalResources/ContactForm.en-US.resx
/App_GlobalResources/ContactForm.es-es.resx

 in the ContactForm.aspx file I have a script tag with vb language which has the below code in page_load function...

**************************************

 'Page_Load Function
displayFirstName = GetGlobalResourceObject("ContactForm", "lblFirstName")
displayLastName = GetGlobalResourceObject("ContactForm", "lblLastName")

 If (Len(displayFirstName) > 0) Then

 lblFirstName.Text = displayFirstName
 lblLastName.Text = displayLastName

End If
 **************************************

How can I get the function GetGlobalResourceObject to retrieve the correct lang value from the resx file? Based on the query string I can change the thread lang dynamically without effecting the browser language option so that a user is not involve to make or adjust anything in the browser. **************************************

'Page_PreInit function before the page_load function

 Dim lang As System.Globalization.CultureInfo

 If IsPostBack Then

 'Add logic here for query string manipulation
 lang = New System.Globalization.CultureInfo("es-es")

 Else

 lang = New System.Globalization.CultureInfo("en-US")

 End If

 System.Threading.Thread.CurrentThread.CurrentCulture = lang
 System.Threading.Thread.CurrentThread.CurrentUICulture = lang
**************************************
**************************************
 'resx file partial data value

First Name

Last Name
 
**************************************
 Any suggestions as to what I am doing wrong in this process? Thanks, Wasay

http://blog.wasay.net
 
New Post
7/20/2010 12:23 PM
 
resourcefiles are expected in App_LocalResources subfolder of your module installation folder and need to follow naming syntax, e.g. for contactform.ascx use contactform.ascx.resx and there might also be SharedResources.resx. This will localize automatically all supported controls with Resourcekey, for details you may check out Module development Localization guide from Resources > Documentation > Downloads in menu above.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/20/2010 3:34 PM
 
Thanks,

The issue is this is not a module, this is a independent custom page which is posting to a support ticketing system by utilizing iframe.

It's more like it can be treated as asp.net page rather than dotnetnuke but it's receding in the web.config settings of dotnetnuke..

The page does not have dotnetnuke master page (skin) or any of the dotnetnuke imports, it's a page on it's own and I am just wondering if web.config is the reason where I cannot read the resx file.

It seems to be able to read the App_GlobalResource file only issue is that it's null values.

Do I have to compile something after adding resx files to App_GlobalResources?

Thanks,
Wasay

http://blog.wasay.net
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localize just a contact page with resx filesLocalize just a contact page with resx files


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