Forums / Developer / Current Language

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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