I'm trying to figure out how to get the name of the language of the current node in display suite. I find a language option under one of the node categories in the dynamic field content selector, but that outputs the language code, not the name. Do I need to handle this in a preprocess function or is there some way of getting this that I've not managed to find?
I didn't find anything there available for clickers. I could suggest the following alternative:
- Activate the "Display Suite Format" module
Create Display Suite "Code field" with following content:
<?php return t(locale_language_name($entity->language)); ?>
- Don't forget to activate the "Display Suite code" text format for this code field.
- Add this code field to your content type's display!
Hope this helps!