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...Create link to same page- different langCreate link to same page- different lang
Previous
 
Next
New Post
8/19/2008 8:04 AM
 

I want to create a link in my skin to load the same page in another language.

Just as you would get by changing 'en-US' to 'fr-CA' in the URL:

Right now, my language links are hard coded to go to the home page but I want to stay on the same page- different language

http://dnn.sarvac.ca/AboutUs/tabid/167/language/en-US/Default.aspx

Want to create link to go to:

http://dnn.sarvac.ca/AboutUs/tabid/167/language/fr-CA/Default.aspx

 

 
New Post
8/19/2008 12:28 PM
 

why not just use the language skin object?


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
8/21/2008 9:54 AM
 

Isn't that just for lang combo box?

I want a regular link

 
New Post
8/21/2008 11:57 AM
 

since dnn 4.6.2, the language skinobject is much more versatile. The combobox can be disabled by setting ShowMenu to false, the Links can be enabled by setting ShowLinks to true.

You can use your own template to render links. The default template is

{a href="[URL]" class="Language" title="[CULTURE:NATIVENAME]"}{img src="[I][FLAGSRC]" alt="[CULTURE:NATIVENAME]" border="0" /}{/a}

 (sorry had to replace < and > with { and } )

howver, you can change this in anything you like.

The following tokens are supported:

  • [URL] : the correct url for the specific language
  • [FLAGSRC] : the filename of the flagimage. Extension is always .gif, form is always like en-US.gif. Flag images can be located where ever you want, you can specify the proper location with the following tokens:
    • [I] : the core Images folder
    • [P] : the portal home directory
    • [S] : the active skin folder
    • [G] : the host home directory (/portals/_default/)
  • [SELECTED]: returns true if the specific language is the current language
  • [LABEL] : returns the label as defined in the resource file of the language skinobject

furthermore, the [CULTURE] token is supported, which has these options:

  • [CULTURE:ENGLISHNAME]
  • [CULTURE:LCID]
  • [CULTURE:NAME]
  • [CULTURE:NATIVENAME]
  • [CULTURE:TWOLETTERISOCODE]
  • [CULTURE:THREELETTERISOCODE]
  • [CULTURE:DISPLAYNAME]

for an explanation of the different Culture properties, check here: http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo_members.aspx


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
9/14/2008 2:57 PM
 

Hello,

I need to display only the language name, without the country. However I've been trying all the CULTURE token options and all of them shows the country name.

This is what I need: Català  Spanish English

And this is what I've got with the diferent options:

[CULTURE:ENGLISHNAME]  -->>  Catalan (Catalan)  Spanish (Spain) English (United States)

 

[CULTURE:NAME]  -->> ca-ES  es-ES en-US

[CULTURE:NATIVENAME]  -->> Català (Català)  Español (España) English (United States)

[CULTURE:DISPLAYNAME] -->> Catalan (Catalan)  Spanish (Spain) English (United States)

 
do you think it can be done?
 
thanks!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Create link to same page- different langCreate link to same page- different lang


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