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...problem with LANGUAGE token in HTML skin templateproblem with LANGUAGE token in HTML skin template
Previous
 
Next
New Post
11/4/2011 7:28 PM
 
<p>Hi,<br />  I'm using DNN 6.0. I have one problem and one question<br />  Problem: I'm trying to display multiple languages using HTML skin template I'm using the below piece of code to achieve that</p> <p>object id="dnnLanguage" codetype="dotnetnuke/server" codebase="LANGUAGE" /<br /> param name="ShowMenu" value="false" /<br /> param name="ShowLinks" value="true" /<br /> param name="ItemTemplate" value="<a href=[URL] class='Language' title= [CULTURE:NATIVENAME] <span class='Language[SELECTED]'>[CULTURE:NATIVENAME]</span></a>"/<br /> param name="CommonHeaderTemplate" value="&lt;div style='width:200px' &gt;" <br /> /object<br /> <br /> Note: Since I had problems in copy - pasting the above code, I removed "<" and ">" .<br /> <br /> My DNN site has two languages enabled - English and Spanish. The above code displays only the selected language. For example: if the site language is English, US flag is displayed and Español (México) is not displayed. The above code when rendered in ascx, [CULTURE:NATIVENAME] changes to [CULTURE] and thus the problem. I tried several variations and nothing worked. When I directly modify the ascx file to have [CULTURE:NATIVENAME], it works as I expect. Can any of you help me to resolve this problem</p> <p>Question: When the above code is perfectly working through the ascx part, I see the selected culture is displayed with its country flag. Is there a way to get the text displayed instead of the flag?</p> <p>Any input is appreciated.</p> <p>Thanks<br /> Ananth</p>
 
New Post
11/4/2011 7:45 PM
 
AFAIK this is a known bug of the language skin object, which might get fixed in a future version. I suggest using APOLLO language Selector as a workaround (http://mllanguageselector.codeplex.com/)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/5/2011 12:40 AM
 
Thanks Sebastian.

Would I be able to display the selected culture as a text as against country icon?

~/ Ananth
 
New Post
11/5/2011 11:47 PM
 
AFAIK, yes

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/7/2011 5:10 PM
 
Thanks Sebastian, I was able to do that
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...problem with LANGUAGE token in HTML skin templateproblem with LANGUAGE token in HTML skin template


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