Elgg/Elgg — pull request #274 by cash (2012-06-18 00:02:51+00:00)
Title: Fixes #4538 Language caching rewrite

The previous language caching code had two problems:
1. It did not allow a plugin to load its translation files when activated. That happened on the next page load which prevented activate.php scripts from using the translation system.
2. It was overly complicated

This new code is a little less complicated and handles the 1st case without introducing any new bugs (that I have been able to find). I think I can make it cleaner still for 1.9 by a more substantial rewrite that changes how the functions work and changes some of their signatures.