joomla/joomla-cms — pull request #1604 by phproberto (2013-07-28 10:44:15+00:00)
Title: [imp] Add the option to set the default language to the active language

This adds the option to set the default language for a language field to the default frontend or backen language. Basically it adds the option to use:

default="site"
default="administrator"

It also allows devs to store a dynamic reference to the active language. For exampe if you want to always store the active frontend language you can save "site" and you always get the active language. Without this you would, for example, store en-GB and then if the language is changed you will keep getting en-GB.

Example loading of frontend active language:
```XML

```

Example loading of backend active language:
```XML

```

You can reference frontend active language with:
'site', 'frontend', '0'

You can reference backend active language with:
'admin', 'administrator', 'backend', '1'