Current Language

Author Message

Peter Scheir

Friday 20 May 2005 5:01:13 am

Hi! Is there a way to get the language which is currently used for rendering the content? I.e. is there a variable I can access in a template which is telling me what language currently is used?

Thank you,
Peter

Xavier Dutoit

Friday 20 May 2005 5:14:28 am

Hi,

I think node.object.default_language contains something like that. Could you test and tell us if it works?

Have a look at this spec, might give some ideas on what's cooking at ezlab:
http://ez.no/community/developer/specs/improved_content_multilangue_support

As always, {$node|attribute(show,2)} is your friend.

X+

http://www.sydesy.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.