Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  Create link to same page- different lang
Previous Previous
 
Next Next
New Post 8/19/2008 6:04 AM
User is offline billymac
4 posts
10th Ranked


Create link to same page- different lang 

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 10:28 AM
User is offline ErikVB
3004 posts
www.apollo-software.nl
4th Ranked










Re: Create link to same page- different lang 

why not just use the language skin object?


Erik van Ballegoij,
a view from my attic, my personal blog

The personal blog of Erik van Ballegoij

 
New Post 8/21/2008 7:54 AM
User is offline billymac
4 posts
10th Ranked


Re: Create link to same page- different lang 

Isn't that just for lang combo box?

I want a regular link

 
New Post 8/21/2008 9:57 AM
User is offline ErikVB
3004 posts
www.apollo-software.nl
4th Ranked










Re: Create link to same page- different lang 
Modified By ErikVB  on 8/21/2008 12:04:33 PM)

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,
a view from my attic, my personal blog

The personal blog of Erik van Ballegoij

 
New Post 9/14/2008 12:57 PM
User is offline Dani Dani
13 posts
10th Ranked


Re: Create link to same page- different lang 

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 Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  Create link to same page- different lang
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP