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  |  

AspDotNetStoreFront
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Language name
Previous Previous
 
Next Next
New Post 6/21/2007 10:38 AM
User is offline Daniele Bernotti
26 posts
10th Ranked


Language name 

Hi

I've another question for the XML/XSL module. In my portal I've magazines located in the same folder and with index based on XML file.
this works great until I've 9 different languages for the same magazine edition.....

Well what I did it up to now was to display all the magazines with the language displayed.

The new XML/XSL has one wonderful XSL parameter that's "current locale". I said myself: this is the solution, but..... in my XSL I've metadata like "English", "Italian", "German",....."  in the locale I've "en-US", "it-IT", "de-DE".....

Anyone has a suggestion how to have this language name?

I'd 2 options:
the first and I think easier (but dirty), is to alter the XMS/XSL module to add this additional information.
the second is to use another XSL file that with (I think!!) a <XSL:copy-template statement can do the transformation I need.

I've no ideas if the second option can be done, anyone has any idea or siggestion?

Thanks in advance

Best regards

Daniele

 

 
New Post 6/21/2007 12:29 PM
User is offline Stefan Cullmann
1553 posts
5th Ranked








Re: Language name 

Yes, I would use a global variable:

<xsl:variable name="language">
  <xsl:choose>
    <xsl:when test ="de-DE">German</xsl:when>
    <xsl:when test ="en-US">English</xsl:when>
    <xsl:when test ="it-IT">Italian</xsl:when>
    <xsl:otherwise>Klingon</xsl:otherwise>
  </xsl:choose>
</xsl:variable>

Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Language name
 


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.

 


DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com

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