silverstripe/sapphire — pull request #255 by drzax (2012-03-21 02:58:11+00:00)
Title: BUG FIX: Improve translation efficiency for missing locales

Make sure the translation function doesn't try to include missing locale files over and over again.

Currently the translation function tries to include a locale file every time it's called if the locale hasn't already been loaded. This leads to super duper inefficiency for missing locale files (like en_AU).