Download & Extend

Create a 'language' token type

Project:Token
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Since languages both have a name and language code? This is not a huge priority.

Comments

#1

subscribe. good to have the language object "translated" to tokens

#2

Category:task» feature request

I'm assuming that this includes tokens for both the content language and the interface language? #233076: Add token for node's language only works for nodes, but these tokens should be available everywhere.

A use case is setting the Dublin Core language metatag to something like this:
<meta name="dcterms.language" content="eng">

The setting for that should come from a token. How about these:

  • [site:language:content:name]
  • [site:language:content:code]
  • [site:language:interface:name]
  • [site:language:interface:code]

...which would come from:

#3

These would be very practical!