joomla/joomla-platform — pull request #953 by Chraneco (2012-03-02 14:32:08+00:00)
Title: Use language pack name as 'element' name instead of language pack

At the moment the installer adapter for languages uses the language tag as 'element' name when storing a language pack in #__extensions.

This means that language packs for extensions (non-core language packs) cannot be installed properly like it was in Joomla! 1.5 as this will override the database entry for the core language pack in #__extensions.

With this patch the language pack name will be used as 'element' name, so this problem cannot occur anymore.