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  |  

Maximum ASP
  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.

 


OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net
$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com

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