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...Google translator?Google translator?
Previous
 
Next
New Post
1/26/2010 5:27 PM
 

There is a local school district here using this tool to translate any page on their site.

http://lewispalmer.org/

I tried putting the code on this page (http://translate.google.com/translate...) into our skin and it won't translate.  Is this because the way DNN works with modules and everything being database driven?  My boss wants us to have this functionality and I wasn't sure how to get it with DNN.

 

 
New Post
1/26/2010 7:49 PM
 

 If you change the 'google_translate_element' to 'Form' in the function, it will create a drop down list at the bottom of the page [basically at the end of the form on the page].

It's not the most elegant solution, but it does work if you do that and select a language.

 
New Post
1/26/2010 8:59 PM
 

This blog post about translation with Google may help you.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
1/27/2010 12:11 AM
 

We've done this for the Bellevue School District site at http://www.bsd405.org/.

We created a control that can be added to the skin controls. You need to pass your URL as the "u" parameter of the query string on the Google request. As an example here is the ascx code for this control:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Translate.ascx.cs" Inherits="controls_Translate" %>
<TABLE id="Table1" cellPadding="1" border="0">
    <TR>
        <TD>
            <asp:HyperLink id="HyperLink1" runat="server">
            <asp:Image ID="Image1" Runat="server" ImageUrl="~/images/flags/de-DE.gif" AlternateText="Translate to German"></asp:Image>
            </asp:HyperLink>
        </TD>
        <TD>
            <asp:HyperLink id="Hyperlink2" runat="server">
            <asp:Image ID="Image2" Runat="server" ImageUrl="~/images/flags/fr-FR.gif" AlternateText="Translate to French"></asp:Image>
            </asp:HyperLink>
        </TD>
        <TD>
            <asp:HyperLink id="Hyperlink3" runat="server">
            <asp:Image ID="Image3" Runat="server" ImageUrl="~/images/flags/it-IT.gif" AlternateText="Translate to Italian"></asp:Image>
            </asp:HyperLink>
        </TD>
        <TD>
            <asp:HyperLink id="Hyperlink4" runat="server">
            <asp:Image ID="Image4" Runat="server" ImageUrl="~/images/flags/es-ES.gif" AlternateText="Translate to Spanish"></asp:Image>
            </asp:HyperLink>
        </TD>
    </TR>
</TABLE>

And then on the Page_Load of the code behind we build out the hyperlinks: 


public partial class controls_Translate : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string Url = Server.UrlEncode(Request.Url.AbsoluteUri);
        string TranslatePrefix = "http://translate.google.com/translate?u=" + Url + "&langpair=";

        HyperLink1.NavigateUrl = TranslatePrefix + "en%7Cde&hl=en&ie=UTF-8&oe=UTF-8";
        Hyperlink2.NavigateUrl = TranslatePrefix + "en%7Cfr&hl=en&ie=UTF-8&oe=UTF-8";
        Hyperlink3.NavigateUrl = TranslatePrefix + "en%7Cit&hl=en&ie=UTF-8&oe=UTF-8";
        Hyperlink4.NavigateUrl = TranslatePrefix + "en%7Ces&hl=en&ie=UTF-8&oe=UTF-8";
    }
}

Hope that helps!
Eric

 

 
New Post
1/27/2010 3:57 AM
 

please bear in mind, that automated translation is not a real solution to get your site in multiple languages. Looking at the Site Eric mentioned before, in the german Google translation there are some articles where I can guess what it is about and others are completely unreadable.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Google translator?Google translator?


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