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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...FAQ in bilingual FAQ in bilingual
Previous
 
Next
New Post
10/14/2012 7:41 AM
 

Hi, i have a DNN site that need to be created in both Arabic and English, and for that the FAQ module need to be created 2 time since there are not bilingual feature for this module, the problem is now how can i make the Arabic module appear when i click the Arabic button and disappear when i click the English and the other module appear. i have one page FAQ.aspx with 2 FAQ modules and i added some script the will show text Arabic or English when click on the language button, but i don't know how to modified the page to show the module, since the FAQ module will be created in the run time.

<div class="dnnForm dnnFAQs dnnClear">
    <div id="enlabeldiv" style="display:none">
       English
    </div>
    <div id="arlabeldiv" style="display:none">
        Arabic
    </div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="width:1px; vertical-align:top;">
<asp:Panel ID="pnlShowCategories" runat="server" Visible="false" >
<asp:MultiView ID="mvShowCategoryType" runat="server" ActiveViewIndex="0">
<asp:View ID="vShowCategoryTypeList" runat="server">
<div class="categoryList">
<dnn:DnnListBox runat="server" ID="listCategories" CssClass="categoryListControl" OnItemDataBound="listCategories_ItemDataBound" >
<ItemTemplate>
<asp:CheckBox ID="chkCategory" runat="server" Text='<%# Eval("FaqCategoryName") %>' OnCheckedChanged="chkCategory_CheckedChanged" AutoPostBack="true" />
</ItemTemplate>
</dnn:DnnListBox>
</div>
</asp:View>
<asp:View ID="vShowCategoryTypeTree" runat="server">
<div class="categoryTree" style="margin-right: 20px;">
<dnn:DNNTreeView ID="treeCategories" runat="server" CssClass="categoryTreeControl" 
ShowLineImages="False" OnNodeClick="treeCategories_NodeClick" OnNodeDataBound="treeCategories_NodeDataBound">
<DataBindings>
<telerik:RadTreeNodeBinding Expanded="true" />
</DataBindings>
</dnn:DNNTreeView>
</div>
</asp:View>
</asp:MultiView>
</asp:Panel>
</td>
<td style="vertical-align:top;">
<asp:Panel ID="pnlSortbox" runat="server" Visible="false">
<dnn:Label ID="lblSort" runat="server" ControlName="drpSort" CssClass="SubHead" />
<asp:DropDownList ID="drpSort" runat="server" AutoPostBack="true" OnSelectedIndexChanged="drpSort_SelectedIndexChanged">
<asp:ListItem Value="6" resourcekey="OrderByViewOrder">Predefined Order</asp:ListItem>
<asp:ListItem Value="0" resourcekey="OrderByDateNew">Date New</asp:ListItem>
<asp:ListItem Value="1" resourcekey="OrderByDateOld">Date Old</asp:ListItem>
<asp:ListItem Value="2" resourcekey="OrderByPopularityHigh">Popularity High</asp:ListItem>
<asp:ListItem Value="3" resourcekey="OrderByPopularityLow">Popularity Low</asp:ListItem>
<asp:ListItem Value="4" resourcekey="OrderByDateCreatedReverse">Creation Date Descending</asp:ListItem>
<asp:ListItem Value="5" resourcekey="OrderByDateCreatedOriginal">Creation Date Ascending</asp:ListItem>
</asp:DropDownList>
<br />
<br />
</asp:Panel>
<asp:Panel ID="pnlShowCategoryTypeDropdown" runat="server" Visible="false">
<dnn:Label ID="lblSelectCategory" runat="server" ControlName="drpCategories" CssClass="SubHead" />
<asp:DropDownList ID="drpCategories" runat="server" AutoPostBack="true" OnSelectedIndexChanged="drpCategories_SelectedIndexChanged"/>
<br />
<br />
</asp:Panel>
<asp:DataList ID="lstFAQs" runat="server" CellPadding="0" DataKeyField="ItemId" RepeatLayout="Flow" CssClass="faqsList" OnItemDataBound="lstFAQs_ItemDataBound" OnItemCommand="lstFAQs_ItemCommand" >
<ItemTemplate>
<div>
<asp:HyperLink ID="Hyperlink1" runat="server" Visible="<%# IsEditable %>" NavigateUrl='<%# EditUrl("ItemId",DataBinder.Eval(Container.DataItem,"ItemId").ToString()) %>'>
<asp:Image ID="Hyperlink1Image" runat="server" ImageUrl="~/images/eip_edit.gif" AlternateText="Edit" Visible="<%#IsEditable%>" resourcekey="Edit" />
</asp:HyperLink>
<asp:ImageButton ID="lnkUp" CommandArgument='<%# HtmlDecode(DataBinder.Eval(Container.DataItem, "ItemId").ToString()) %>' CommandName="Up" runat="server" ImageUrl="~/images/up-icn.png" Visible="<%#IsMovable%>"/>
<asp:ImageButton ID="lnkDn" CommandArgument='<%# HtmlDecode(DataBinder.Eval(Container.DataItem, "ItemId").ToString()) %>' CommandName="Down" runat="server" ImageUrl="~/images/down-icn.png" Visible="<%#IsMovable%>"/>
<asp:LinkButton ID="lnkQ2" CommandArgument='<%# HtmlDecode(DataBinder.Eval(Container.DataItem, "ItemId").ToString()) %>' CommandName="Select" runat="server" CssClass="SubHead"></asp:LinkButton>
<a href=" //" id="Q2" runat="server" ></a>
<asp:Panel ID="pnl" runat="server" Width="100%"><asp:Label runat="server" ID="A2"></asp:Label></asp:Panel>
</div>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
</table>
</div>

<script type="text/javascript">
    var temp = document.URL;
  
    var enlabeldiv = document.getElementById('enlabeldiv');
    var arlabeldiv = document.getElementById('arlabeldiv');
    if ((temp.indexOf("ar-sa") != -1) || (temp.indexOf("ar-SA") != -1)) {
        //Arabic
        arlabeldiv.style.display = "block";
        enlabeldiv.style.display = "none";
    }
    else {
        //English
        enlabeldiv.style.display = "block";
        arlabeldiv.style.display = "none";
    }
</script>

any sugesstion 


 
New Post
10/14/2012 10:21 AM
 
which solution are you using for page localization and which DNN version are you running?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/15/2012 12:57 AM
 

my version is 06.02.03 (141) and i download the arabic language pack from the site

 
New Post
10/15/2012 9:19 AM
 
by adding a language pack, you won't be able to support content in multiple languages. You either need a 3rd party solution for multilingual support or enable language specific pages (aka content localization), built into DNN framework.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...FAQ in bilingual FAQ in bilingual


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